S32K342 IAR startup code problem

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

S32K342 IAR startup code problem

1,134 Views
fan1234
Contributor II

problem similar with the link S32K344 IAR startup code problem (SW32K3_S32M27x_RTD_R21-11_5.0.0_D2410) - NXP Community

export the project from SDK to IAR and compile, IAR will report Error[Lp004]: actual size (0x448) exceeds maximum size (0x410) for block "interrupt_vector_init".
 I tried to change the maximum size to the actual size, and build succeeded. But, after i download the file into the board, it's going to HardFault handler without going to main function.

using SW32K3_S32M27x_RTD_R21-11_5.0.0_D2410 and IAR VERSION 9.32.1

Tags (1)
0 Kudos
Reply
4 Replies

1,033 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

sorry for delay. It looks that you are using wrong linker script file (.icf) - probably for S32K1xx instead of S32K342

0 Kudos
Reply

1,019 Views
fan1234
Contributor II

thank you for  your reply. the icf file is correct. i have solved the problem,  IAR has it's default startup file which define the entry and vector table, so i need to change them in IAR.

BR!

0 Kudos
Reply

345 Views
ben_chin
Contributor I

Hello Fan,

I met the same problem. Would you please tell me how to solve this problem.

MCU: S32K312

RTD 6.0.0

 

Thanks!

 

0 Kudos
Reply

182 Views
fan1234
Contributor II
sorry for delay. it's been a long time, and i can't provide you too many details now. my advice is to check the differences between the iar and s32ds startup files, and you may find the names of program entry and vector table are different.
I assume that you have used the startup file provided by s32ds, then you need to change the program entry and vector table definition of you iar project.
hope that‘s helpful.
0 Kudos
Reply