4/11/2018
Posted by 

M68hc08 Serial Programmer Average ratng: 5,7/10 9621votes
M68hc08 Serial Programmer

AN2317 HC908 MON08 - Download as PDF. 10/2002 Low-Cost Programming and Debugging Options for M68HC08. A software-based serial. Radio Shack Programmable Control Center And Timer Manual.

M68hc08 Serial Programmer

Hey all, this will likely be long as I want to be as descriptive as possible in my process as to find an error. I am using Prog08sz for HC08 Microcontrollers (MCU) v2.32 fresh downloaded yesterday with the new algorithms. I am using 4 types of MCUs atm: MC908AS60ACFU (referenced from now on: AS60) MC908AZ60ACFUE (AZ60) MC9S08QE128-LQFP80 (QE128) MC9S08GT60CFD (GT60) I believe the QE128/GT60 are HCS08 MCUs, and therefore, requires CPROG08SZ? My attempts at programming these with prog08sz is close to none, but I've been told it has been done before.

Short story is I am capable of programming the AS60, but NOT capable of programming the AZ60 - here's my approach: Open Prog08SZ and initial setup is Class 1, baud 8661, ignore security failure is ticked, and show dialog box also ticked - this is the only setup that can actually connect to the device. I don't fully understand the security bytes, but I have yet to succeed checking any radio button other than ignore unless I have gotten a full erase, checked memory to see if it is 0x00's or 0xff's and using that for security. 1) Contact Target 2) Select Algorithm: keep in mind the AS60 is connected - Naturally I select the AS60 alg (same result with AS60 highspeed) - it loads. I try to erase module and I get 'Erasure of secure device done. Forcing power down to bypass security' and get returned back to the initial setup GUI. I hit recontact and it reloads previously selected alg (sometimes I have to recycle power to MCU) and then I blank check and find that the device was never actually erased.

Programming yields 'Error in programming module'. Checking memory yields a majority of memory is 0xAD with some sections at 0xFF and some at 0xUU. So I try AS60A and highspeed algorithms thinking this might be the cause - once I try to load the algorithm prog08sz crashes every time. Out of curiosity I try AZ60 and highspeed. The algorithms curiously load. Erasing the device (if this is a fresh run of prog08 - if not I get same error as AS60) shows a different result. I get a little bar that rotates for a couple seconds and then a message 'Module has been erased'.

I blank check and it is confirmed. I can then select my.s19 object file and program flawlessly. So the AS60 MCU programs under the AZ60 alg is moral of that story.

So now I move on to the AZ60 MCU. I have tried every algorithm (AS60, AS60A, AZ60, AZ60A) I would find reasonably acceptable to no avail getting the same [failure] erased message above. /* Edited 2/3/2010 for more information */ I try to erase module and I get 'Erasure of secure device done.

Forcing power down to bypass security' and get returned back to the initial setup GUI. I ignore security bytes again and reconnect, but keep returning to this GUI unless I cycle power on the MCU. After cycling power on the MCU and I connect - prog08sz tries to automatically reload the AZ60A algorithm and it always fails. Looks like this: 'Loading programming algorithm.Error writing data to part.continuing.error writing data to part.continuing.error writing data block to part. Disabling block write. Error enabling module just selected.'

After the erasing doesn't it try to perform a power-on reset? So me manually cycling power on the device should perform this, correct? I am thinking the problem is this, since I do not know the security bytes it won't allow me to erase so I have to perform a mass erase or bulk erase and I am not sure on how to do this.