Reply
pgo
Super Contributor
pgo
Posts: 582
Registered: 2006-08-24

HCS08 Flash Programmer for USBDM

[ Edited ]

Dear All,

 

Attached is a stand-alone Flash programming utility for HCS08 devices.

 

Features
  • Command line usage is available for batch files.
  • GUI usage is available for interactive use.
  • Supports most HCS08 chips (Paged memory is not supported).
  • Trimming of internal target clock to specified frequency.
  • Programming of security options to leave the chip unsecured or secured after programming.
  • May be used to unsecure chips (by mass erase).
  • The code has been written in a modular fashion. It should be straightforward to re-use the flash programming code to create other custom programming utilities.

 

I have tested it on a range of devices and I have found no (more) bugs.  However, no guarantees are given!

 

bye

 

1. Installation_1_0_3.zip

2. Source_1_0_3.zip

Message Edited by t.dowe on 2009-12-08 09:28 AM
Trusted Contributor
Posts: 80
Registered: 2006-02-02
0

Re: HCS08 Flash Programmer for USBDM

Nice work!

 

Does it use the new USBDM 2.0 API? Can it be used with OSBDM?

 

Oliver

pgo
Super Contributor
pgo
Posts: 582
Registered: 2006-08-24
0

Re: HCS08 Flash Programmer for USBDM

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

 

Trusted Contributor
Posts: 80
Registered: 2006-02-02
0

Re: HCS08 Flash Programmer for USBDM

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

pgo
Super Contributor
pgo
Posts: 582
Registered: 2006-08-24
0

Re: HCS08 Flash Programmer for USBDM

[ Edited ]

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
Message Edited by pgo on 2009-12-15 02:00 PM
Trusted Contributor
osoraku nakamori
Posts: 20
Registered: 2009-08-20
0

Re: HCS08 Flash Programmer for USBDM

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 

pgo
Super Contributor
pgo
Posts: 582
Registered: 2006-08-24
0

Re: HCS08 Flash Programmer for USBDM

[ Edited ]

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

Message Edited by pgo on 2010-02-09 10:37 AM
Trusted Contributor
osoraku nakamori
Posts: 20
Registered: 2009-08-20
0

Re: HCS08 Flash Programmer for USBDM

Dear pgo,

 

Thanks for your response. You are right, I was referring to CF v1.

 

Thanks again for all the great work.

 

 

Trusted Contributor
osoraku nakamori
Posts: 20
Registered: 2009-08-20
0

Re: HCS08 Flash Programmer for USBDM

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. 

pgo
Super Contributor
pgo
Posts: 582
Registered: 2006-08-24
0

Re: HCS08 Flash Programmer for USBDM

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 :smileyhappy:

 

bye