Invensense Motion Driver 6.12 STM32 demo python don't work

匿名 (未验证) 提交于 2019-12-03 01:45:01

问题:

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?

  1. I think you need to check if you use the right COM Port in windows.
  2. Check if you could get data from your MPUxxxx Board through I2C
  3. Check log_stm32.c if this function work well fputc(out[i]);


标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!