cancel
Showing results for 
Search instead for 
Did you mean: 

How to extract program from ".ucf" configuration file generated by unico?

Deepak.Aagri
Associate III

In my project i am using LSM6SOX sensor to generate the interrupt for every 10 degree incrementation on X axis. I found this link...

https://github.com/STMicroelectronics/STMems_Standard_C_drivers/blob/master/lsm6dsox_STdC/examples/lsm6dsox_fsm_raw.c it worked well! Similar way of "/Program: glance/"

static const uint8_t lsm6so_prg_glance[] = {

0xb2, 0x10, 0x24, 0x20, 0x17, 0x17, 0x66, 0x32,

0x66, 0x3c, 0x20, 0x20, 0x02, 0x02, 0x08, 0x08,

0x00, 0x04, 0x0c, 0x00, 0xc7, 0x66, 0x33, 0x73,

0x77, 0x64, 0x88, 0x75, 0x99, 0x66, 0x33, 0x53,

0x44, 0xf5, 0x22, 0x00,

};

I am try to generate .ucf.. using this link... https://github.com/STMicroelectronics/STMems_Finite_State_Machine/tree/master/configuration_examples/example_0_fsm

`const ucf_line_t Free_fall[] = {

{.address = 0x10, .data = 0x00,},

{.address = 0x11, .data = 0x00,},

{.address = 0x01, .data = 0x80,},

{.address = 0x04, .data = 0x00,},

{.address = 0x05, .data = 0x00,},

{.address = 0x5F, .data = 0x4B,},

{.address = 0x46, .data = 0x01,},

{.address = 0x47, .data = 0x00,},

{.address = 0x0A, .data = 0x00,},

{.address = 0x0B, .data = 0x01,},

{.address = 0x0C, .data = 0x00,},

{.address = 0x0E, .data = 0x00,},

{.address = 0x0F, .data = 0x00,},

{.address = 0x10, .data = 0x00,},

{.address = 0x17, .data = 0x40,},

{.address = 0x02, .data = 0x11,},

{.address = 0x08, .data = 0x7A,},

{.address = 0x09, .data = 0x00,},

{.address = 0x09, .data = 0x00,},

{.address = 0x09, .data = 0x01,},

{.address = 0x09, .data = 0x01,},

{.address = 0x09, .data = 0x00,},

{.address = 0x09, .data = 0x04,},

{.address = 0x02, .data = 0x41,},

{.address = 0x08, .data = 0x00,},

{.address = 0x09, .data = 0x61,},

{.address = 0x09, .data = 0x10,},

{.address = 0x09, .data = 0x1A,},

{.address = 0x09, .data = 0x00,},

{.address = 0x09, .data = 0x0F,},

{.address = 0x09, .data = 0x00,},

{.address = 0x09, .data = 0xCD,},

{.address = 0x09, .data = 0x34,},

{.address = 0x09, .data = 0xAB,},

{.address = 0x09, .data = 0x00,},

{.address = 0x09, .data = 0x00,},

{.address = 0x09, .data = 0x00,},

{.address = 0x09, .data = 0x00,},

{.address = 0x09, .data = 0x01,},

{.address = 0x09, .data = 0x00,},

{.address = 0x09, .data = 0xF5,},

{.address = 0x09, .data = 0x77,},

{.address = 0x09, .data = 0x99,},

{.address = 0x09, .data = 0x12,},

{.address = 0x09, .data = 0x66,},

{.address = 0x09, .data = 0x53,},

{.address = 0x09, .data = 0xC7,},

{.address = 0x09, .data = 0x66,},

{.address = 0x09, .data = 0x99,},

{.address = 0x09, .data = 0x50,},

{.address = 0x09, .data = 0x00,},

{.address = 0x04, .data = 0x00,},

{.address = 0x05, .data = 0x01,},

{.address = 0x17, .data = 0x00,},

{.address = 0x01, .data = 0x00,},

{.address = 0x5E, .data = 0x02,},

{.address = 0x10, .data = 0x20,},

{.address = 0x11, .data = 0x60,}

};'`

I am able to generate above file which is different from above /* Program: glance / why it is different and How to generate same way (/ Program: glance */ ) and don't get any ideal to generate interrupt at every 10 degree.. I am using STEVAL-MKI197V1

Thanks

Deepak Aagri

0 REPLIES 0