On 2024-09-08 09:33:45, Paul Fertser wrote: > So the flash driver now works and doesn't complain about the part, > guess it means it supports it. > > On Sun, Sep 08, 2024 at 10:59:21AM +0800, Sadeep Madurange wrote: > > Warn : no flash bank found for address 0x0000800c > > Warn : no flash bank found for address 0x0000ad70 > ... > > I will work on my config. If anyone has a sample config for > > atsam3x8eau > > The chip datasheet has memory map, you need to use that to specify > where the flashes are mapped to and how big they are. And make sure > you're mapping to flash location in the linker (ld) script when > building the project.
Thank you very much for the pointer. I managed to upload the program \0/ This is my first linker script. If I have done something really stupid, please let me know. MEMORY { rom (rx) : ORIGIN = 0x00080000, LENGTH = 0x00080000 ram (rwx) : ORIGIN = 0x20000000, LENGTH = 0x00010000 } SECTIONS { . = ALIGN(4); .text : { KEEP(*(.vectors .vectors.*)) *(.text*) *(.rodata*) } > rom . = ALIGN(4); .data : { *(.data*); } > ram AT >rom . = ALIGN(4); .bss (NOLOAD) : { __bss_start__ = . ; *(.bss*) *(COMMON) __bss_end__ = . ; } > ram _end = . ; __end__ = _end ; end = _end; } -- Sadeep Madurange PGP: 103BF9E3E750BF7E