On 2024-09-07 17:01:46, Paul Fertser wrote: > On Sat, Sep 07, 2024 at 05:46:42PM +0800, Sadeep Madurange wrote: > > source [find target/at91sam3XXX.cfg] > > This is your problem. The config file doesn't define any flash so you > only get debugging but not flashing with it. > > Probably you want to source target/at91sam3ax_8x.cfg instead. The > flash driver has support for your part so worst case you need to > change the target file a bit to match addresses and probably sizes.
Thanks for the information. That sounds like it. I tried with at91sam3ax_8x.cfg and got the following log. Warn : Could not determine executable path, using configured BINDIR. Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD Info : clock speed 500 kHz Info : STLINK V2J29S7 (API v2) VID:PID 0483:3748 Info : Target voltage: 3.197910 Info : sam3.cpu: hardware has 6 breakpoints, 4 watchpoints Info : starting gdb server for sam3.cpu on 3333 Info : Listening on port 3333 for gdb connections target halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0x0010004c msp: 0x20001000 ** Programming Started ** Warn : no flash bank found for address 0x0000800c Warn : no flash bank found for address 0x0000ad70 ** Programming Finished ** ** Verify Started ** Error: checksum mismatch - attempting binary compare ** Verify Failed ** shutdown command invoked I will work on my config. If anyone has a sample config for atsam3x8eau (the one on Arduino Due), please share. Thanks for all the help. -- Sadeep Madurange PGP: 103BF9E3E750BF7E