EEVblog Electronics Community Forum

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

Title: Compiling Firmware
Post by: davidleverett30 on May 08, 2017, 08:12:48 pm
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 09, 2017, 01:05:52 am
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, 01:48:48 pm
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:
http://www.youtube.com/watch?v=_QXoTNP9GIw (http://www.youtube.com/watch?v=_QXoTNP9GIw)