This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430F5438A: MSP430F5438A

Part Number: MSP430F5438A
Other Parts Discussed in Thread: ENERGIA

I'm trying to get my MSP430F5438A to talk to an MPU9250 magnetometer using the code in the link below. The code compiles with quite a few errors and I suspect the code is incomplete. I'm not sure how to modify it in order to get it to work. Any clarification on what I'm missing or the best way to go about fixing it would be greatly appreciated. 

github.com/.../Simple-and-Effective-Magnetometer-Calibration 

  • Hello Hans,

    There are some issues here for what you are requesting. The code you point to looks to be Arduino based and written for an STM32 MCU ARM Core device. This is in no way supported by MSP430. If you still want to use this code base, your best bet is to check out Energia. This is an Arduino like code base that can be used on MSP430. You may be able to port this code to Energia to be used on MSP430. That being said, Energia does not directly support the MSP430F5438A and will need to be ported further to add this support as Energia typically only supports the LaunchPad Ecosystem. Please visit the Energia site (http://energia.nu/) and its official forum for more information.
  • I guess I should clarify what I'm trying to do. For starters I'm trying to calibrate the MPU9250 magnetometer which is attached to the MSP430F5438A with a cable. What is the best way to go about establishing basic communication and calibration? I've never worked with any of this before and any point in the right direction would be helpful.
  • Hans,

    You would have to look up the communication interface used by the MPU and write code on the MSP430 to use the interface if its one the MSP430 supports (I2C, UART, SPI for example).

**Attention** This is a public forum