AN2295 (HC08/S08 Developer's Serial Bootloader) updated for rev. 9.2 - CF V1 (alpha) support added

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

AN2295 (HC08/S08 Developer's Serial Bootloader) updated for rev. 9.2 - CF V1 (alpha) support added

跳至解决方案
96,181 次查看
ok2ucx
Contributor IV
Dears,

software for Application note AN2295 (HC08/S08 Developer's Serial Bootloader) has been updated recently. Since the last rev. 8 (Aug-2006) several additions and enhancements has been done:
  • S08LC family added
  • S08QE (Flexis) added
  • S08GB/GT family updated for A-family
  • S08EL/SL family added (including EEPROM programming)
  • S08QD family added (with software SCI)
  • S08DZ family added (including EEPROM programming)
  • HC08GR8A corrected
  • S08QG8 corrected
  • hc08sprg.exe master updated
  • simple Windows GUI application added
  • all projects updated for CodeWarrior 6.1
HC08 families supported: AB/AS/AZ, AP, GP32, GR(A), GZ, JKJL, JKJL8, JW32, KX/EY/GT, LB, LJ, MR, QB, QC, QT/QY, SR

S08 families supported: AW, DZ, EL/SL, GB/GT(A), LC, QD, QE, QG, RC/RD/RE/RG, SR

Any comments, reports, suggestions or wishes are more than welcome. Some of the latest bootloaders are still in alpha stage, tested briefly.

Direct download link is here:
http://www.freescale.com/webapp/sps/download/license.jsp?colCode=AN2295SW

Unfortunately accompanying application note AN2295.pdf has not been updated yet (to reflect new protocol variations).

Best regards, Pavel, ok2ucx
Freescale Czech Republic
an2295 developer


Message Edited by ok2ucx on 2008-02-19 04:16 PM
Message Edited by ok2ucx on 2009-08-04 10:37 AM
标签 (1)
1 解答
44,322 次查看
Limestone
Contributor III

Hi Pavel and thanks for your response!

 

It worked like a charm!

 

I changed that line and stopt feeding my watchdog when I wanted to reboot and enter the bootloader.

 

Since I spent alot of time searching for a solution like this on the forum and did not find it, mabey this should be documented in someway :smileyhappy:

 

Best regards

Martin

 

 

在原帖中查看解决方案

0 项奖励
回复
241 回复数
2,836 次查看
thinkchip
Contributor II
what about the AC family? there are support? regards
0 项奖励
回复
2,836 次查看
ok2ucx
Contributor IV

Hi,

 

S08AC60 family is the same as S08AW60 family, so I've updated actually both. You can find the port in the attached 9.2.1 update.

There's also S08AC96/128 version with paged memory, I tried to implement the same functionality as with QE128, but AC128 is not tested at all (I do not have hardware). Your feedback will be helpful here.

 

In addition (AC being part of Flexis family), ColdFire V1 AC also exists. This has been quickly ported too and you can test it as well.

 

Since there were too many updates in the recent days, I've removed the files from previous emails and here's attached "delta" between release 9.1 (on the web) and what's actually finished. Latest master (with the source code) is in there too.

 

Please do as much testing as you can, a report your success or failure before official release 10 is done. Thanks very much.

 

Regards, Pavel ok2ucx

an2295 bootloader developer & coordinator

Message Edited by ok2ucx on 2009-08-07 02:12 PM

http://www.freescale.com/files/community_files/8BITCOMM/hc08sprg-update-9.2.1.exe.zip

Message Edited by t.dowe on 2009-08-18 11:10 AM
0 项奖励
回复
2,836 次查看
gabbo9lli
Contributor I
hi.

I've got a S08AC128.

I download AN2295SW at version 9.1.

I would try to start bootloader functionality. Which version could I start, side microcontroller? ColdFire V1 AC or S08AW60 or QE128?
What changes should I do?

I programmed my Flexis Demo Ackit with S08AW60 target firmware. It would be ok!
When I launch hc08sprg.exe for re-programming firmware on serial port, software blocks on "Waiting for HC08 reset ACK...".
How can I do?

thanks
0 项奖励
回复
2,836 次查看
ok2ucx
Contributor IV

Hi,

 

AC128 is covered in the latest "unofficial" update 9.2.1:

http://www.freescale.com/files/community_files/8BITCOMM/hc08sprg-update-9.2.1.exe.zip

 

9.2.1 update goes on top of official 9.1 release.

 

AN2295 will go to revision 10 anytime soon, the document itself (PDF) is in the publication center, AN2295SW (release 10) will be 9.1 + 9.2.1 update plus following new ports:

  • S08LL16
  • S08SC4
  • S08LH
  • MCF51EM
  • MCF52259 (CFV2!)

Pavel
0 项奖励
回复
2,836 次查看
gabbo9lli
Contributor I

I see. AC128 is covered in the latest "unofficial" update 9.2.1...

But, side microcontroller? Is it ok firmware version S08AW60 for S08AC128?

 

thanks.

0 项奖励
回复
2,836 次查看
ok2ucx
Contributor IV

MCU side of S08AC128 is under following path of 9.2.1 update:

 

\hc08sprg-update-9.2.1\an2295sw\src\S08AC128\

 

slfprg-s08ac128.asm in version 10.0.1.0 so far.

 

Pavel

0 项奖励
回复
2,836 次查看
gabbo9lli
Contributor I

sorry, but where can I download source of hc08sprg-update-9.2.1?

this link contains only exe file (http://www.freescale.com/files/community_files/8BITCOMM/hc08sprg-update-9.2.1.exe.zip).

 

thanks

0 项奖励
回复
2,836 次查看
ok2ucx
Contributor IV

This is it! The EXE file is actually wrapper for self-decompressing ZIP file with standard Freescale licence file that needs to be acknowledged. At the end following tree is decompressed:

 

\hc08sprg-update-9.2.1\license.txt
\hc08sprg-update-9.2.1\an2295sw\AN2295 bootloader
\hc08sprg-update-9.2.1\an2295sw\GUI
\hc08sprg-update-9.2.1\an2295sw\master
\hc08sprg-update-9.2.1\an2295sw\src
\hc08sprg-update-9.2.1\an2295sw\AN2295 bootloader\AN2295 bootloader.mcp
\hc08sprg-update-9.2.1\an2295sw\AN2295 bootloader\AN2295.bootloader.changelog.txt
\hc08sprg-update-9.2.1\an2295sw\GUI\BootLoader Control.exe
\hc08sprg-update-9.2.1\an2295sw\GUI\hc08sprg.exe
\hc08sprg-update-9.2.1\an2295sw\master\Release
\hc08sprg-update-9.2.1\an2295sw\master\Release\hc08sprg.exe
\hc08sprg-update-9.2.1\an2295sw\src\MCF51AC
\hc08sprg-update-9.2.1\an2295sw\src\MCF51CN
\hc08sprg-update-9.2.1\an2295sw\src\MCF51JM
\hc08sprg-update-9.2.1\an2295sw\src\MCF51JM-USB
\hc08sprg-update-9.2.1\an2295sw\src\MCF51QE
\hc08sprg-update-9.2.1\an2295sw\src\S08AC
\hc08sprg-update-9.2.1\an2295sw\src\S08AC128
\hc08sprg-update-9.2.1\an2295sw\src\S08AW
\hc08sprg-update-9.2.1\an2295sw\src\S08JM-USB
\hc08sprg-update-9.2.1\an2295sw\src\S08QE
\hc08sprg-update-9.2.1\an2295sw\src\S08QE128
\hc08sprg-update-9.2.1\an2295sw\src\S08SE
\hc08sprg-update-9.2.1\an2295sw\src\S08SH

 

 Pavel

 

Message Edited by ok2ucx on 2010-01-04 12:31 PM
0 项奖励
回复
2,836 次查看
gabbo9lli
Contributor I

thanks a lot.

 

0 项奖励
回复
2,836 次查看
stefano664
Contributor I
Ok, the bootloader was ivoked like this:

hc08sprog COM19:d test.s19

hc08sprg version is 9.0.37.0

The USB converter is the MOSCHIP MCS7703CS.

Thanks,
Stefano
0 项奖励
回复
2,836 次查看
ok2ucx
Contributor IV
Dears,

the AN2295SW has been updated to version 9.1 (unfortunately the revision number is no longer seen for download accompanying the application notes :robotsad:), now available for the download: http://www.freescale.com/webapp/sps/download/license.jsp?colCode=AN2295SW

Since the last release, the following families were added:


Code:
14-Mar-2008: S08JM family added, pre-tested. Up to 16/32/60kB versions as of now.             Updated & tested SCIAPI features also for S08QD, documentation (sci.h) updated as well.             Some minor code cleanup. [r30323]12-Jun-2008: S08(SH/SG)(4/8) family added, pre-tested. [r30323]13-Jun-2008: S08(SH/SG)(16/32) support added to existing S08(SH/SG)(4/8) tree.             S08(DZ/DV)(96/128) coded, not tested yet.             S08(DZ/DV)(16-60) version updated, still alpha version. To be tested. [r30323]             06-Nov-2008: Release/revision 9.1

 
Regarding the JM60 suppport, this is still version for bootloading over SCI, while USB based AN2295-compatible bootloader is in development now and hopefully will be ready for next release early next year. It should work very similarly as HC908JW32 version.
For S08JM first, followed by the (32-bit version) 51CFJM later (here also master will need to be updated).

Regards,  Pavel



P.S. To stefano664: I was not on this forum for some time, were you able to execute the bootloader on the GT family with the USB/serial converter? There's possibility to compile the master in debug mode in which the communication is being displayed in "verbose" mode and this may help identifying the cause of this communication failure.


Message Edited by ok2ucx on 2008-11-11 03:17 PM
0 项奖励
回复
2,855 次查看
TurboBob
Contributor IV
Thanks to all for the help.

I use Borland C++ Builder 5, and built myself a GUI bootloader wrapper.  I used a 3rd party serial library that had built in port enumeration which works well. 

I will be testing the JM version in about a month, I will post back if I have troubles

Bob



0 项奖励
回复
2,855 次查看
JimDon
Senior Contributor III
Bob,

Are you saying that you use a serial port, and that the CDC code is used on the JM board?
That is the JM board is a USB serial port.

Or are you coming in via a serial port external to the JM board (meaning an SCI port on the JM)?
That is you would need an external USB to serial adaptor.



0 项奖励
回复
2,855 次查看
TurboBob
Contributor IV
no,  this particular project is using the JM, but not USB.  So I wanted to use the bootloader just like on my AW60 projects, with SCI communication via RS232 to a PC.

My USB projects are coming up next.  At which point I will bug you a lot.....  :smileyhappy:

Bob
0 项奖励
回复
2,855 次查看
JimDon
Senior Contributor III
Bob,
Well, I have a POD (plain old dll) that give a nice interface to a hid device, and should work just fine with your code, regardless of the language.
Note also that the V1 JM is out now. If you have the DEMOJM with the 64 LQFP socket you should be able to drop it right in.



Message Edited by JimDon on 2008-04-06 01:40 PM
0 项奖励
回复
2,855 次查看
TurboBob
Contributor IV
Hey,
 
I was hoping to look at some of the demos and DLL's you have working.
 
I plugged in my demo, and loaded up the HID demo, and my mouse pointer wiggles..... 
 
Can you direct me to your demos, I want to try them next.
 
Thanks for all your help!!
 
Bob
 
 
0 项奖励
回复
2,855 次查看
TurboBob
Contributor IV
Has anyone looked into porting AN2295 to use the HID interface on a JM60?
 
Thanks!
 
Bob
0 项奖励
回复
2,855 次查看
ok2ucx
Contributor IV
Hmmm, what do you mean?

Porting AN2295 JM60 bootloader (currently SCI only) so it uses true USB interface (CDC class - Virtual Serial Port)? Just like with older HC08JW32? Is this what you want?

If this is the case, such portation is in queue with no exact schedule. If there's some interest, we could increase the priority.

Pavel, an2295 bootloader developer
0 项奖励
回复
2,836 次查看
sunilkumar_sing
Contributor III

Hi ,

I am trying to build AN2295 boot loader for linux platform and getting error in prog.c file.

Has any one compile an2295 bootloader and use it on linux platform?

2,855 次查看
TurboBob
Contributor IV
My original thought was to make it HID, as my main application is HID,  so only one set of drivers and one VID/PID would be needed.  (HID using the CMX stack needs no extra driver,  which is a good thing in my opinion)

CDC would work though...

Let me know if I can help the process along.

Bob
0 项奖励
回复
2,855 次查看
TurboBob
Contributor IV
Another idea is the method that the FTF Badge-board used.

When you put the unit into bootloader mode it apears as a USB hard-drive to the host computer.  You drop the S19 file in the drive window and the bootloader loads it.

I believe thats how it worked,  I did not attend FTF.

Bob
0 项奖励
回复