GRTC issues on a custom board

Hello,

I've developed an application on the nRF54L15DK, and have bought Insight SIP's ISP2454, featuring the same chip.
I tried flashing the new chip with a hello world application, but I am running into issues. 

I ran RTT, but I'm not getting any output on it from the chip.
I checked the PC register, and it points to the address 0x0000C530, which points to the nrfy_grtc.h file, line 300.

If I understand correctly, this is a function that loops until the GRTC is ready.

I found a post with a similar issue here:
nrf54L15 LFRC 32KHz clock configuration issue

Now, it could be that the chip featured on the ISP2454 is the older revision one (I tried checking with them, still waiting for the reply), but it seems weird to me that then every chip of theirs would have a similar bug, making their chip basically useless, considering that it cannot even run the hello world program.
It just doesn't seem realistic they would push a product they didn't even try out, so what I'm getting to is a conclusion that I must be doing something wrong.

Here is my .prj file:

CONFIG_LOG=y
CONFIG_USE_SEGGER_RTT=y
CONFIG_LOG_BACKEND_RTT=y
CONFIG_PRINTK=y
CONFIG_DEBUG_OPTIMIZATIONS=y
CONFIG_NORDIC_SECURITY_BACKEND=n
CONFIG_DEBUG=y
CONFIG_DEBUG_INFO=y
CONFIG_DEBUG_OPTIMIZATIONS=y
CONFIG_ASSERT=y
# Enable MPU
CONFIG_ARM_MPU=y

# Enable hardware stack protection
CONFIG_HW_STACK_PROTECTION=y
Here is my main.c file:
#include <stdio.h>
#include <zephyr/kernel.h>

int main(void)
{
    while(1) {
        printf("Hello World!\n");
        k_msleep(1000);
    }

    return 0;
}
Nothing changed in the devicetree, as I'm just using the default settings from the nRF54L15DK, since Insight mentions that that is enough.
Is there anything I'm missing?
  • Hi,

    Based on that you see PC at nrfy_grtc.h file, line 300 and the thread you link to it seems that there is no functioning 32.768 kHz crystal. If so, you need to do everythign explained in this post (including implementing the changes in the linked pull request, as those are not yet in nRF Connect SDK, not even in main at the time of writing). You also need the clock related configs from this post (from he same thread).

    I see that the documenation for ISP2454 states that it has a 32.768 kHz crytal though, so it could be that there are problems with some devices, or that the load cap configuration is incorrect for the crystal (see here for how it is configured in the board files for the DK)? In any case, that should not be a problem if you use LFRC, so it is wroth it as an experiment.

Related