adafruit / Adafruit_nRF52_Bootloader

USB-enabled bootloaders for the nRF52 BLE SoC chips
MIT License
461 stars 415 forks source link

add pca10059 #28

Closed dhalbert closed 6 years ago

dhalbert commented 6 years ago

Add support for pca10059 dongle.

Also some whitespace fixes (happened by accident when emacs cleaned up trailing spaces).

dhalbert commented 6 years ago

To load, I used a J-Link. It appears you need to load the softdevice:

make BOARD=pca10059 erase
make BOARD=pca10059 sd
make BOARD=pca10059 flash

I forgot sd at first and it blinked but did not show NRF52BOOT.

hathach commented 6 years ago

that is a very helpful feature of emacs.

arturo182 commented 6 years ago

@hathach what editor do you use?

hathach commented 6 years ago

I used eclipse + emac-plug plugin for writing most of the code. Emacs is great but I found eclipse perspective is better for my taste.

hathach commented 6 years ago

There is lots of great editors, but I am too lazy to change :(

hathach commented 6 years ago

I forgot sd at first and it blinked but did not show NRF52BOOT.

Yeah, the flash only flash the bootloader, sd must be flashed first

arturo182 commented 6 years ago

@hathach Then you can configure Eclipse to strip whitespace too https://stackoverflow.com/a/2618521

hathach commented 6 years ago

@arturo182 thanks, there is a lots of settings to do all sorts of stuffs with eclipse. It currently does that with .c and .h. Makefile is probably need some diving config.