Fred's firmware development diary

Official FreeEMS vanilla firmware development, the heart and soul of the system!
User avatar
Fred
Moderator
Posts: 15433
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Fred's firmware development diary

Post by Fred »

Our man in need has been taken care of! Thank you for the multiple offers to help, most appreciated. Thanks for looking after him too!

In the last 3 hours I've:
  • Installed a full latex setup with two front ends
  • Ordered twenty thousand components
  • Installed a full virtual box setup
  • Downloaded an ubuntu 12.04 image
  • Booted and updated that image
  • Cursed and sworn a lot
  • Murdered one V can
Image

It was necessary in order to not damage other items in the immediate vicinity.

I've got a clear set of things to do for the rest of the day, too. Though ubuntu may drive me to the bottle before the day is out.

This VM setup is reminding me why I ditched it after 2 weeks of pain 4 years ago. I'll NEVER run it by choice on real hardware. Though it should make for a good test rig for FreeEMS GUI apps on late model libraries.

Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15433
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Fred's firmware development diary

Post by Fred »

SUCCESS!!! I just burned a CPU with a BDM, on Linux, on Debian. Ubuntu, goodbye. You were just a sandbox anyway.

I used the TA USBDM which is a non-CF non-SER JS16 version.

http://usbdm.sourceforge.net/USBDM_V4.9 ... index.html
http://www.technologicalarts.ca/catalog ... cts_id=572

Though there are cheaper ones available out of China direct. I followed this process:
  1. Install codewarrior in VM
  2. Copy /usr/local/Freescale to your real machine
  3. Download http://sourceforge.net/projects/usbdm/f ... z/download
  4. Run the install script with sudo
  5. Run the HCS12 flash utility with sudo
  6. See that firmware was out of date
  7. Run the Bootloader with sudo and install correct latest firmware
  8. Run the HCS12 flash utility with sudo
  9. Select the s19 file
  10. Select the target type
  11. Select eraseselective
  12. Click program flash
  13. Unplug BDM
  14. Reset device
  15. Query firmware parameters
  16. Clap hands and shout "fuck yes" :-)
I followed the slightly convoluted VM process because I would rather cut off my manhood than use install-shield installers under Linux as root on a box that I care about. I intend to help other users whom I know personally by easing this process for them. I'll post here when that service is available by request...

EDIT: sudo required because default group and permissions are not suitable for normal use. It would make sense to add a group that is common for users to the rules file, i may do that in future.

Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15433
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Fred's firmware development diary

Post by Fred »

Fairly comprehensive build instructions for MegaTunix are now available and stickied in the appropriate forum section:

viewtopic.php?f=11&t=1642

They may be slightly incomplete, IE, it may need g++ installed too, I'm yet to confirm this.
EDIT: Confirmed and updated to match reality.

Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15433
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Fred's firmware development diary

Post by Fred »

I finally got around to starting to tell the story of the USA road trip that ended with FreeEMS running the first Volvo! Here it is:

viewtopic.php?f=41&t=1571

Beware, first page has 6 megs of pics, second, third and fourth, likely more. I uploaded something like 1250 photos, but only used the best of for the story. More to come, but likely a few weeks away.

Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15433
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Fred's firmware development diary

Post by Fred »

Engine number 11:

http://youtu.be/rCacE4CE4R8
http://youtu.be/MM2kjRFz0No

What an epic sound it has :-)

Great work, congratulations Andy!

Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15433
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Fred's firmware development diary

Post by Fred »

I received one of these today and because it doesn't appear to be 100% documented, I measured it.

http://www.seeedstudio.com/depot/high-q ... th=170_171

Red is the shared centre tap, IE, pin 5 with pink, yello, orange, blue being the other connections.

This will assist in initial idle control development.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15433
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Fred's firmware development diary

Post by Fred »

New and sweeter video from the Deuce coupe with fixed wiring:

http://www.youtube.com/watch?v=nRuFHBCM2rw

You can hear the off idle lack of response, but other than that it sounds pretty sweet. Especially considering it has flat 10 degree timing right now.

I suspect Andy is going to be a very valuable tester :-)

Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15433
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Fred's firmware development diary

Post by Fred »

^ wiring wasn't fixed at all, but it really is now:

http://www.youtube.com/watch?v=p-ybU0Kjfbw

:-)
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15433
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Fred's firmware development diary

Post by Fred »

Was working with Andy until nearly 4am to get some ign timing into the Deuce Coupe. He'll be doing some testing of various things tomorrow and we'll go from there. Once he has timing he'll do me an 8 channel log of port T while running and I'll get him a new decoder that has more resolution but is still usable in a straight forward way with DIS. Right now it's 7am and the sun is coming up over Barcelona so it's time to get a couple of hours sleep.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15433
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Fred's firmware development diary

Post by Fred »

I just found out that Peter has wired a button to his injector driver to prime his engine when cold to get it running. I'm deeply ashamed and even more amused. Also, his mum, sorry, "mom", noticed that it runs better and is daily driving it right now :-o

So, need to get priming pulse stuff added for him ASAP....

Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
Locked