Skip to main content
Visitor II
June 9, 2022
Solved

X-CUBE-CLASSB compiler fail on IAR 9.2.0.4

  • June 9, 2022
  • 2 replies
  • 1285 views

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

0693W00000NrVbkQAF.png 

STM32G474_Nucleo

0693W00000NrVckQAF.png 

Sam

    This topic has been closed for replies.
    Best answer by Petr Sladecek

    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

    2 replies

    ST Employee
    June 16, 2022

    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

    stsan.1Author
    Visitor II
    June 23, 2022

    Hi Petr,

    Got it , thank for your information