Dear Sirs :
I have the same question as the request of NXP community about 1 year ago.
LPC55 power lib of "-fshort-enums -fno-short-whcar" options requisition |
Can NXP provide the project with disabled “Short enums/wchar” option now ?
I'm trying to add fingerprint lib to trustzone example “Hello World” from SDK_2.9.0_LPCXpresso55S69_Keil ( Keil IDE proejct )
Everything runs good until I disable the “Short enums/wchar” options which enable in the “Language / Code Generation” of Options dialog Arm C/C++ (AC6) Compiler.
That's why I got the error message “debug\hello_world_s.out: Error: L6242E: Cannot link object fsl_power_lib.o as its attributes are incompatible with the image attributes.” from console log after built project.
To fix the error message, we can either
- change the lib project source compiler setting to make it same with the application settings.
or
- change the application compiler setting to keep it same it as same as lib's.
Reference :
LPC55 power lib of "-fshort-enums -fno-short-whcar" options requisition |
已解决! 转到解答。
Please give me some time to check this internally. I will let you know any update.
Best regards,
Felipe
Hi,
I have received information from internal team, unfortunately, you will have to keep those settings to match powerlib attributes. Otherwise it'd require full validation and support from SDK team just for this change. If this is really required, we'd need to analyze the opportunity internally.
Best regards,
Felipe