3141 views|5 replies

19

Posts

0

Resources
The OP
 

How to convert the UCF file of FSM and MLC function configuration of LSM6DSOX into C code and embed it into MCU? [Copy link]

 

As the title says, how can I convert the ucf file configured with FSM and MLC functions of LSM6DSOX into C code and embed it into STM32? Thank you

This post is from MEMS sensors

Latest reply

ST's official Unico host software comes with the function of converting .ucf to .h header files, and can be used offline without a development board.   Details Published on 2023-2-3 14:06
 
 

9717

Posts

24

Resources
2
 

I'm not sure if there is a ready-made tool for converting ucf to c code, but open a routine such as:

STMems_Finite_State_Machine-master.zip\STMems_Finite_State_Machine-master\application_examples\lsm6dsox\Flip-Down detection

You can see that there are 2 files, one is .h and the other is .ucf

Open these two files and you can see that the acc 01 08 of the .ucf file corresponds to the array file {.address = 0x01, .data = 0x80,},.

You can find out if ST provides the corresponding tools, or do the conversion yourself using EXCEL or other languages.

STMems_Finite_State_Machine-master.zip (1.7 MB, downloads: 0)

This post is from MEMS sensors

Comments

Thanks, I'll go check it out.  Details Published on 2022-4-21 13:50
Personal signature虾扯蛋,蛋扯虾,虾扯蛋扯虾
 
 
 

9717

Posts

24

Resources
3
 

Comments

OK, thanks for sharing  Details Published on 2022-4-21 13:50
Personal signature虾扯蛋,蛋扯虾,虾扯蛋扯虾
 
 
 

19

Posts

0

Resources
4
 
littleshrimp posted on 2022-4-21 12:27 I am not sure if there is a ready-made tool for converting ucf to c code, but open a routine such as: STMems_Finite_State_Machine-ma ...

Thanks, I'll go check it out.

This post is from MEMS sensors
 
 
 

19

Posts

0

Resources
5
 
littleshrimp posted on 2022-4-21 13:01 I just wrote a tool that you can try. ST MEMS state machine and machine learning .ucf file to c code tool

OK, thanks for sharing

This post is from MEMS sensors
 
 
 

2

Posts

0

Resources
6
 

ST's official Unico host software comes with the function of converting .ucf to .h header files, and can be used offline without a development board.

This post is from MEMS sensors
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews

Room 1530, Zhongguancun MOOC Times Building, Block B, 18 Zhongguancun Street, Haidian District, Beijing 100190, China Tel:(010)82350740 Postcode:100190

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list