Error Erasing/Flashing nRF5340 with Keil uVision

Hello,

I'm trying to port a nRF52840 Keil project to the network core of the nRF5340. I was able to correctly use the Nordic Device Pack to build my project using the nrf53 SDK sources but I'm not able to erase and flash my nRF5340-DK. When trying to perform a full chip erase, I'm getting an error from nrf53xx_network.flm "Sector (0): Address not Zero":

I believe my JLink target is correctly configured and I'm correctly able to erase the flash using JLink command-line tool.

Why can't I erase or flash my nRF5340 from Keil ? Am I missing some steps in the configuration ?

I understand Keil isn't a recommended IDE for nrf5340 development but in my case, as I'm not using Zephyr RTOS or other gcc-dependant libraries, I believe Keil would work out. Am I wrong ?

Parents
  • Hi, 

    Looks like you have trouble programming the device.

    Specifically Keil is providing the wrong device identifier to Jlink which is a known issue we thought was fixed. There's unfortunately not much we can do with that, but you can use nrfjprog to program / erase the device.

    We'll also file an issue with Segger and see if they can fix the issue on their side.

    Regards, 
    Amanda

Reply
  • Hi, 

    Looks like you have trouble programming the device.

    Specifically Keil is providing the wrong device identifier to Jlink which is a known issue we thought was fixed. There's unfortunately not much we can do with that, but you can use nrfjprog to program / erase the device.

    We'll also file an issue with Segger and see if they can fix the issue on their side.

    Regards, 
    Amanda

Children
Related