2021-04-19 08:09 AM
Hello,
I'm having trouble setting correctly AlgoBuild and MEMS1 in STM32CubeIDE, in order to use Algobuilder, Unicleo, and Unico to recover data via the accelerometer and create IA algos.
Here are my Algobuild and MEMS1 settings.
When I compile the project, there are some minor errors, that can be easily resolved by manually including the missing files.
Then, I copy the repertory where my project is, in Users\user\STMicroelectronics\AlgoBuilder\FirmwareTemplate so my firmware is recognized by AlgoBuilder.
Generating and compiling the Firmware gives no error, neither when I program the MCU. My main problem arrives when I try to use Unicleo, it tells me that it can't recognize any boards connected to my computer. I have checked the setting option to list all COM ports, but that doesn't resolve anything; I can now see the COM port where my board is, but when I select connect, the option to Start doesn't become available.
Does anyone have an idea where I made a mistake? Or if I'm missing a step somewhere?
Thank you in advance,
Best Regards.
Eli A.
Solved! Go to Solution.
2021-07-30 12:22 AM
Hi Miroslav,
Thank you for your quick reply.
I finally did it work. I indeed put it on a high priority task, one that is called each 200 ms, but since AlgoBuilder uses the UART that I was using to send debug info to my computer, it didn't work. I think that they can't coexist since the resources must be available to be used by Unicleo that is why it couldn't recognize my "custom" board. But after commenting all my prints, it worked.
Another thing that I noticed is that when you include your firmware into the AlgoBuilder path
(C:\Users\user\STMicroelectronics\AlgoBuilder\FirmwareTemplate) with also a folder called METADATA (originating from the STM32CubeIDE build), AlgoBuilder will not rebuild your Firmware and take into account your design (.xml/algo_builder.c), it will still use the "design" (algo_builder.c) generated by the STM32CubeMX.
Thank you so much again for the help you gave me. I will continue now to recover data and process it on Unico, hoping that everything goes well.
If you need me to give you more details about how I make it work, let me know.
Have a nice day.
Eli A
2021-04-20 02:29 AM
Hi Eli @EAvina ,
I checked with out experts, and they told me that the firmware generated by AlgoBuilder use the proper communication protocol so the Unicleo-GUI doesn’t need to know the board.
The problem could be in the so called firmware template generated in STM32CubeMX (using X-CUBE-ALGOBUILD and X-CUBE-MEMS1). Can you please share this firmware template for a check? Maybe some settings is not correct.
-Eleon
2021-04-21 02:23 AM
2021-04-22 12:55 AM
Hi,
thank you for sharing the files but I would need the complete directory or the ioc file to be able check your configuration.
2021-04-22 02:53 AM
2021-04-23 03:17 AM
Hi Eli,
I would propose following:
At first glance I see following problems:
2021-04-26 07:58 AM
Hi Miroslav,
Indeed, I didn't have the same configurations as the example in file UM2689; I used the same settings but still no luck with Unicleo.
These are the changes that I made :
Do I need to see any changes in Algobuilder when I look for my Firmware and Target? Because all my sensors are Unknown.
Eli A.
2021-04-27 12:19 AM
2021-05-05 02:41 AM
2021-05-11 03:51 AM
Hi Eli,
would you please try the attached project?
I did some changes in your ioc file, I have removed the FreeRTOS and changes some function visibility settings.
At least the projects is compiled without any error but I don't the board you use next to me so I can not test it.
You can see also usage of capabilities.xml file.