View unanswered posts | View active topics It is currently Mon Aug 21, 2017 11:13 am



Reply to topic  [ 14 posts ]  Go to page 1, 2  Next
Using Chinese "JB16" TBDMs with USBDM 
Author Message
QFP80 - Contributor
User avatar

Joined: Sat Aug 16, 2008 4:39 pm
Posts: 57
Location: Se oli ainakin näiiiiiin iso!
Following steps have been tested with Wayengineer TBDM (S12 BDM interface by AWNUXUE) based on MC908JB16 and silkscreened "S12 BDM v1.3, 2012-01-05, MTC of AIT". At least some cheap S12 BDMs on ebay appear to be same design so same instructions should apply for them.

1. You must use 32-bit Windows XP to perform this
2. You must have Office 2010 installed - evaluation version is enough as it's only required for some unresolved dependency of USBICP.EXE
3. You can't use latest USBDM as support for JB16 has been broken for quite a while
4. USBDM developer has nuked all old versions from Sourceforge. I've proved links to working versions below.

  • Download and install USBDM 4.9.5 with default settings
    http://files.mpoli.fi/sekalaiset/usbdm/ ... 5b_Win.msi
  • Download USBDM_Win32_4_6a.zip from
    http://files.mpoli.fi/sekalaiset/usbdm/ ... 2_4_6a.zip
  • Extract USBDM_Win32_4_6a.zip
  • Plugin Wayengineer TBDM while pulling pin 10 of MON08 connector GND to initiate ICP mode
    Pin 10 is also known as MON_DATA, see "C:\Program Files\pgo\USBDM 4.9.5\FlashImages\JB16\OSBDMe.pdf" included in USBDM 4.9.5 package for pinout if necessary.
  • Install USBICP driver from USBDM_Win32_4_6a.zip "Win32\Freescale ICP Files"
  • TBDM should be detected as USB\VID_0425&PID_ff02 "Motorola JB16/JG16 ICP Device"
  • If it comes up as USB\VID_0425&PID_1000 then you failed to initiate ICP mode
  • Launch USBDM_Win32_4_6a\Win32\Freescale ICP Files\USBICP.EXE
  • Select "Initial_Programming_MassErase.imp" when asked to open file
  • Next browse to "C:\Program Files\pgo\USBDM 4.9.5\FlashImages\JB16" and select USBDM_JB16.s19
  • Go thru Erase, Program, Verify and close USBICP
  • Unplug TBDM
  • Uninstall USBDM 4.9.5
  • Download and install 4.9.4 as it's last version with working JB16 support
    http://files.mpoli.fi/sekalaiset/usbdm/ ... 4b_Win.msi
  • Plug TBDM back without grounding pin 10
  • New device will be detected, point driver install wizard to
    "C:\Program Files\pgo\USBDM 4.9.4\USBDM_Drivers\Drivers"
  • New USB ID should be VID_16D0&PID_0567 and name "USBDM BDM Interface"
  • You can now follow regular USBDM docs. Programmer will also work with 32-bit and 64-bit Win7 now.

I've programmed new SM and FreeEMS to Wayengineer 9S12XDP512 board using this BDM after firmware upgrade described above. Jumpers were "J4: BKGO SELECT as BDM1", "J6: VDD125 from Target: remove jumper" and "J5: VDD125 from USB: install jumper".

Wayengineer 9S12XDP512 board can communicate with EMStudio, but that's it. Haven't done any further testing.


Attachments:
MC9S12XDP512-core-1.gif
MC9S12XDP512-core-1.gif [ 100.15 KiB | Viewed 6332 times ]
HCS12-BDM-1.gif
HCS12-BDM-1.gif [ 231.89 KiB | Viewed 6332 times ]
Fri May 24, 2013 11:46 pm
Profile
QFP80 - Contributor
User avatar

Joined: Sun Aug 21, 2011 6:26 pm
Posts: 77
Location: Spain
Did anyone used this with elmicro MC9S12XDP512 board?

I followed this steps and could upgrade the TBDM firmware but It can't detect the MC9S12XDP512 board.

_________________
Sierra XR4i 2.0T


Wed Jul 10, 2013 7:22 pm
Profile
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 14711
Location: Home sweet home!
Do you have a quality 5V supply on the CPU board? Did you have the cable the right way around? Is the cable in good condition? The errors with bad cables etc are not helpful. How about running it as root? That helped me once, but I don't need it now.

EDIT: If you want to, you can pay postage and I can load an SM onto it here.

_________________
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!


Wed Jul 10, 2013 7:29 pm
Profile WWW
QFP80 - Contributor
User avatar

Joined: Sun Aug 21, 2011 6:26 pm
Posts: 77
Location: Spain
Fred wrote:
Do you have a quality 5V supply on the CPU board? Did you have the cable the right way around? Is the cable in good condition? The errors with bad cables etc are not helpful. How about running it as root? That helped me once, but I don't need it now.

EDIT: If you want to, you can pay postage and I can load an SM onto it here.


I got 5V from an Arduino. My voltimeter says it's 5.00V .
I will check the BDM cable that came with the programmer.

I tried it in linux as root and also in Windows XP 32bits (as needed to modify the TBDM) near the same errores (I don't have it here to copy them).

I will try it this weekend and if I can't load a SM I can take your offer of sending it to you :P But first I want to try.

_________________
Sierra XR4i 2.0T


Wed Jul 10, 2013 10:45 pm
Profile
QFP80 - Contributor
User avatar

Joined: Tue Jul 06, 2010 1:03 pm
Posts: 45
Location: Espoo, Finland
I can program my elmicro card with a BDM just fine. No need for an external 5V supply if I feed it through the BDM.

There are two 6-pin headers on the elmicro card, X1 and X8. Are you sure you have the BDM cable on the X1 which is the BDM port?


Thu Jul 11, 2013 7:36 pm
Profile
QFP80 - Contributor
User avatar

Joined: Sun Aug 21, 2011 6:26 pm
Posts: 77
Location: Spain
Yes, I followed your guide (http://roller.baboonplanet.com/garage/e ... irmware_on). It's very good explained.

I tried to supply 5V also from BDM closing the two jumpers of the JB16 as is said in it datasheet, and in fact, I get 5V on elmicro card header with the multimeter.

But the HCS12 flash programmer says "The target appears to have no power. Please supply power to the target. Retry?"
But it has 5V..

If I don't apply the 5V from BDM the error is different "Failed to connect to target", the same I get if I disconnect the cable. If I then apply the 5V from an external source gives the same error that before "The target appears to have no power. Please supply power to the target. Retry?"

This happens also in Linux or Win XP.

In the elmicro card, should any led power ON when you apply 5V? In mine none.

thanks.

_________________
Sierra XR4i 2.0T


Fri Jul 12, 2013 12:11 am
Profile
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 14711
Location: Home sweet home!
IIRC it has no software on it, so likely not, unless there is a power LED. Check with others/book/traces/MrOnion/etc.

_________________
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!


Fri Jul 12, 2013 12:43 am
Profile WWW
QFP80 - Contributor
User avatar

Joined: Tue Jul 06, 2010 1:03 pm
Posts: 45
Location: Espoo, Finland
Yes, it's a blank mcu. No leds should be on. The only led on the board is connected to the PH7 pin and does nothing until your software decides to.

Do you happen to have any ms2 hardware around? Maybe try if the BDM works with them? Try to read the fw from one of those?


Fri Jul 12, 2013 7:35 am
Profile
QFP80 - Contributor
User avatar

Joined: Sun Aug 21, 2011 6:26 pm
Posts: 77
Location: Spain
ok, thanks. I don't have a MS2 neither any other freescale MCU.

I checked the cable and it's ok and also rechecked the voltage and some schemas and I don't find anything wrong. So I'm seriously considering sending Fred my card.

_________________
Sierra XR4i 2.0T


Sat Jul 13, 2013 11:19 am
Profile
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 14711
Location: Home sweet home!
Got it (BDM and S12), couldn't make his BDM work, used mine, loaded seank.hacked SM and will send back later today. Didn't/couldn't load fw due to no serial or usb connection.

"3. You can't use latest USBDM as support for JB16 has been broken for quite a while"

Likely related, I guess.

Fred.

_________________
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!


Fri Jul 19, 2013 11:01 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 14 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software for PTF. ColorizeIt.