S32K312 IAR EW Integrate Problem

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

S32K312 IAR EW Integrate Problem

716 Views
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 Kudos
Reply
1 Reply

647 Views
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 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2158001%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K312%20IAR%20EW%20Integrate%20Problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2158001%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20NXP%20Community%2C%3C%2FP%3E%3CP%20class%3D%22%22%3E%26nbsp%3BI%20encountered%20the%20following%20issues%20when%20integrating%20the%20S32K312%20MCAL%20into%20IAR%20EW%3A%3C%2FP%3E%3COL%3E%3CLI%3E%3CP%20class%3D%22%22%3EAfter%20enabling%20the%20MCAL_ENABLE_USER_MODE_SUPPORT%20predefined%20macro%2C%20the%20following%20error%20occurred%3A%20the%20definitions%20of%20the%20functions%20%22startup_getControlRegisterValue%22%20and%20%22startup_getAipsRegisterValue%22%20could%20not%20be%20found.%20According%20to%20the%20IM%20manual%2C%20this%20macro%20needs%20to%20be%20enabled.%20What%20are%20the%20impacts%20if%20this%20macro%20is%20not%20enabled%3F%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%20class%3D%22%22%3EThe%20following%20compilation%20error%20occurred%3A%20Error%5BLp004%5D%3A%20actual%20size%20(0x448)%20exceeds%20maximum%20size%20(0x410)%20for%20block%20%22interrupt_vector_init%22.%20How%20can%20this%20be%20resolved%3F%3C%2FP%3E%3C%2FLI%3E%3C%2FOL%3E%3CP%3ERTD%3A%26nbsp%3BSW32K3_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%3EHello%26nbsp%3B%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%2C%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EWe%20don't%20support%26nbsp%3BIAR%20EW%209.40.1%2C%20please%20contact%20IAR%20Systems%26nbsp%3B%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%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBut%20I%20can%20reproduce%20the%20same%20error%26nbsp%3BIn%20S32DS%20if%20the%20macro%20is%20defined%20in%20the%20C%20compiler%20preprocessor%20only.%3C%2FP%3E%0A%3CP%3EYou%20need%20to%20define%20the%20macro%20in%20both%20the%20C%20compiler%20preprocesor%20and%20the%20Assembler%20preprocessor.%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%3ERegards%2C%3C%2FP%3E%0A%3CP%3EDaniel%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E