adafruit / Adafruit_nRF52_Bootloader

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

Adds support for nrf5340-DK board (application and networking core) #302

Open rkudaj opened 1 year ago

rkudaj commented 1 year ago

Pull request contains three segger studio projects for dual-core nrf5340_DK board:

Application bootloader is almost the same as for other previous micros, it implements additional mechanizm which basing on uf2 block address decides whether its destination is application core flash or networking core flash. In case it is networking core flash it copies data into allocated RAM area (shared with networking core) and sends request to networking core to write it under proper address. When all blocks are flashed application core sends request to networking core to start execution of newely received firmware.

Building and flashing sequence:

Mass storage device should show up on PC. All bootloaders should be now ready for receiving firmware (diodes LED 1 and 2 should go on). Drag and drop binaries, example: blinky_nrf5340_app_zephyr_0x1000_2Hz.uf2 (located in uf2binaries folder)

Bootloaders should be now ready again for receiving new firmware. Drag and drop binaries, example: blinky_nrf5340_net_zephyr_0x01004000_05Hz.uf2

Both cores should start executing flashed firmware, diodes LED3 and LED 4 should be blinking, LED3 controlled by application core and LED4 by networking core.

NOTE: nrfx drivers updated to newest release nrfx 2.11.0 from Nordic repo.

hathach commented 11 months ago

sorry I was a bit busy recently, and this falled off my radar. I will try to review/test and update this as soon as I could. Thank you for your works and patient.

lboue commented 5 months ago

@hathach Did you do the review/test?