Page 3 of 3
Re: Bootloader won't work on my board
Posted: Sat Aug 11, 2012 2:24 pm
by Fred
That should be OK, but verify the voltages anyway and the rest of what i said still applies.
Re: Bootloader won't work on my board
Posted: Wed Aug 15, 2012 6:01 pm
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
The bootloader receive that byte and compare to 0x0d. Unfortunately, the byte is wrong, it's 0x8(register A)
Manually change register A from 0x8 to 0xD
At last bootloader talks to me. So I decide to change serial chip tomorrow
Re: Bootloader won't work on my board
Posted: Wed Aug 15, 2012 9:12 pm
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?
Re: Bootloader won't work on my board
Posted: Thu Aug 16, 2012 6:24 am
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
Output from FreeEMS
Re: Bootloader won't work on my board
Posted: Thu Aug 16, 2012 11:18 am
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.
Re: Bootloader won't work on my board
Posted: Thu Aug 16, 2012 11:30 am
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?
Re: Bootloader won't work on my board
Posted: Thu Aug 16, 2012 12:53 pm
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.