Error: invalid subcommand "write_image erase a.elf"

2024-09-07 Thread Sadeep Madurange
Hello, Hope this is the right list, otherwise please let me know where I can get help on the following issue. I'm trying to flash a ATSAM3X8E on an Arduino Due using OpenOCD via ST-LINK adapter. Arduino Due exposes a 4-pin SWD interface they call the "Debug" pins. I have connected ST-Link's pins

Re: Error: invalid subcommand "write_image erase a.elf"

2024-09-07 Thread Tommy Murphy
> Open On-Chip Debugger 0.11.0 You're using a very old version of OpenOCD. You should probably use a more up to date version. > Error: invalid subcommand "write_image erase a.elf" Isn't the correct command, at least for the current version of OpenOCD, as follows: flash write_image erase a.elf

Re: Error: invalid subcommand "write_image erase a.elf"

2024-09-07 Thread Paul Fertser
Hi, 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

[openocd:tickets] #340 ChibiOS rtos support broken by recent changes in ChibiOS

2024-09-07 Thread Antonio Borneo
It should be nice to get such fixes upstream. Please rebase the fixes on current master branch, test and then push them on gerrit at review.openocd.org --- **[tickets:#340] ChibiOS rtos support broken by recent changes in ChibiOS** **Status:** new **Milestone:** 0.11.0 **Created:** Sun Feb 27,

Re: Error: invalid subcommand "write_image erase a.elf"

2024-09-07 Thread Sadeep Madurange
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 t

Re: Error: invalid subcommand "write_image erase a.elf"

2024-09-07 Thread Paul Fertser
Hi, 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 0x800c > Warn : no flash bank found for address 0xad70 ... > I will work on my c