Quantcast
Viewing all articles
Browse latest Browse all 5359

SDK • flash_get_unique_id causes exception

I found this legacy issue in this forum viewtopic.php?t=311617 however the solution of ensuring optimisation is off is not sorting this for me.

I am using FreeRTOS SMP and SDK 1.5.1

I want to read the unique id from the flash so I have the following code.

Code:

void flash_nvm_get_unique(uint8_t pUnique[8]){    taskENTER_CRITICAL();    flash_get_unique_id((uint8_t *)pUnique);    taskEXIT_CRITICAL();}
This works. I can read the unique id and have is output via serial port later in the code. The problem I am seeing though is that downstream the signal handler is called with "0xFFFFFFFd".

This occurs downstream but if I comment out the call to flash_get_unique_id I dont get the exception.

As far as I can tell optimisation is off for debug build but the issue detailed at the top of this post looks really similar.

Any help appreciated !!

Statistics: Posted by iamben — Wed Mar 27, 2024 4:11 am



Viewing all articles
Browse latest Browse all 5359

Trending Articles