Hi,
How could I define following addresses in hse_host_flashSrv.h?
I am trying HSE Demo Examples and this addresses are needed when I try to UpdateIvt();
UpdateIvt calls HostFlash_Erase and HostFlash_Program and they calls HostFlash_Init().
the HostFlash_Init function use these addresses for /*Copying the UnsecureBAF Code from flash to RAM to avoid read while write violation */
But I am not sure how to define them? I believe I need to define them in linker maybe, but how?
/*=============================================================================
* GLOBAL VARIABLES
=============================================================================*/
extern uint32_t FLASH_DRIVER_RAM_DST_START_ADDRESS[];
extern uint32_t FLASH_DRIVER_FLASH_SRC_START_ADDRESS[];
extern uint32_t FLASH_DRIVER_FLASH_SRC_END_ADDRESS[];
Old flash driver used in 2020-2021 (host_flash) is different from 2022 version (hse_host_flash).
regards,
Hi @anakha
I can see that this is implemented only in linker file for GHS IDE:
c:\NXP\S32K3_HSE_DemoExamples_1_0_0\S32K3_HSE_DemoExamples\Key Management\S32K344_DemoApp_SessionKeys\src\target\m7\GHS\ld\standard\demo_app.ld
You can try to do something similar in S32DS linker file or you can follow this document to force a function to RAM:
Regards,
Lukas