I am using XM125 radar module first time. any one have example code for STM32 micro-controller to measure distance?
You can just use our Arduino section of the guide and select STM32 as your board
I did see this post a few days ago, as a FYI/note NOTE: Version 2.0 of the SparkFun Qwiic Acconeer XM125 library requires a code change if using qwiic
I need library file as well for STM32 to connect xm125-A121 radar module. Sparkfun provides library for only arduino not for stm32.
Are you after this? Installing the STM32CubeProgrammer - SparkFun Qwiic Pulsed Coherent Radar Sensor Breakout - Acconeer XM125 Hookup Guide (it’s an alternate IDE you can use; STM32 libraries should be built-in and/or selectable)
no. I want to use STM32 micro- controller rather then arduino. so, I need STM32 compatible library file. Library file is provided by sparkfun. but, it is working for arduino micro-controller only.
It doesn’t look like sparkfun has a stm32 library to send you, only an arduino library.
Sparkfun have not. But, if anyone have then they can share here
Hi -
I’m not sure if this helps, but …
While we only ship a Arduino library, with some recent changes, the actual logic of the library is just straight C++, and uses our “Toolkit” that abstracts out the I2C communication.
The XM125 logic/c++ implementation is in this directory:
And the SparkFun Toolkit is here:
You would need to create a STM version of the Toolkit - following the pattern set by our Arduino implementation. Basically an object that implements the interface we created for I2C.
This is work, but you wouldn’t need to start from scratch.
Our intent is to expand our library support to different platforms (maybe FreeRTOS, Zephyr, …) in the future.
Hope this helps.
-Kirk