Hello, I am using the S32K146 chip, and I encounter a HardError feedback when trying to read the contents of PFlash in the code loaded into FlexNVM.
It's strange that this issue is reproducible on some machines but not on others.
The specific code is as follows:
#define UPD_PFLAG_ADRRESS (0x000F0000)
uint8_t readFlag()
{
return (*(volatile uint8_t *)UPD_PFLAG_ADRRESS); //There is a HardError
}
Firstly, I would like to know if this error is caused by the limitation indicated in the diagram below.
#Table 36-30. Allowed simultaneous memory operations in [S32K-RM.pdf] datashee

If so, I attempted to move this code from FlexNVM to SRAM, but the issue still occurs.
Could you help me analyze the reason?
The specific code is as follows:
START_FUNCTION_DECLARATION_RAMSECTION
uint8_t readFlag()
{
return (*(volatile uint8_t *)UPD_PFLAG_ADRRESS); //There is also a HardError
} END_FUNCTION_DECLARATION_RAMSECTION