2024-09-18 02:53 AM
Hello,
I tried to follow instructions in UM3233 - Getting started with MEMS Studio Chapter 7.17 Algobuilder - Creating your first design. As a target I have NUCLEO-F401RE + X-NUCLEO-IKS02A1 + ISM330IS.
The building process finished without any error, just one warning:
warning: STM32F4xx-Nucleo-Project.elf has a LOAD segment with RWX permissions
Programming target was successful.
After programming I tried to connect to the board. A COM port is displayed but trying to connect leads to "Board not identified".
I checked in the Device Manager and the COM port belongs to the correct target "STMicroelectronics STLink Virtual CAM Port (COM4)".
Any idea what the issue might be?
2024-10-02 05:03 AM
Hello @StephanMP,
the waring is expected it is due to a new feature in gcc compiler, you can ignore it.
I was able to replicate your issue are there is a bug in the firmware, we will fix in next release of MEMS Studio.
In the meantime you can add __HAL_RCC_GPIOB_CLK_ENABLE(); command after line 631 into main.c which is located in the c:\Users\USERNAME\AppData\Local\STMicroelectronics\MEMS Studio\release\ProjectTemplate\Project\Src\ folder and Initialize Project Directory and build it again. It should solve the issue.
2024-10-02 08:23 AM - edited 2024-10-02 08:28 AM
Hello,
Same trouble here with a NUCLEO-F476RG and a IKS01A3 and this minimal project :
I modified the line you told :
but still the same problem : Unicleo don't see any board neither showing any graph :
I just want to mention that while building firmware, got an error in bytecpy function :
Error: In function 'bytecpy',
Error: inlined from 'lsm6dso_mode_set' at C:/Test/Drivers/BSP/Components/lsm6dso/lsm6dso_reg.c:12217:5:
Error: C:/Test/Drivers/BSP/Components/lsm6dso/lsm6dso_reg.c:97:13: warning: '*(uint8_t *)(&ctrl2_ois + offsetof(lsm6dso_ctrl2_ois_t, hp_en_ois))' may be used uninitialized [-Wmaybe-uninitialized]
Error: 97 | *target = *source;
Error: | ~~~~~~~~^~~~~~~~~
Error: C:/Test/Drivers/BSP/Components/lsm6dso/lsm6dso_reg.c: In function 'lsm6dso_mode_set':
Error: C:/Test/Drivers/BSP/Components/lsm6dso/lsm6dso_reg.c:11787:23: note: '*(uint8_t *)(&ctrl2_ois + offsetof(lsm6dso_ctrl2_ois_t, hp_en_ois))' was declared here
Error: 11787 | lsm6dso_ctrl2_ois_t ctrl2_ois;
Error: | ^~~~~~~~~
But the tool is still able to build the project :
Any other idea ?
Thanks
2024-10-02 08:50 AM
Hello @AlexJ
this is definitely different issue. The error you see is only warning and doesn't have any impact.
I'm not able to replicate it. Didn't you do any modification in the boards?
I would recommend you to use MEMS Studio instead of AlgoBuilder and Unicleo-GUI. MEMS Studio offers the same functionality and even more in on application.
2024-10-03 12:49 AM
Hello,
I tried with MEMS Studio too :
Building is successfull and programming also.
But I'm still unable to connect the board :
All tools seems up to date :
Boards are in their original conditions.
Thaks for your help
2024-11-05 01:52 AM
Hello @AlexJ,
Could you please test if the boards are all right using the provided binary file "datalogterminalNUCLEO-L476RG.bin"?
After uploading this binary to the Nucleo, if the boards are okay, you should be able to see the output of the extension board sensors in a terminal as shown in the provided screenshot.
Let us know the result.