Hi,
I'm trying to burn my executable into target MCU - HC908QY4 using P&E Multilink USB-MON08. This is standalone programing. I am getting some error messages and really don't know what to do next...
as I feel I've got the right hardware connections.
I would really appreciate if someone could look into the problem and suggest what maybe going wrong.A Also I notice freescale mentions of baudrate being 9600 but in the message below I get only 8869, how would someone resolve that ?
Here is the command output:
_______________________________________________________________________________
Windows NT detected.
Opening USB Port 1 ...MON08 MULTILINK Interface cable detected - Flash Version 2.21
EST BAUD = 8859 Baud.
EST BAUD = 8859 Baud.
Opened.
Starting powerdown reset sequence ...
Trying Security $F134FFFFF134F134 Invalid/No Response.
(Failure of 68HC08 to respond properly. Check connections.)
Trying Security $F134FFFFF134F134 Invalid/No Response.
(Failure of 68HC08 to respond properly. Check connections.)
Device is HC908QY4.
Mode is In-Circuit Debug.
IO registers loaded for MC68HC908QY4 from C:\Program Files\Freescale\CodeWarrior for Microcontrollers V6.2\prog\REG\HC908QY4.REG
No Link To Target
in>
_____________________________________________________________________________________
Hi
I have two computers: one installed CodeWarrior 6.0 Special version and another installed CodeWarrior 6.2 Evaluation version. I can conneect DEMO9S08QG8 BDM board with the computer installed special version, but can't connect the same BDM board with the computer installed Evaluation version. For the latter connection, I get the error message is "Can't communication with the target processor! Please check your connections between the cable and the target and make sure the target has power" but I use the exact same board, cable and project, and PEMICRO connection manager also detects my target CPU is HCS08 Processor. I do recycle the HCS08's power as the note suggested, but the error is same for next connection.
Is there difference on the connection between CodeWarrior 6.0 Special version and 6.2 Evaluation version?
Thanks
J2MEJediMaster says:
Please do not cross-post your question. This has been replied to in another thread.
Hello,
If the devices you are attempting to program are virgin devices, the security code should be $FFFFFFFFFFFFFFFF for an erased device. If the device has been previously programmed, and you do not have the correct security code, you may need to bypass security, and mass erase the device.
The MON08 Multilink should supply an external clock to the device (via MON08 pin 13), and automatically adjusts to the actual baud rate generated.
Regards,
Mac
Hello,
Actually, I do not use CW to program these devices. I use the P&E tool PROG08SZ, which is available from the P&E website as a free download. The tool requires a S19 file for the user code.
Regards,
Mac
Thanks so much.
I did start using PROG08SZ but once I have added the module for HC908QY4 MCU as 908_qy4.08p i get this weird error of a .s19 file missing. name of the file -> qtqy_measure_speed_new_bidirectional.s19
I found this qtqy_measure_speed_new.s19 in the directory & renamed it as above file.
this took me further to next failure as
ERROR IN READING INTERNAL CLOCK FREQUENCY 1
do you think by copying & renaming a different file could be causing this problem. have you programmed an 908QY4 device with PROG08SZ ?
hope you reply soon.
Hello,
How did you start PROG08SZ, and how did you pass the path and name of the .S19 file to the tool. Obviously the file name passed did not match the S19 filename created within the CW project.
You seem to have gotten beyond the initial window that establishes a connection to the target (where the security code is selected). Prior to attempting to enter monitor mode, and within this initial window, did you also select Target hardware Class 7, Device type "QY", "Device power ... provided by P&E interface" and "Device clock ... driven by P&E interface on Pin 13"?
Yes, I have previously programmed the QY series using the P&E tool, but this was some time ago.
Regards,
Mac
Just to add to my previous post...
I was able to find qtqy_measure_speed_new_bidirectional.s19 from pemicro site. one should find it at this location -- http://www.pemicro.com/forums/index.php?act=attach&type=post&id=93
IN CASE SOMEONE IS UNABLE TO OPEN OR DOWNLOAD IT, I will also paste the contents of this file the post below. Just copy the contents to an existing .s19 file using any texteditor.
S1130080359135A26EFF966E00A7B73887AD2D86E1
S1130090650350250C65FFFF2407C700D03596354E
S11300A0D2650350220C6500002307C700D135A791
S11300B035D44CC100D626D2C600D083A60745004D
S11300C0030000FD4BFEAF010100FBA6074BFE81C0
S10A00D0FFFF000000000027
S10600D8ADE2830F
S9030000FC
Although now I'm able to communicate & flash program MCU with the demo code & erase it also.
There is another problem you could shed some light on...
How can I mass Erase a device even if I'm unable to communicate with them in the first place.
-- Vimal
Hello Vimal,
maverickk wrote:There is another problem you could shed some light on...
How can I mass Erase a device even if I'm unable to communicate with them in the first place.
-- Vimal
Without serial communications, you can't do anything, and you will need to find the cause of the failure. However, if you need to enter monitor mode without the correct security code, tick the box "Ignore security failure and enter monitor mode". You should then be able to mass erase the device.
Regards,
Mac
I have tried doing that as well a few times. But does not seem to work with few microcontrollers. The echoing of security bytes fails everytime. Is there someway to check if a MCU is working fine even if one is unable to enter the Monitor mode ?
-- Vimal
Hello Vimal,
Obviously, you need to check the operation of your code whilst in normal mode, and not monitor mode.
But for programming and other related operations you need to enter monitor mode. Failure to enter monitor mode can potentially occur for the following reasons -
Regards,
Mac
Well let me answer your question one by one
-- I could install PROG08SZ as stand alone, I use Vista OS & was getting some error regarding missing driver .inf file
-- I installed ICSQTQY package which also included PROG08SZ and its thru this that i'm running PROG08SZ
-- I did not pass S19 file name as I read in manuals I can always select it through SS command
-- Yes to the following queries, prior to attempting to enter monitor mode, and within this initial window, did you also select Target hardware Class 7, Device type "QY", "Device power ... provided by P&E interface" and "Device clock ... driven by P&E interface on Pin 13"?
-- I think I have connection to the device but there is some intermediate step for recognising the baud rate which is failing in my case.
-- Moreover PROG08SZ for CLASS 7 device does not allow changing the clock frequency on "P&E interface pin 13" and as far as I've read HC908QY4 datasheet, it expects 9.8304 / 4 Mhz as external frequency.
-- Which OS do you use ? have you ever used PROG08SZ on Vista ?
Hi,
Thanks for the prompt response. I was able to run a little further with a virgin device but some error popped up (in a different dos prompt) and I was wondering if you would know if there exists some log file which I can look into.
Lately I also get an error as " unable to locate ...V6.2/.../motosil.tgt " is this some configuration file one would need for HC908QY4CP MCUs ?
-- Vimal