Skip to main content
Phanirajkiran M
Senior
May 31, 2018
Solved

VFP register arguments on STM32L4R5ZI System workbench

  • May 31, 2018
  • 9 replies
  • 2321 views
Posted on May 31, 2018 at 12:29

When I compile the STM32L4R5ZI BME680 libary, I got the error message of use VFP register arguments,

Can anyone let me know how to fix  inside the AC6 SW workbench?

Thanks

Phani

    This topic has been closed for replies.
    Best answer by Nesrine M_O
    Posted on May 31, 2018 at 15:32

    Try different combinations of the float configuration flags

    -msoft-float

    ,

    -mfloat-abi={soft,softfp}

    9 replies

    Nesrine M_O
    Associate
    May 31, 2018
    Posted on May 31, 2018 at 14:49

    https://community.st.com/0D50X00009XkWdFSAV

    Phanirajkiran M
    Senior
    May 31, 2018
    Posted on May 31, 2018 at 15:20

    The original post was too long to process during our migration. Please click on the provided URL to read the original post. https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I6tE&d=%2Fa%2F0X0000000bxQ%2FiMx.qdM0_EcYCLNgKmLCmedUKlXKYenodkvJxbV5XdE&asPdf=false
    Tesla DeLorean
    Guru
    May 31, 2018
    Posted on May 31, 2018 at 15:23

    You'd need to determine the settings for the FPU used in the library

    -mfpu=fpv4-sp-d16 -mfloat-abi=hard

    If hard doesn't match, try the soft ABI setting, or NOT using the FPU

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Phanirajkiran M
    Senior
    May 31, 2018
    Posted on May 31, 2018 at 15:22

    0690X0000060L3DQAU.png
    Tesla DeLorean
    Guru
    May 31, 2018
    Posted on May 31, 2018 at 15:24

    It's complaining it is mis-matched, work through the FPU setting options if you can't tell from inspecting the library

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Phanirajkiran M
    Senior
    May 31, 2018
    Posted on May 31, 2018 at 15:37

    -mfloat-abi=soft -mfpu=fpv4-sp-d16 -L worked and got build but 

    Now its failing in SystemClock_Config.

    And entering to WWDG_IRQHandler() at startup_stm32l4r5xx.s:132 0x8009dc0

    Failing at 

    if(HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_4) != HAL_OK)

    {

    /* Initialization Error */

    _Error_Handler(__FILE__, __LINE__);

    }

    Thanks

    Phani

    Nesrine M_O
    Associate
    May 31, 2018
    Posted on May 31, 2018 at 15:43

    Hi

    phanirajkiran.ma

    ,

    I recommend you to close this thread and open a new one describing your issue!

    -Nesrine-