Author Topic: Compiling Firmware  (Read 745 times)

0 Members and 1 Guest are viewing this topic.

Offline davidleverett30

  • Contributor
  • Posts: 11
Compiling Firmware
« 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?
 

Offline Matir

  • Contributor
  • Posts: 21
  • Country: us
    • SystemOverlord
Re: Compiling Firmware
« Reply #1 on: May 09, 2017, 01:05:52 am »
Is the code somewhere public?  Does it have a Makefile or any build scripts?
 

Offline davidleverett30

  • Contributor
  • Posts: 11
Re: Compiling Firmware
« Reply #2 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:
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf