products:flipper:flash_stk

Flashing NRF52 with slstk2010a

  • slstk2010a : EFM8 Sleepy Bee (STK)
  • STK/WSTK Debug Adapter
  • 10-pin JTag Wires

In Simplicity Studio 5 go to : Debug Adapters and select your STK (J-Link Silicon Labs (44….)). In Adapter Configuration, select Debug Mode : OUT.

Plug The Debug Adapter on the STK and plug the 10-pin JTAG Cable on the Cortex Connector of the Debug Adapter :

The other end of the 10-pin JTAG Cable goes to the Flipper JTAG Connector (Rose Wire is in on the Side of the white dote)

Then : Open J-Link Commander V..

Type following commands in that order :

  1. connect
  2. NRF52840_XXAA
  3. s
  4. loadfile app_location/app.hex

ex with arduino bootloader :

J-Link>connect
Please specify device / core. <Default>: NRF52
Type '?' for selection dialog
Device>?
Please specify target interface:
  J) JTAG (Default)
  S) SWD
  T) cJTAG
TIF>s
Specify target interface speed [kHz]. <Default>: 4000 kHz
Speed>
Device "NRF52840_XXAA" selected.
Connecting to target via SWD
InitTarget() start
InitTarget() end
Found SW-DP with ID 0x2BA01477
Unknown DP version. Assuming DPv0
Scanning AP map to find all available APs
AP[2]: Stopped AP scan as end of AP map has been reached
AP[0]: AHB-AP (IDR: 0x24770011)
AP[1]: JTAG-AP (IDR: 0x02880000)
Iterating through AP map to find AHB-AP to use
AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xE00FF000
CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)
Found Cortex-M4 r0p1, Little endian.
FPUnit: 6 code (BP) slots and 2 literal slots
CoreSight components:
ROMTbl[0] @ E00FF000
ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB00C SCS-M7
ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT
ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB
ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 003BB001 ITM
ROMTbl[0][4]: E0040000, CID: B105900D, PID: 000BB9A1 TPIU
ROMTbl[0][5]: E0041000, CID: B105900D, PID: 000BB925 ETM
Cortex-M4 identified.
J-Link>loadfile C:\Users\Romain\AppData\Local\Arduino15\packages\strataggem\hardware\nrf52\0.3.1\bootloader\flipper_nrf52840\flipper_nrf52840_bootloader-0.3.2_s140_6.1.1.hex
Downloading file [C:\Users\Romain\AppData\Local\Arduino15\packages\strataggem\hardware\nrf52\0.3.1\bootloader\flipper_nrf52840\flipper_nrf52840_bootloader-0.3.2_s140_6.1.1.hex]...
J-Link: Flash download: Bank 0 @ 0x00000000: 1 range affected (4096 bytes)
J-Link: Flash download: Total: 0.472s (Prepare: 0.064s, Compare: 0.203s, Erase: 0.087s, Program & Verify: 0.104s, Restore: 0.012s)
J-Link: Flash download: Program & Verify speed: 38 KB/s
O.K.
  • products/flipper/flash_stk.txt
  • Last modified: 2021/05/11 16:55
  • by romain