S32K342 IAR startup code problem

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S32K342 IAR startup code problem

1,216 次查看
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

标记 (1)
0 项奖励
回复
4 回复数

1,115 次查看
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 项奖励
回复

1,101 次查看
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 项奖励
回复

427 次查看
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 项奖励
回复

264 次查看
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 项奖励
回复