Hi PGO,
A few months ago, I needed to debug MC9S08PB16, which was not supported on USBDM. We use Luciano's USBDM.
I changed some files and created a new HCS08-PBxx-Flash Program. These files and sources are attached. The Codewarrior worked pretty well with these patches on USBDM, and it allowed me to build a new firmware for one new product.
However, last week, production started, and USBDMs were not able to program the flash of most production Microcontrollers except for a few.
I attached the error logs, along with some oscilloscope images of BKGD (yellow) and BKGD/SWDIO_DRV USBDM internal (Blue).
Even more, for some unknown reason, we got a Sawtooth wave a couple of times. I cannot tell if they have a correlation with the programming issue. It can be seen in the Sawtooth.jpg.
I will be grateful for any help you could, and feel free to ask for further data.
Best,
Ricardo Trevisan
Hi PGO,
I forgot to attach the files on the previous post.
Hi,
Can I confirm that you have changed the BDM hardware being used from a USBDM_SER_JS16CWJ_V4 to a USBDM_JMxxCLD_V4 ?
I am trying to reproduce your error using the same hardware.
Follow-up
Using a USBDM_JMxxCLD_V4 I have found the following issues:
I will rectify these in the next version.
bye
Follow-Follow-up.
I have found an additional problem with the verify operation when programming for certain ranges of addresses.
At the moment I have no idea why this is occurring.
Note the programming is actually working but the verify done as each range is programmed is failing. This unfortunately abort the rest of the programming.
I will spend some time on this later in the week.
bye