I'm running on our custom LPC55S69 board. I'm trying to access the UUID in the protected flash region. After reading the Flash_ifr_driver section of the SDK API Reference Manual, I added the "IAP1" driver in MCUXpresso and added this code to my project:
#include "fsl_iap_ffr.h"
...
flash_config_t flash_config;
uint8_t uuid_buf[16];
printf("FFR_Init: %d\n", FFR_Init(&flash_config));
printf("FFR_GetUUID: %d\n", FFR_GetUUID(&flash_config, uuid_buf));
printf("uuid_buf: %02X %02X %02X %02X %02X %02X %02X %02X\n",
uuid_buf[0], uuid_buf[1], uuid_buf[2], uuid_buf[3],
uuid_buf[4], uuid_buf[5], uuid_buf[6], uuid_buf[7]);
printf(" %02X %02X %02X %02X %02X %02X %02X %02X\n",
uuid_buf[8], uuid_buf[9], uuid_buf[10], uuid_buf[11],
uuid_buf[12], uuid_buf[13], uuid_buf[14], uuid_buf[15]);
The code compiles and the functions return success (0) but the data is all 0xFF.