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

  • Hi Amanda

    Thank you for your answer. It would be very convenient for our team to stay on Keil for future developments on nRF5340 as it also provides a debugger. Please let me know if you have any update on this issue.

    Regards,

    Tom.

  • Was anyone able to fix this issue? I still see the same issue. 

  • Hi,

    A ticket has been raised internally and a update will follow. 

    Someone else on the forum might have a solution, but for now at least the workaround is to use nrfjprog tool.

    Regards,
    Jonathan

Reply Children
No Data