Hello
Thanks a lot for your kind answer.
I have some issues to get the target connected. I am using de BDM port connector, using just four pins for the USB-ML-UNIVERSAL and the MC9S12UF32 microcontroller in my target board, this is Pin1 BGND, Pin2 GND, Pin4 RESET and Pin6 TVCC.
But before I have 3 basic questions.
1. How to know if the MC9S12UF32 is protected?
2. Which is the right memory range, 0x0..0x8000, 0x0..0xFFFF, 0x0..0xFFF8, 0x8000..0xFFF8?
3. The right command to load a S19 bin file into a blank microcontroller is the SREC command?
I run the hiwave.exe and follow your steps. But at step at step. I attach some image describing my process.
I successfully start the target and the debugger, but rarely I see de "Target Ready" message. Instead of that I always receive this message in the command window.
Could not find appropriate io_delay_cnt.
I eliminate this message calculating the io_delay_cnt using the equation: IO_DELAY_CNT = (120000000 / Fbus) – 1. The target board have a 12MHz cristal so the final number is 9.
I load this number into the Connection Manager in the BDM Communication Speed section "Use IO_DELAY_CNT = 9 (Decimal). Then I click connect.
Then I receive in the command window the following messages:
IO register loaded fir MC9S12UF32 C:\Freescale\CWS12v5.1\Prog\REG\MCU03E2.REG
P&E Interface detected - Flash Version 6.13
P&E Interface detected - Flash Version 6.13
Startup command file does not exist.
RUNNING
The write the command
in>SAVE 0x8000..0xFFFF DUMP.s19
˘
Error: CPU is running.
Then I hit F6 or click in Halt button, the command windows says STOPPING, but I write the SAVE command again and says the same thing Error: CPU is runnung. Seems to be the microcontroller is not halting.
Some test give a S19 binary file output but I am not sure it have the right information. Solving the NON HALT issue and I asume can be retrieve the right S19 from the microcontroller.
Any suggestions?
My best regards.