nrf5x-base icon indicating copy to clipboard operation
nrf5x-base copied to clipboard

ST-Link support

Open wldhx opened this issue 7 years ago • 3 comments

Would you be interested in a PR with some preliminary ST-Link support? I currently have erasing and flashing (and softdevice flashing) functional (that is, no MAC changing or debugging yet).

  • [ ] "basic" targets: flash, reset, erase: #20
  • [ ] "advanced" targets: flash bootloader, DFU, pin-reset

wldhx avatar Dec 20 '16 20:12 wldhx

Yeah, we would be interested in that. We primarily use the JLink-edu modules here, but supporting other programmers would be great.

We'll have to determine a good method for specifying which programmer to use. Maybe just a define in app makefiles that defaults to JLink. We could have a "Makefile.jlink" and a "Makefile.stlink" and select between them.

brghena avatar Dec 20 '16 20:12 brghena

I'd thought that we would initially just add targets like flash.stlink to existing makefiles, and then perhaps check if users' Makefiles have something like PROGRAMMER = stlink in them to decide on what happens if just flash is called.

Given that a .jlink and .stlink makefiles are bound to have a lot in common, I'm not sure if separating them too much will work well.

wldhx avatar Dec 20 '16 20:12 wldhx

For reference, I'm still on this; it's just that I had a loooong break from all things embedded :)

I think I'll change #20 a bit to include "basic" programming, debugging and README and leave "advanced" programming for some latter time as I haven't had to flash the bootloader by hand even once yet.

wldhx avatar Jan 27 '17 22:01 wldhx