S32K312 IAR EW Integrate Problem

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

S32K312 IAR EW Integrate Problem

703 次查看
ben_chin
Contributor I

Hello NXP Community,

 I encountered the following issues when integrating the S32K312 MCAL into IAR EW:

  1. After enabling the MCAL_ENABLE_USER_MODE_SUPPORT predefined macro, the following error occurred: the definitions of the functions "startup_getControlRegisterValue" and "startup_getAipsRegisterValue" could not be found. According to the IM manual, this macro needs to be enabled. What are the impacts if this macro is not enabled?

  2. The following compilation error occurred: Error[Lp004]: actual size (0x448) exceeds maximum size (0x410) for block "interrupt_vector_init". How can this be resolved?

RTD: SW32K3_S32M27x_RTD_R21-11_6.0.0

EB: 29.0

MCU: S32K312

IDE: IAR EW 9.40.1

 

0 项奖励
回复
1 回复

634 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @ben_chin,

 

We don't support IAR EW 9.40.1, please contact IAR Systems https://www.iar.com/support

 

But I can reproduce the same error In S32DS if the macro is defined in the C compiler preprocessor only.

You need to define the macro in both the C compiler preprocesor and the Assembler preprocessor.

danielmartynek_0-1756278593837.png

danielmartynek_1-1756278632199.png

 

Regards,

Daniel

 

 

 

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2158001%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K312%20IAR%20EW%20%E9%9B%86%E6%88%90%E9%97%AE%E9%A2%98%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2158001%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%E6%81%A9%E6%99%BA%E6%B5%A6%E7%A4%BE%E5%8C%BA%E3%80%81%3C%2FP%3E%3CP%20class%3D%22%22%3E%E5%B0%86%20S32K312%20MCAL%20%E9%9B%86%E6%88%90%E5%88%B0%20IAR%20EW%20%E6%97%B6%E9%81%87%E5%88%B0%E4%BA%86%E4%BB%A5%E4%B8%8B%E9%97%AE%E9%A2%98%EF%BC%9A%3C%2FP%3E%3COL%3E%3CLI%3E%3CP%20class%3D%22%22%3E%E5%90%AF%E7%94%A8%20MCAL_ENABLE_USER_MODE_SUPPORT%20%E9%A2%84%E5%AE%9A%E4%B9%89%E5%AE%8F%E5%90%8E%EF%BC%8C%E5%87%BA%E7%8E%B0%E4%BB%A5%E4%B8%8B%E9%94%99%E8%AF%AF%EF%BC%9A%E6%89%BE%E4%B8%8D%E5%88%B0%E5%87%BD%E6%95%B0%22startup_getControlRegisterValue%22%20%E5%92%8C%22startup_getAipsRegisterValue%22%20%E7%9A%84%E5%AE%9A%E4%B9%89%E3%80%82%E6%A0%B9%E6%8D%AE%20IM%20%E6%89%8B%E5%86%8C%EF%BC%8C%E9%9C%80%E8%A6%81%E5%90%AF%E7%94%A8%E8%AF%A5%E5%AE%8F%E3%80%82%E5%A6%82%E6%9E%9C%E4%B8%8D%E5%90%AF%E7%94%A8%E8%BF%99%E4%B8%AA%E5%AE%8F%EF%BC%8C%E4%BC%9A%E6%9C%89%E4%BB%80%E4%B9%88%E5%BD%B1%E5%93%8D%EF%BC%9F%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%20class%3D%22%22%3E%E5%87%BA%E7%8E%B0%E4%BB%A5%E4%B8%8B%E7%BC%96%E8%AF%91%E9%94%99%E8%AF%AF%EF%BC%9AError%5BLp004%5D%3A%20actual%20size%20(0x448)%20exceeds%20maximum%20size%20(0x410)%20for%20block%22interrupt_vector_init%22.%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3%E8%BF%99%E4%B8%AA%E9%97%AE%E9%A2%98%EF%BC%9F%3C%2FP%3E%3C%2FLI%3E%3C%2FOL%3E%3CP%3ERTD%3A%20SW32K3_S32M27x_RTD_R21-11_6.0.0%3C%2FP%3E%3CP%3EEB%3A%2029.0%3C%2FP%3E%3CP%3EMCU%3A%20S32K312%3C%2FP%3E%3CP%3Eide%3A%20iar%20ew%209.40.1%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2158861%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K312%20IAR%20EW%20Integrate%20Problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2158861%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F167714%22%20target%3D%22_blank%22%3E%40ben_chin%3C%2FA%3E%E3%80%81%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%E6%88%91%E4%BB%AC%E4%B8%8D%E6%94%AF%E6%8C%81%20IAR%20EW%209.40.1%EF%BC%8C%E8%AF%B7%E8%81%94%E7%B3%BB%20IAR%20Systems%3CA%20href%3D%22https%3A%2F%2Fwww.iar.com%2Fsupport%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.iar.com%2Fsupport%3C%2FA%3E%E3%80%82%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%E4%BD%86%E5%A6%82%E6%9E%9C%E5%8F%AA%E5%9C%A8%20C%20%E7%BC%96%E8%AF%91%E5%99%A8%E9%A2%84%E5%A4%84%E7%90%86%E5%99%A8%E4%B8%AD%E5%AE%9A%E4%B9%89%E5%AE%8F%EF%BC%8C%E6%88%91%E5%B0%B1%E8%83%BD%E5%9C%A8%20S32DS%20%E4%B8%AD%E9%87%8D%E7%8E%B0%E5%90%8C%E6%A0%B7%E7%9A%84%E9%94%99%E8%AF%AF%E3%80%82%3C%2FP%3E%0A%3CP%3E%E6%82%A8%E9%9C%80%E8%A6%81%E5%9C%A8%20C%20%E7%BC%96%E8%AF%91%E5%99%A8%E9%A2%84%E5%A4%84%E7%90%86%E5%99%A8%E5%92%8C%E6%B1%87%E7%BC%96%E7%A8%8B%E5%BA%8F%E9%A2%84%E5%A4%84%E7%90%86%E5%99%A8%E4%B8%AD%E5%AE%9A%E4%B9%89%E8%AF%A5%E5%AE%8F%E3%80%82%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22danielmartynek_0-1756278593837.png%22%20style%3D%22width%3A%20537px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danielmartynek_0-1756278593837.png%22%20style%3D%22width%3A%20537px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F354261i23BEE7B74AA2AE8F%2Fimage-dimensions%2F537x402%3Fv%3Dv2%22%20width%3D%22537%22%20height%3D%22402%22%20role%3D%22button%22%20title%3D%22danielmartynek_0-1756278593837.png%22%20alt%3D%22danielmartynek_0-1756278593837.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22danielmartynek_1-1756278632199.png%22%20style%3D%22width%3A%20539px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danielmartynek_1-1756278632199.png%22%20style%3D%22width%3A%20539px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F354262iBE46D894B846AA1F%2Fimage-dimensions%2F539x461%3Fv%3Dv2%22%20width%3D%22539%22%20height%3D%22461%22%20role%3D%22button%22%20title%3D%22danielmartynek_1-1756278632199.png%22%20alt%3D%22danielmartynek_1-1756278632199.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%E6%AD%A4%E8%87%B4%EF%BC%8C%3C%2FP%3E%0A%3CP%3E%E4%B8%B9%E5%B0%BC%E5%B0%94%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E