nrf52 Feather nRF52832 project

Since I am struggling a little with the Arduino IDE I decided to make some notes to bring things up to date for windows platform use of this target. It's an M4, which might not be covered by the BSPs for some reason. The term BSP means Board Support Package, its a metadata file that the toolchains use to figure out how to generate binaries for the target and what the target is capable of. Stuff like CPU frequency , Flash space, RAM organization and so on.

So this target has no external flash, basically the USB interface on the front is a CDC (communication device class) only and not mass storage, so you have to flash via the serial protocol it uses I suspect, there will be some tool to be discovered, probably in Python, that glues into the toolchain to do this.

To get the IDE to recognise your target you will need the right BSP, I found one on this hookup guide https://learn.sparkfun.com/tutorials/nrf52832-breakout-board-hookup-guide

File/ Preferences
Adding the additional board manager URL
And paste  https://raw.githubusercontent.com/sparkfun/Arduino_Boards/nrf5/IDE_Board_Manager/package_sparkfun_index.json
into the box. Then add the board by searching in board manager for nrf52 .

At this point it all fails 

2 reasons, the BSP does not include the target I am using, already had to go of pieste and now am expected to leanr how to parse BSP's as well, so I moved to a thread on Adafruit forums where I am workign through this using a ST-LINK/V2 programmer and SWD - 4 wire debugging (1 really) - so far no success that route either, but at least the STLINK programmer can see the target.
Follow further here : https://forums.adafruit.com/viewtopic.php?f=53&t=141911

Some obligatory pics to show where we are:

Unbricking options

Re-program the soft device using nRFStudio apparently... https://www.nordicsemi.com/eng/nordic/Products/nRFgo-Studio/nRFgo-Studio-Win64/14964
However when you start doing this, it downgrades your commandline tools for nrf from 9.7 to version 8.5 . I get the impression Studio has been discontinued or is out of support? Anybody's guess, is going to be better informed by me paying more attention from here onward.

Comments