Bootloader won't work on my board(It's working now)

For people running FreeEMS to discuss it and ask any questions about using and adjusting it.
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Bootloader won't work on my board

Post by Fred »

That should be OK, but verify the voltages anyway and the rest of what i said still applies.
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
HotCat
LQFP112 - Up with the play
Posts: 110
Joined: Wed Apr 13, 2011 2:35 am

Re: Bootloader won't work on my board

Post by HotCat »

Fred wrote:That should be OK, but verify the voltages anyway and the rest of what i said still applies.
I Play with "stock" bootloader, SCI works fine, but baudrate is 19200. So I trace the FreeEMS bootloader

0xFC96 really is the C statement "while(!(SCI0SR1 & 0x20))", when a byte was received, SCI0DRL was loaded into register A. I send 0x0d to the bootloader
Image

The bootloader receive that byte and compare to 0x0d. Unfortunately, the byte is wrong, it's 0x8(register A)
Image

Manually change register A from 0x8 to 0xD
Image

At last bootloader talks to me. So I decide to change serial chip tomorrow
Image
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Bootloader won't work on my board

Post by Fred »

So what you're saying is that your serial chip was broken/corrupt? Why didn't you load the full file that I linked and put it in firmware mode instead and use the packet diagnostics to determine how crappy/awesome your serial chip/wires was/are/were/is?
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
HotCat
LQFP112 - Up with the play
Posts: 110
Joined: Wed Apr 13, 2011 2:35 am

Re: Bootloader won't work on my board

Post by HotCat »

Fred wrote:So what you're saying is that your serial chip was broken/corrupt? Why didn't you load the full file that I linked and put it in firmware mode instead and use the packet diagnostics to determine how crappy/awesome your serial chip/wires was/are/were/is?
It's working now. This is all about the capacitances around the MAX232 chip, I choose the wrong value 0.1uF, and I change them all to 1uF and the bootloader can respond to the FreeEMS_Loader, load the bech test S19 and I can see a lot of data out of serial port. Now I can proceed to populate other components on my board. Hope everything is fine and thanks Fred and all FreeEMSers for the sincerely help

It's working, I like it
Image

Output from FreeEMS
Image
Last edited by HotCat on Fri Aug 17, 2012 2:35 am, edited 1 time in total.
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Bootloader won't work on my board

Post by Fred »

You're not the first to make that mistake! :-) Glad you got it working!

Load up a BenchTest.s19 firmware and use mtx to stimulate your port T outputs and read your inputs.
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
HotCat
LQFP112 - Up with the play
Posts: 110
Joined: Wed Apr 13, 2011 2:35 am

Re: Bootloader won't work on my board

Post by HotCat »

Fred wrote:You're not the first to make that mistake! :-) Glad you got it working!

Load up a BenchTest.s19 firmware and use mtx to stimulate your port T outputs and read your inputs.
I have difficulty to build MegaTunix on My Debian 6, is there any tutorials?
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Bootloader won't work on my board

Post by Fred »

Try this: viewtopic.php?f=11&t=1642

Or bug Mike about EMStudio bench test tab addition. You'll likely need a newer Debian to use his app, though.

Also, you'll NEED his app for any datalogging/tuning right now as MTX is not fully compatible, and will likely break further with future updates to the firmware.

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!
Post Reply