S32K342 IAR startup code problem

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32K342 IAR startup code problem

1,109件の閲覧回数
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,008件の閲覧回数
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 件の賞賛
返信

994件の閲覧回数
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 件の賞賛
返信

320件の閲覧回数
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 件の賞賛
返信

157件の閲覧回数
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 件の賞賛
返信