This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf52832 flash programming

Hi,

Is there an extensive documentation about programming process of a nrf52832 using keil? I just spent hours figuring out that I had to use Softdevice erase flash algorithm to get rid of a laconic "programming failed" under keil. I cannot find any documentation on this, anywhere

Regards

Parents
  • Any one found Solution ? i am facing the same issue?

  • From my notes, in Target setup, For soft device target, debug tab, button settings, tab Flash download: Flash Algorithms: nrf5xxx Softdevice erase (this way it'll handle sd upgrade if needed). Check program & verify, RAM Algorithm: 0x20000000/size 0x2000. back in target setup, target tab, IROM1 Start 0, size given in SD release notes (0x1F000 for SD3), IRAM1 start 0x20000000, I guess size has no real effect (it's given by the start you'll set in app target). For app target, flash algo nrf52xxx, start 0x20000000, size 0x2000. Main params: IROM1 start 0x1F000 (see SDK release notes), size = chip flash size - start, IRAM1 start depends on which SD features you use, You'll have to set a random value (size is chip ram size - start) and debug the sd_enable call which will fail & return you the correct value. You'll need the last NordicSemiConductor::nRF_DeviceFamilyPack Keil pack

Reply
  • From my notes, in Target setup, For soft device target, debug tab, button settings, tab Flash download: Flash Algorithms: nrf5xxx Softdevice erase (this way it'll handle sd upgrade if needed). Check program & verify, RAM Algorithm: 0x20000000/size 0x2000. back in target setup, target tab, IROM1 Start 0, size given in SD release notes (0x1F000 for SD3), IRAM1 start 0x20000000, I guess size has no real effect (it's given by the start you'll set in app target). For app target, flash algo nrf52xxx, start 0x20000000, size 0x2000. Main params: IROM1 start 0x1F000 (see SDK release notes), size = chip flash size - start, IRAM1 start depends on which SD features you use, You'll have to set a random value (size is chip ram size - start) and debug the sd_enable call which will fail & return you the correct value. You'll need the last NordicSemiConductor::nRF_DeviceFamilyPack Keil pack

Children
No Data
Related