Flash API(C40_IP_xxxx ) generate hardfault when running on sram

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

Flash API(C40_IP_xxxx ) generate hardfault when running on sram

313 Views
kyc6507
Contributor I

Hi, 

1. Development summary is

CPU : S32K312, Tools : Design studio 3.5, D32K3.P01 RTD autosar R21-11 version 3.0.0

Emulator : PEMicro USB multilink

 

2. I am developing functions for flash programming on ethernet communication

1) Upload binary file to PCB board by ethernet comm.

2) Burn flash(Flash block2) by upload binary data

3) Copy flash block2 to flash block1 and reset CPU(This function is running on ram code)

 

3. I did this functions for

1) Generate C40_IP component

kyc6507_1-1726995568301.png

2) I changed macro of CP_IP.h, CP_IP.c  as follows

#define FLS_START(STOP)_SEC_CODE --> FLS_START(STOP)_SEC_RAMCODE

 

4. Errors are

kyc6507_2-1726995904962.png

I will really appreciate your help

Thank you

 

 

 

 

 

 

0 Kudos
Reply
0 Replies