cancel
Showing results for 
Search instead for 
Did you mean: 

MEMS Studio Algobuilder output results in Board not identified

StephanMP
Associate

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?

 

 

5 REPLIES 5
Miroslav BATEK
ST Employee

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.

 

Hello,

Same trouble here with a NUCLEO-F476RG and a IKS01A3 and this minimal project :

AlexJ_0-1727882710229.png

I modified the line you told :

AlexJ_1-1727882756827.png

 

but still the same problem : Unicleo don't see any board neither showing any graph :

AlexJ_2-1727882800974.png

 

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 :

AlexJ_3-1727882887291.png

 

 

 

Any other idea ?

 

Thanks

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.

Hello,

I tried with MEMS Studio too :

Building is successfull and programming also.

AlexJ_0-1727940656812.png

But I'm still unable to connect the board :

AlexJ_1-1727940759286.png

All tools seems up to date :

AlexJ_2-1727941573687.pngAlexJ_3-1727941605756.png

 

Boards are in their original conditions.

Thaks for your help

 

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.

podluckj_0-1730800127936.png


Let us know the result.