You mean the one between the reset pin and ground?
Well, that one was a very indirect workaround. The MCU entered in SM mode because of an unwanted pulldown caused by the FT232.
You won't have that problem if you use an external RS232 interface, but its recommendable to put a cap in there.
Try a 0.1uF like Spin2 has :-)
Spudmn's Puma board build
- nitrousnrg
- LQFP144 - On Top Of The Game
- Posts: 468
- Joined: Tue Jun 24, 2008 5:31 pm
Re: Spudmn's Puma board build
I don't know about the software you need, but it will include codewarrior free edition which is a HUGE download. The BDM I have is a P&E one, I'll get you the model number later.
Fred.
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!
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!
-
- QFP80 - Contributor
- Posts: 38
- Joined: Sun Oct 26, 2008 11:32 pm
Re: Spudmn's Puma board build
I'm using this tool:
http://www.flashgenie.net/USBDM.html
For this tool there is a free standalone programming software - no need to use huge IDE suites:
http://sourceforge.net/projects/usbdm/f ... p/download, check "HCS12_FlashProgrammer".
Cheap and handy!
Cheers,
GJ
http://www.flashgenie.net/USBDM.html
For this tool there is a free standalone programming software - no need to use huge IDE suites:
http://sourceforge.net/projects/usbdm/f ... p/download, check "HCS12_FlashProgrammer".
Cheap and handy!
Cheers,
GJ
- nitrousnrg
- LQFP144 - On Top Of The Game
- Posts: 468
- Joined: Tue Jun 24, 2008 5:31 pm
Re: Spudmn's Puma board build
Nice!
I looked it a little and already added those links to the manual :-) I hope they are ok, can't test them right now.
Thanks for the input GJ
I looked it a little and already added those links to the manual :-) I hope they are ok, can't test them right now.
Thanks for the input GJ
Marcos
Re: Spudmn's Puma board build
Spudmn has a rip of my hyundai code and a SM on his cpu now :-)
Next step: make it talk to the world.
Fred.
Next step: make it talk to the world.
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!
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!
- Spudmn
- LQFP112 - Up with the play
- Posts: 232
- Joined: Thu Feb 10, 2011 12:27 am
- Location: Auckland, NZ
Re: Spudmn's Puma board build
Just got back from Fred's place were we managed to get the boot loader installed.
Something is wrong with my RS232 set up because we couldn't get a coms connection to it. It didn't help that I trip the RCD 3 times until I found that I had a dodgy power board.
I will get it on the scope tomorrow to see what is wrong.
Thanks Fred.
Something is wrong with my RS232 set up because we couldn't get a coms connection to it. It didn't help that I trip the RCD 3 times until I found that I had a dodgy power board.

I will get it on the scope tomorrow to see what is wrong.
Thanks Fred.
Re: Spudmn's Puma board build
3??? I swear it was more than that! :-) Or maybe I was counting the repeated trips as many and you were counting them as one per set :-)
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!
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!
- Spudmn
- LQFP112 - Up with the play
- Posts: 232
- Joined: Thu Feb 10, 2011 12:27 am
- Location: Auckland, NZ
Re: Spudmn's Puma board build
Still no luck getting coms out of the chip.
I am getting 16Mhz on the XTAL
I was scoping the ECLK pin and I got a 4 MHz square wave. I would have thought that this should have been 40 MHz so I think that I might have a PLL problem. When I went back to measure it again it was gone.
I ran out of time to do any more testing today but will look again soon
Can someone confirm that ECLK should be 40 MHz.
I am getting 16Mhz on the XTAL
I was scoping the ECLK pin and I got a 4 MHz square wave. I would have thought that this should have been 40 MHz so I think that I might have a PLL problem. When I went back to measure it again it was gone.
I ran out of time to do any more testing today but will look again soon
Can someone confirm that ECLK should be 40 MHz.
Re: Spudmn's Puma board build
PLL isn't engaged in the SM code, so that could be what you're seeing.
Here is an empirical test:
measure current draw of board with boot without jumper and with jumper, if they are different, you have different code running, and different clock frequencies. On my Puma I see 70mA with SM running and 100mA with firmware running. Might provide some clues.
Fred.
Here is an empirical test:
measure current draw of board with boot without jumper and with jumper, if they are different, you have different code running, and different clock frequencies. On my Puma I see 70mA with SM running and 100mA with firmware running. Might provide some clues.
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!
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!
- Spudmn
- LQFP112 - Up with the play
- Posts: 232
- Joined: Thu Feb 10, 2011 12:27 am
- Location: Auckland, NZ
Re: Spudmn's Puma board build
I read 15 mA in both SM and run mode. This could be because the PLL is not starting and the main code won't come out of PLL init until the PLL has locked.
Still can’t find the 4Mhz wave form again.
Can anyone please confirm that I am supposed to get a wave form on the ECLK pin.
What is it meant to be in SM mode and what is it in Run mode.
Still can’t find the 4Mhz wave form again.

Can anyone please confirm that I am supposed to get a wave form on the ECLK pin.
What is it meant to be in SM mode and what is it in Run mode.