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

JLINK monitor mode programs in nRF52-DK and seems to work however I cann't use this on my custom PCB with JLINK Ultra

I am programming and using the monitor mode with Keil seeming ly OK with nrf52-DK dev board however when I program my custom PCB it gives me an error and says the bit cannot be set. I am very confused when I saw that the JLINK.ini file needs to be edited I have it edited to be set to 0x23000 as I am using the nrf52 SDK 14.2 soft-device.

Parents
  • when I program my custom PCB it gives me an error and says the bit cannot be set.

    Can you share exactly what the error is, and what generates it?

    The J-link ultra supports Monitor Mode Debugging, so that's not the issue at least. 

  • I've seen that error before, but I cannot for the life of me remember what was the cause. I do remember that it has little to do with the CPU register that it's complaining about. I believe it is a project setting that is not set up properly. 

    Do you run the same FW on the DK and the custom board, or have you changed something?

    What I suspect is an incorrect starting address of the application in RAM, due to the SoftDevice needing more RAM for buffers. Larger MTU's, more links, added security, added scan response data, etc, will increase the RAM usage of the SoftDevice. 

    Can you run the following project on both the DK and the custom board? 
    https://github.com/NordicPlayground/j-link-monitoring-mode-debugging/tree/SDK14.2/pca10040/s132/arm5_no_packs 

  • Hey I finally got around to this and it does program on my board...why? Also I couldn't get the v15.0.0 to work because it references the files still from SDKv14.2.0 but if you can help me figure out how to get it work on my project thatd be great!!!!

  • "Hey I finally got around to this and it does program on my board...why?"
    I don't understand what you're asking here, can you share more information about this issue? 

    "Also I couldn't get the v15.0.0 to work because it references the files still from SDKv14.2.0"
    Can you share more information about this issue? 

Reply
  • "Hey I finally got around to this and it does program on my board...why?"
    I don't understand what you're asking here, can you share more information about this issue? 

    "Also I couldn't get the v15.0.0 to work because it references the files still from SDKv14.2.0"
    Can you share more information about this issue? 

Children