2024-11-28 03:07 AM
Hello,
I am programming my ISPU code that work on interrupts INT1 and INT2 in STM32CubeIDE and testing it in STEVAL-MIK109V3 with adapter board MKI229A (LSM6DSO16IS) and showing my output value in MEMS Studio.
I configured the conf.txt linking the interrupts NT1 to function "algo_00" and INT2 to function "algo_01".
conf.txt:
acc_odr 104
acc_fs 2
acc_mode high_performance
gyr_odr 104
gyr_fs 500
gyr_mode high_performance
ispu_irq_rate 104
ispu_int1 enable
ispu_int2 enable
ispu_latch disable
algo 0 enable
algo 1 enable
algo_int1 0 enable
algo_int2 1 enable
After building and uploading the ispu.ufc in the sensor with MEMS Studio happens that when INT2 is 0, it freezes all my custom ISPU Output data. And when INT2 is 1, it reads the ISPU Output data. The same does not happen with INT1.
In the main.c, in signal function "algo_00" has:
if(emit_int1 == 1){
int_status = int_status | 0x1u;
}
And in function "algo_01":
if(emit_int2 == 1){
int_status = int_status | 0x2u;
}
I have not modified the function "int main(void)"
Is it correct my configuration to work with INT1 and INT2? could you give me some advices please?
Thank you very much