2009-12-08
06:04 AM
- last edited on
2009-12-08
03:28 PM
by
t.dowe
Dear All,
Attached is a stand-alone Flash programming utility for HCS08 devices.
Features
I have tested it on a range of devices and I have found no (more) bugs. However, no guarantees are given!
bye
2009-12-08 02:09 PM
Nice work!
Does it use the new USBDM 2.0 API? Can it be used with OSBDM?
Oliver
2009-12-09 12:00 AM
Dear Obetz,
It uses the new USBDM V2 API so isn't usable with the earlier versions.
Sorry!
I'll consider back-porting it later but there are other things that should be done first (e.g. paged addressing) and I would like to try improving the clock trimming accuracy.
bye
2009-12-09 08:54 AM
Hello pgo,
thanks for the fast reply.
One more question: I don't see any options for the target supply voltage selection, do you intend to use the target supply present in the JM based hardware?
This would be very convenient for batch programming.
Oliver
2009-12-15 03:00 AM - last edited on 2009-12-15 03:00 AM
Dear Obetz,
The usual USBDM dialogue will open to configure the the target voltage etc. even if using a batch file.
However, there is a crude workaround. The dialogue now contains an option to "not ask again" i.e. the dialogue will not re-appear. You have to delete the config file to restore the dialogue!
Your suggestion is very good. I will add options to control the target power when I have time.
bye
2010-02-08 08:15 PM
Dear pgo,
Wow! Very nice work. This is terrific!!
Question - what do you think it takes to enhance it to support JM128 flash programming?
Thanks
2010-02-08 11:36 PM - last edited on 2010-02-08 11:37 PM
Dear osoraku,
Do you mean MCF51JM?
I haven't looked at coldfire V1 yet. I'm currently doing a HCS12 version.
It wouldn't be too hard I expect. It depends on how uniform the Flash and Clocks are between the different Coldfire chips. There are also some memory configuration issues that don't exist in the HCS08 chips.
So - on the list but not very soon.
"The list"
Paged memory support for HCS08 (e.g. AC128) - done but needs more thorough testing
HCS12 programming - partially done but has some issues with non-uniform BDM interfaces and security.
Coldfire V1 - not started.
bye
2010-02-09 08:31 PM
Dear pgo,
Thanks for your response. You are right, I was referring to CF v1.
Thanks again for all the great work.
2010-02-09 09:04 PM
Dear pgo,
Another question - does the flash program in the constant byte array "flashProgram[]" come from the coldfire project in HCSO8_FlashProgramming? I was trying to compare the code in the s-record file to the bytes in the array ... they start out the same but soon diverge. What process did you use to create the contents of flashProgram[] ?
Thanks.
2010-02-10 12:52 AM
Dear Osaraku,
The source code for the routine is provided as part of the Codewarrior project (HCS08_FlashProgramming.rar) included in the Zip file.
It's based on some app note on Flash programming or something - I can't remember! It's pretty trivial though.
I don't know what "coldfire project in HCSO8_FlashProgramming" is ![]()
bye