Close

September 2016 Update

A project log for RabbitDueOpenECU

DIY Automotive ECU with ARM Cortex M3 Arduino Due Controller

matthewmatthew 10/02/2016 at 12:450 Comments

The Rabbit Due Open Source Engine Control Unit (ECU) software is build upon the ECUHost RTOS. This free and open-source RTOS is targeted towards automotive DIY projects and runs great on the Freescale Kinetis Cortex M4 micro-controller.

I am hoping to create a system where the user can run a Arduino IDE created sketch, or and ECUHost application. A bit like a dual-boot PC!

I have been doing a fair bit of work during September adding a hardware abstraction layer (HAL) which should hopefully make porting to the Arduino Due Cortex M3 SAM3X8E micro-controller straight forward. This involves adding 'HA.c and 'HA.h files for each code module that isn't platform independent. Not platform independent just means that the module reads or writes to CPU registers or special memory locations that are unique for the micro-controller family. Hopefully you can see the concept in the system layers diagram below (look at the second lowest layer - HAL).

ECUHost System Layers Diagram

So progress in September was basically adding all of the required files in Atmel Studio 7 and working on the source code until I could get a compile. Next step get debugging!

All of these efforts can be seen here:

https://github.com/RabbitECUProject/RabbitECUOpenHALTrunk

What Next?

Aim for October - see how much functionality I can add to the HAL layer files for the SAM3X8E Arduino Due micro-controller.

I am hoping to have the analog and timed I/O working so I can do some bench testing before running the Rabbit Due Open ECU on the C14NZ test engine.

Discussions