View unanswered posts | View active topics It is currently Tue Sep 25, 2018 9:42 am



Reply to topic  [ 27 posts ]  Go to page Previous  1, 2, 3
Bootloader won't work on my board(It's working now) 
Author Message
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 15181
Location: Home sweet home!
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!


Sat Aug 11, 2012 2:24 pm
Profile WWW
LQFP112 - Up with the play
User avatar

Joined: Wed Apr 13, 2011 2:35 am
Posts: 110
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


Wed Aug 15, 2012 6:01 pm
Profile
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 15181
Location: Home sweet home!
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!


Wed Aug 15, 2012 9:12 pm
Profile WWW
LQFP112 - Up with the play
User avatar

Joined: Wed Apr 13, 2011 2:35 am
Posts: 110
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.



Thu Aug 16, 2012 6:24 am
Profile
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 15181
Location: Home sweet home!
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!


Thu Aug 16, 2012 11:18 am
Profile WWW
LQFP112 - Up with the play
User avatar

Joined: Wed Apr 13, 2011 2:35 am
Posts: 110
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?


Thu Aug 16, 2012 11:30 am
Profile
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 15181
Location: Home sweet home!
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!


Thu Aug 16, 2012 12:53 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 27 posts ]  Go to page Previous  1, 2, 3

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software for PTF. ColorizeIt.