Dear carloscuevas,
I'm sorry the USBDM code is very much JB16 specific and would not fit in a JB8 in any case.
The original TBDML code is for a JB8 but only supports HC12 devices. See
http://forums.freescale.com/freescale/board/message?board.id=TBDML&thread.id=2
It also appears that Freescale no longer have the JB16s available in their sample program.
Farnell and Digi-key both have JB16s but shipping might well be excessive.
Sorry I can't be of any real help!
bye
Dear Pgo,
extendedConnect() - 1st attempt ============================ USB EP0 receive request (CMD_CONNECT, size=1): 01 1F 00 00 00 00 USB EP0 receive: Cmd Failed (Reset pin timeout): USB EP0 receive (size = 1, recvd = 1): 13then this would indicate something wrong with the reset circuitry.
Message Edited by Macias on 2009-02-01 04:21 PM
Dear Macias,
I believe the 74HCT125 should be fine if the target is at 5V.
I've attached a modified Flash file and utility command to allow you to check the interface more easily. You will need a logic probe or a multimeter to check the physical levels on the target pins
The testinterface command allows direct control of the RESET and BKGD pins and reports the input values measure. These should agree!
Try the following commands & checks after updating the flash:
=============================================
settarget 0
testinterface 0 -- Check that RESET & BKGD = 0 & 0 and measure correctly.
testinterface 1 -- Check that RESET & BKGD = 0 & 1 and measure correctly.
testinterface 2 -- Check that RESET & BKGD = 1 & 0 and measure correctly.
testinterface 3 -- Check that RESET & BKGD = 1 & 1 and measure correctly.
exit
If the pins measure incorrectly then check your output buffers.
If the pins measure correctly but are REPORTED incorrectly then check the input buffers.
In either case check the following:
Pull-up resistors on the target RESET pin.
Power on the target and 74HCT125 buffer.
3-state control signals are as expected.
That's about as far as I can go by remote control
Good Luck.
bye
Dear Pgo,
Please tell me on which traget speed you was testing your TBDML solution? When I setup my target MC9S08JM60 with external 12Mhz crystal in PLL mode, internal bus freq was set on 24Mhz, I have problem with programming target. But when I'm using it for MC9S12NE64 with 25Mhz crystal, PLL mode to 50Mhz everythink works fine.
Best Regards,
Maciej Bojczuk
Dear Macias,
The JB16 version has been tested at a range of connection speeds. Operation has been confirmed with a JM60 operating with a 24MHz Bus clock (external 12MHz crystal, PEE mode). This happens to be the set up for the JM60 version of USBDM which I have debugged with the JM16 version .
It requires the use of the ALT clock option since the connection speed is too fast for the JB16 version otherwise.
The JB16 USBDM is limited to a BDM clock of around 21MHz = Bus clock for the JM60 by default. The ALT clock is the MCGLCLK which is around 17MHz for the one I checked.
Note: The frequency reported by the debugger under BDM status is 2xBDM clock - it assumes (wrongly) that the BDM clock is always half the bus clock and so multiplies it by two when reporting it - trying to be helpful.
The situation is different for the NE64 I believe (from memory).
bye
Dear pgo,
Thanks for sharing the information. I have followed the instructions and successfully made a TBDML with the JB16JDWE.
However, when I replace the "tbdml.dll" file, there seems something wrong. I can only find the "tbdml_gdi12.dll" in the reletive documentation folder in my computer. So I changed your file name and replaced my "tbdml_gdi12.dll". Then I try to set dgi in the codewarrior, a message showed as following pic.
I also found that if my original "tbdml_gdi12.dll" as well as your "tbdml.dll" both exist, the TBDML can work, I can download the code to the MCU successfully. I can also use the "Start/Continue", "Single Step","Step over" etc buttons to debug the program. But the "Reset Target" is invalid. when press that button, the program still run without a interruption. Do you know the reasons?
attached is the referred mistaking dialog and the "tbdml_gdi12.dll" in my computer.(If you couldn't open the "tbdml_gdi12.dll.txt", just change its name to "tbdml_gdi12.dll" )
Can you help me with this?
Thank you.
http://www.freescale.com/files/community_files/TBDML/msg349_tbdml_gdi12_dll.txt
Dear Byron,
Please read the What is provided and Installation sections of the USBDM_JB16.chm (Help file) provided with the software.
You do not replace any files! The original opensourcebdm.dll file is in the windows directory somewhere. Placing the modified files in the Codewarrior directory hides the original files. Also, as you found, the existing GDI file is still required.
If you are using a HCS12 chip then I would check the reset circuitry on the BDM. I can't think of any reasons why the reset wouldn't work for the HCS08 chips.
bye
Sir pgo:
Thanks so so much for continuous development I'd like to ask if TBDML_JB16_SOIC20(MINIMAL) is up to the task of burning my newly discovered chip MC9S12C64MFAE since It's so minimalistic what could be the drwaback of using this instead of the other 28pin mcu based burner?
Yours Trully,
Ryan
Dear Slyrye,
There is no functional difference between the 20p & 28p 'minimalistic' versions. They are both a basic TBDML style interface.
Things that are missing relative to full USBDM (from memory):
No support for RS08 devices (no 12V supply)
No Target Vcc supply or supply monitoring i.e. its can't report absence of target power.
That's about it.
I have used a very similar circuit with a 9S12C32 & C128 devices which I believe would be similar to the 9S12C64. I did not have any problems.
bye
Dear vkojin,
The JB08 was used in the original TBDML so you can try that but it is limited in speed. See this thread:
TBDML debugging interface for HC12, S12, S12X and S12XE microcontrollers
The USBDM code is not available for JB08 as it is too limited in memory (and speed).
I would very much recommend you look at a JB16 based version.
bye
Dear pgo,
I made the USBDM according to the schematics described in USBDM_JB16_SOIC(USB Stick).pdf with firmware USBDM_JB16.s19. I use MC908JB16DWE for processor and MC74HC125N for buffers.
When device is plugged in the USB port it is found as new hardware. I installed the appropriate drivers, put your dll files in the CodeWarrior (version 6.2) folder.
When I try to connect to the target (panasonic PAN802154HAR00, MC9S08GT60CFBE processor) the USBDM Configuration window pops up but then this error appears: TEST CONNECTION FAILURE Connection with target has failed (described in your help file). The green and red LED is on.
In Command window I get TARGET SECURED? NO TARGET CONNECTED?
In the Open Source BDM status dialog the following parameters appear:
Hardware version: 15.15
Firmware versin: 0.12
USB DLL version: 2.1
GDI DLL version: GDI V1.0
BDM Status Reg: 0x64(secured?)
System Clock: 8000000.00 MHz
In Test_USBDM tool I get :
Status: Wait, Not Connected, Reset
Speed = 15360.00 MHz (1 tick, sync=0.0us)
Can you tell me where things could be wrong?