AnsweredAssumed Answered

TBDML can not download program!????why????

Question asked by Ruth Hendrix Employee on Jan 26, 2006
This message contains an entire topic ported from a separate forum. The original message and all replies are in this single message. We have seeded this new forum with selected information that we expect will be of value to you as you search for answers to your questions.
 
Posted: Wed Jul 13, 2005 7:34 am    
 
I made the TBDML. The JB8's firmware can be down, and my PC has recognized the TBDML. But I use CodeWarrior to develop my project, use TBDML to download the program to my target board(can be downloaded by multilink). Hiwave said "CMD file is not found"?????
When I create the project, I chose simulater and P&E for target. Should I write CMD file????and How to write????

Posted: Wed Jul 13, 2005 10:46 am    

Can't say I konw a whole lot about that topic however CMD is the name of the command line interpeter in windows NT. What version of windows are you running? You may need to make a copy of command.com and relabel it as cmd.exe however this may not be related at all just a thought.

Posted: Wed Jul 13, 2005 11:29 am    

Check all the faq's in case you have missed something, especially the latest versions of CW.

Posted: Thu Jul 14, 2005 3:08 am    

I use CW V3.1 and WINXP SP2 to develop, and the target MCU is DP256B
I found the program not really upload to the MCU.
These are the message I found in command window, although "Writing To Memory Address: 0x0C000", but the TBDML didnot upload program into the onchip flash. Crying or Very sad
Thanks and help Rolling Eyes
Code:

DiMemoryDownload()==> DI_OK Writing To Memory Address: 0x0C000, count: 50 1E C0 12 02 03 FF C0 16 4A 80 04 30 4B FB 00 03 20 EE 00 80 00 30 10 FF 00 00 C0 2A C0 30 00 00 C0 2A 00 00 C0 2C 00 00 C0 2C FF FF 00 00 00 00 00 00 DiMemoryWrite()==> DI_OK Writing To Memory Address: 0x0FFFE, count: 2 C0 00 DiMemoryWrite()==> DI_OK Writing To Memory Address: 0x0308000, count: 46 10 EF 20 FE FE C0 1A FD C0 18 27 0E 35 ED 31 EC 31 69 70 04 34 FB 31 03 26 F2 FE C0 1C EC 31 27 0B ED 31 18 0A 30 70 04 34 F9 20 F1 0A FF DiMemoryWrite()==> DI_OK Reading Register CCR (id:5): DiRegisterRead()==> DI_OK CCR (id:5) -> 0x00 Reading Register D (id:2): DiRegisterRead()==> DI_OK D (id:2) -> 0x00 Reading Register X (id:3): DiRegisterRead()==> DI_OK X (id:3) -> 0x00 Reading Register Y (id:4): DiRegisterRead()==> DI_OK Y (id:4) -> 0x00 Reading Register SP (id:1): DiRegisterRead()==> DI_OK SP (id:1) -> 0x00 Reading Register PC (id:0): DiRegisterRead()==> DI_OK PC (id:0) -> 0x0803E Writing Register: PC (id:0): 0x0C000 DiRegisterWrite()==> DI_OK DiMemoryDownload()==> DI_OK Reading Register CCR (id:5): DiRegisterRead()==> DI_OK CCR (id:5) -> 0x00 Reading Register D (id:2): DiRegisterRead()==> DI_OK D (id:2) -> 0x00 Reading Register X (id:3): DiRegisterRead()==> DI_OK X (id:3) -> 0x00 Reading Register Y (id:4): DiRegisterRead()==> DI_OK Y (id:4) -> 0x00 Reading Register SP (id:1): DiRegisterRead()==> DI_OK SP (id:1) -> 0x00 Reading Register PC (id:0): DiRegisterRead()==> DI_OK PC (id:0) -> 0x0C000 Reading From Memory Address: 0x0C000, count: 96 DiMemoryRead()==> DI_OK 79 00 11 A7 C6 01 5B 10 5B 12 5B 13 79 00 39 4D 39 80 4D 3A 40 86 18 5A 34 C6 0F 5B 35 C6 C0 5B 3A 4C 3A 40 4F 37 08 FC 4C 39 80 06 C0 91 4D 46 E0 4D 49 03 4D 48 C0 4D 4C 01 4D 47 01 D6 4D C4 7F CA 08 5B 4D 4C 40 81 1D 02 6E 03 F6 02 68 C4 FE CA 02 7B 02 68 1C 02 6A 03 4D A5 0C 79 00 C4 executing E:\Program\BDMTEST\bin\P&E_ICD.bpt !savebp off done E:\Program\BDMTEST\bin\P&E_ICD.bpt executing E:\Program\BDMTEST\bin\P&E_ICD.mrk !MARKPOINTS SAVE OFF done E:\Program\BDMTEST\bin\P&E_ICD.mrk Postload Command File execution: postload.cmd File does not exist: postload.cmd Postload command file does not exist.


 Posted: Thu Jul 14, 2005 3:14 am    

By the way, my target board use 16Mhz crystal, and I set "16.00" in the "set target speed" dialog box. Am I correct?

Posted: Thu Jul 14, 2005 6:19 am    

I have the same problem with a MC9S12NE64. But if i try to load the flash via TBDML-> flash it works fine

Posted: Thu Jul 14, 2005 7:24 am    

 

Quote:
I use CW V3.1 and WINXP SP2 to develop




That is the problem. You need CW 4.1 as per the FAQs. Otherwise flash programming will not work properly.

Posted: Thu Jul 14, 2005 7:31 am    

 

Quote:
I have the same problem with a MC9S12NE64. But if i try to load the flash via TBDML-> flash it works fine




When you click "TBDML HCS12" -> "Load..." the "Load Executable File" browse window pops-up. Make sure you select "Load Code to onchip NVM" in the Load Options before clicking "Open". If you do not do this the project will be loaded using stadard memory write instead of the debugger's flash programming routine.

Outcomes