2017-09-07 09:31 AM
I am trying to compile the CubeMX expansion for AWS, but I get an Error[Lp050]: placement includes both uninitialized sections (example 'ro data section UNINIT_FIXED_LOC in iot_flash_config.o symbols: [lUserConfig]') and sections with content (example 'initializers for P3'). Does anyone know how to fix this?
#cubemx #aws2017-09-07 11:06 AM
Perhaps use a version of IAR contemporary with the project? ie v6.x not v7.x
2017-09-08 06:41 AM
Hello
Brack.Russel
,Please provide more details about your environment, tools version used?
Thanks
Imen
2017-09-08 09:19 AM
Hello Imen D,
My IDE is IAR Embedded Workbench for ARM v7.70.1.11486 with IAR Embedded Workbench shared components v7.5.1.4405. I am trying to compile the B-L475E-IOT01 cloud application project in both STM32CubeExpansion_Cloud_AWS_V1.1.0, and STMCubeExpansion_Cloud_AZURE_V1.0.0. I get the same error, in the same file, in the same place for both projects, so I'm hoping that by fixing one, the other will be fixed as well.
If there is any other information you would like me to supply, please, don't hesitate to ask.
Thank you for your help,
Russel
2017-09-11 03:46 AM
Hi
Brack.Russel
,After check, we don't have this build error with the sample application which is part of the package.
But, it is possible that if you change the application, particularly allocate more constant data, or increase the size of the used ROM, it create such a linker allocation clash. Maybe the UserConfig structure should be added so that if fills completely all the Flash pages it is stored on. As a workaround, you may also change the attributes, so that this struct is initialized as any other const. But, then you will have to reconfigure the board with the WiFi and Cloud credentials each time you update the application from IAR or STLink.Kind Regards
Imen
2017-09-11 03:58 AM
After a second look, our scatter file seems to be safe: The uninitialized region is already fully page-aligned.
If it is possible to send your scatter file and the .map (if it is generated), that could help ST team to more understand the issue.Thanks
Imen
2017-11-16 12:25 PM
Hello,
I had the same issue. Please change the Linker Options to use the following configuration file (instead of the default):
STM32CubeExpansion_Cloud_AWS_V1.1.0\Projects\B-L475E-IOT01\Applications\Cloud\AWS\EWARM\stm32l475xx_flash.icf
Everything will compile after that.
Regards,
Natalia