Custom board based on nrf5340 CLAA not working after flashing the application

Hi,

I designed a custom PCB with the nrf5340 CLAA chip and am testing out the board. I want to flash a simple project of lighting up the on-board LED (the LED is connected to P1.07 in my board design). In nrf connect SDK in VS Code, I was able to create a custom board for nrf5340 QKAA (I was told this is fine for CLAA too), add the GPIO pin P1.07 in the DeviceTree, build the project without errors and flash the code to my board via JLink successfully. However, the LED is not lighted up. When I tried to debug, the process always stops at the step “Starting target CPU…” and won’t let me proceed.

I also tried to control the LED directly using JLink.exe via command line (I am using a windows machine because I encountered more issues on mac). I could connect to the chip in JLink. However, I was not able to write the values directly to the registers to light up the LED either. I wrote the values but when I checked the memory at the address, it was still 0. I checked the soldering of my board physically and they are all connected. I measured RESET and Power and they are both around 3.3V. Is there anything that you think I should try to solve this issue? Is there anything specific I should do to flash the code for the first time? (E.g. the chip is initially locked/protected so we can’t write to its memory directly for the first time?) Any advice would be appreciated. Thanks!

Parents
  • Hi

    You say you think you have the inductors connected to pin A9 and B6, but I don't see the inductors in your schematics nor in your gerber files, so please make sure whether they're there physically or not. If they're not, you should test on a fresh (unused) nRF5340 custom board since booting with DCDC might put it in an unrecoverable state. 

    Have you tried running your application code on an nRF5340 DK and see if it works on the DK, as that's generally a good way to narrow down whether the issue is in HW or SW.

    Best regards,

    Simon

Reply
  • Hi

    You say you think you have the inductors connected to pin A9 and B6, but I don't see the inductors in your schematics nor in your gerber files, so please make sure whether they're there physically or not. If they're not, you should test on a fresh (unused) nRF5340 custom board since booting with DCDC might put it in an unrecoverable state. 

    Have you tried running your application code on an nRF5340 DK and see if it works on the DK, as that's generally a good way to narrow down whether the issue is in HW or SW.

    Best regards,

    Simon

Children
  • Hi Simon,

    Thanks for your reply. I followed the recommended decoupling for nRF5340 CLAA chip, Config 2, when I designed the board. Are the two 10uH inductors L6 and L9 not related to the usage of internal APP and NET DCDC regulators? I am not an expert in PCB design so please correct me if I am wrong.

    Also, I did take a fresh custom board and disable all regulators in the first flash but unfortunately the board also did not execute the code. Can you see anything wrong with my build and flash log?

    I do not have a nRF5340 DK but I have a Raytac MDBT53V-DB-40. Does it also make sense to test the application on it?

    Thank you very much for your help!

Related