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

NRF51-52 SDK14 GZP

Hi everyone,

It looks like there is a bug in GZP host example.There is a function gzp_host_chip_id_read where flash is accessed at GZP_PARAMS_STORAGE_ADR. But there is no c array or a separate section in .ld file. So when built and run it is trying to access this address which is actually code section in the example. Is this true or I'm missing something?

Thanks!

  • Hi

    I found it hard to believe at first, but it appears you are correct. The host ID is stored at address 0x1000 in the flash, which is used for code.
    The reason it works in a fashion is that the first byte is something different from 0xFF, which means the flash is not being overwritten. Instead it simply uses the code that happens to be there as the host ID.

    I will report this to the team, and update the case when I know more.

    Best regards
    Torbjørn

Related