On 2024-08-22 16:12:04, Joseph Olatt wrote: > On Thu, Aug 22, 2024 at 04:23:23PM +0800, Sadeep Madurange wrote: > > Has anyone programmed Arduino Due (ARM Cortex M3 processor) on > > OpenBSD? I compiled the program using the following commands. I'm > > wondering how to get the program onto the board now... > > > > $ arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -o a.elf main.c > > $ arm-none-eabi-objcopy -O ihex -j .text -j .data a.elf a.hex > > I have not programmed Arduino on OpenBSD. But, I've experimented with > on FreeBSD. I believe avrdude, which is available, as a compiled > package, on OpenBSD might help.
I couldn't get it working with avrdude. I guess because the microprocessor on the Arduino Due is not an avr. After some research, it looks like I could use the openocd package with a JTAG programmer for Cortex-M processors. Since these aren't cheap, I appreciate any recommendations for JTAG programmers that works with OpenBSD. I'm looking at Segger J-Link EDU Mini. Also came across a far cheaper alternative called DAPLINK (~$9 on Amazon). Not sure how reliable that is. -- Sadeep Madurange PGP: 103BF9E3E750BF7E