2022-06-09 03:04 AM
Hi All,
Currently I try to compiler(clean and build) X-CUBE-CLASSB project for MCU self test function. I got error as below Does anyone know what wrong or missing setting something? I had try compiler in two project , all get error.
IDE: IAR 9.20.4
WIN 11
STM32G081B_Eval
STM32G474_Nucleo
Sam
Solved! Go to Solution.
2022-06-16 06:54 AM
Hello Sam,
at first case (G0 project), it seems that non existing directory is defined at the project setting, great probably the one to detect correct allocation of the STL source files. The easiest way is to delete & reload all the missing files from/to the project workspace from their true directories. A missing file can be recognized easily as it cannot be opened from the Workspace window there. You will probably face by wrong content of the included directories list at the project setting, too. Then you need to correct it as well. You can do the same by editing ewp file. I suggest to use relative path control via argument variable "$PROJ_DIR$".
The second case (G4 project) is different as the linker here signalizes to you that there is not enough space in the RAM to allocate sections P1, P2 and P6. Please, open the project map file and inspect which parts of your code fill these sections by data. You need allocate more space for these sections at linker configuration icf file and/or consider reducing their sizes.
More info you can find at IAR documentation easily accessible from the IDE help menu.
Best regards,
Petr
2022-06-16 06:54 AM
Hello Sam,
at first case (G0 project), it seems that non existing directory is defined at the project setting, great probably the one to detect correct allocation of the STL source files. The easiest way is to delete & reload all the missing files from/to the project workspace from their true directories. A missing file can be recognized easily as it cannot be opened from the Workspace window there. You will probably face by wrong content of the included directories list at the project setting, too. Then you need to correct it as well. You can do the same by editing ewp file. I suggest to use relative path control via argument variable "$PROJ_DIR$".
The second case (G4 project) is different as the linker here signalizes to you that there is not enough space in the RAM to allocate sections P1, P2 and P6. Please, open the project map file and inspect which parts of your code fill these sections by data. You need allocate more space for these sections at linker configuration icf file and/or consider reducing their sizes.
More info you can find at IAR documentation easily accessible from the IDE help menu.
Best regards,
Petr
2022-06-22 10:38 PM
Hi Petr,
Got it , thank for your information