HSE (Host) Flash Driver issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

HSE (Host) Flash Driver issue

84 Views
erinc
Contributor III

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,

0 Kudos
1 Reply

50 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @erinc 

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:

https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-Run-a-routine-from-RAM-in-S32-De...

Regards,
Lukas

0 Kudos