EEVblog Electronics Community Forum

Electronics => Beginners => Topic started by: davidleverett30 on May 08, 2017, 10:12:48 am

Title: Compiling Firmware
Post by: davidleverett30 on May 08, 2017, 10:12:48 am
I have bought an inemo-M1 IMU and would like to change part of the firmware (I want to use the SPI external interface on the board).

I have the source code (C/C++) and can see the (SPI) driver to use, however, the documentation doesn't explain how I update the code.

I can only assume that I need to take the existing code, drop the driver into the correct folder and then compile it.

The firmware is in .hex format. C/C++ ---> .hex

To be honest, this is the first time I've done anything like this and it is pretty confusing. Where should I start?
Title: Re: Compiling Firmware
Post by: Matir on May 08, 2017, 03:05:52 pm
Is the code somewhere public?  Does it have a Makefile or any build scripts?
Title: Re: Compiling Firmware
Post by: davidleverett30 on May 09, 2017, 03:48:48 am
I've made some steps forward.
I looked into the source code until I found something called MDK.. googlig... this lead to an ARM-MDK software that can compile the code into a hex.
There is a file with the extension .uvproj with a list of everything my hex file should include.

I have enabled the SPI stuff and will then compile the code. I'll update the board tonight.

This dude was a big help:
https://www.youtube.com/watch?v=_QXoTNP9GIw (https://www.youtube.com/watch?v=_QXoTNP9GIw)