问题
I am trying to run the Invensense motion_driver_6.12. I compiled the code with IAR and the STM32 works ok - all the test I've done with the board are ok: UART, I2C.. etc. But when I run the python client demo program "eMPL-client-py" the program shows only one empty black window and nothing occurs. I tried to run first the program and then switch on the board and vice-versa.
Thanks
回答1:
I worked with this library for a week almost gave up and today finally I got this image.
Platform :
STM32F429ZI , STM32-Disc0--MB1075B development kit
motion_driver_6.12 in IAR
MPU9250/6050 (not an advertisement,I dont use an official eval-board )
At first ,I even cannot make the python-client work. After reading this passage , I can open the cube window.
Just like you, I only got a empty window. Then I modified the motion_driver_6.12
making it suitable for my board(ports conflict existing) :
1、USART:USART2-->USART1,PA9(TXD)and PA10(RXD);
2、I2C:I2C2-->I2C3,PA8(SCL)and PC9(SDA)
3、INT:PA1-->PA5(EXTI9_5_IRQn,EXTI9_5_IRQHandler,EXTI_Line5).
Make sure everything done before connecting the sensor with your board. Especially the configuration in the ARM project. An useful suggestion is to test every module such as i2c, usart and interruption.
If it's useful , give me a thumb . Any problem just comment below .
回答2:
which type of Invensense chip you are using?
- I think you need to check if you use the right COM Port in windows.
- Check if you could get data from your MPUxxxx Board through I2C
- Check
log_stm32.c
if this function work wellfputc(out[i]);
来源:https://stackoverflow.com/questions/35313998/invensense-motion-driver-6-12-stm32-demo-python-dont-work