Skip to main content
lemke.a.w
Associate II
April 30, 2024
Solved

Why the use of ST's Middlewares is soo haaaaard? STM32WLE5 CMSIS DSP LoRa

  • April 30, 2024
  • 5 replies
  • 4178 views

I'm trying to use the DSP Library on the STM32WLE5CCU6 and some error messages appear on STM32CubeIDE. I have the same code tested and running on STM32F103C8T6 and STM32F407VET6 without any problem.

lemkeaw_0-1714512816698.png

STM32CubeIDE Version: 1.14.0 Build: 19471_20231121_1200 (UTC)

STM32CubeMX Version 6.10.0

STM32CubeWL Firmware Package v1.3.0 / 09-November-2022

STMicroelectronics.X-CUBE-ALGOBUILD DSP Library Library 1.3.0

I'm seriously thinking about switching to using any other STM32 with an external SX1262 chip via SPI interface than the STM32WL with its related libraries. The LoRa middleware is impossible to work with, I am forced to provide an UART interface  (Why not use SWV / ITM interface ?) and the ADC , I cannot disable it.

This kind of thing sometimes makes me think about giving up on ST!

 

 

 

 

 

 

 

 

Best answer by STTwo-32

Hello @lemke.a.w 

I suggest you follow the same steps on the FAQ recommended by my colleague @Amel NASRI  but on the step:

From Project menu or File menugo to Properties > C/C++ Build > Settings > Tool Settings > MCU CGC Linker > Libraries > Libraries (-l) > Add insert the following library: "arm_cortexM4l_math" and not the "arm_cortexM4lf_math".

Best Regards.

STTwo-32

5 replies

Tesla DeLorean
Guru
April 30, 2024

This looks to be a disparity between the build settings for the RAK3172 project, and the library.

ie FPU enabled and the appropriate softfp / hardfp option for the ABI, likely buried in the meta-data or target settings

https://www.gurucoding.com/rpi_cross_compiler/2012/04_diff_hardfp_softfp/

 

Yeah, a lot of this could do with real-world testing, not just ST boards/hardware. I often find the need to bludgeon libraries (middleware or related shim code) into a form that's remotely shippable.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
lemke.a.w
lemke.a.wAuthor
Associate II
May 2, 2024

Any simple workaround? STM32CubeIDE step by step configuration? Will I not be able to use the DSP CMSIS package on the STM32WLE5? I really need to understand how the compiler and "ABI" works to implement a simple filter routine? The company abandoned the STM32WLE5 series chips (1.3.0 / 09-November-2022) 

Every day I see the company launch a new chip. But it cannot maintain a simple silicon with its respective framework in a completely functional way with all the resources it offers!

 

 

 

AScha.3
Super User
May 2, 2024

company abandoned the STM32WLE5 series chips

Hmm, these are -- wrong ?

https://www.st.com/en/microcontrollers-microprocessors/stm32wlex/products.html

 

> Will I not be able to use the DSP CMSIS

From error shown -> you mix a lib that is using hardware FPU with other, using that uses only software float lib.

This wont work (I know....guess why ?) , according to the basic project you have to set your cpu compiler options (hard, soft, mix) and if choose some cmsis DSP lib, you have to take one for this setting.

 

>Every day I see the company launch a new chip. But it cannot maintain...

Agree, obviously its more easy, to puzzle together a new chip, than to make a good and error free ( :) ) lib for every chip variant. But i think, not only a "STM problem" , others more or less same.

"If you feel a post has answered your question, please click ""Accept as Solution""."
lemke.a.w
lemke.a.wAuthor
Associate II
May 2, 2024

@Francesco CARIATI @Amel NASRI 

lemke.a.w
lemke.a.wAuthor
Associate II
May 2, 2024

@Peter BENSCH @Lina_DABASINSKAITE 

BarryWhit
Lead
September 3, 2024

*correction*

STTwo-32
Technical Moderator
September 3, 2024

Done, thank you @BarryWhit .

Best Regards.

STTwo-32