2010-09-21 09:34 AM - last edited on 2010-09-21 09:37 AM
Dear All,
The latest version of the hardware/software & firmware for the above is available at this location.
http://opax.swin.edu.au/~3340694/USBDM/USBDM/html/
History
Please note that these design are different from the Freescale OSBDM-JM60 design which was proceeding independently while I was doing the above designs.
Linux files will be uploaded in the next few days.
Its a BETA because there have been lots of changes in how it operates so probably some undiscovered bugs.
Enjoy.
bye
2010-09-22 01:10 AM
Dear pgo,
Awesome! I'm excited to try this out.
I'm trying to find the new USB driver required for Windows installation, but I cannot. Am I missing something?
Thanks!
2010-09-22 02:00 AM
Dear osaraku,
See the links on this page:
http://usbdm.sourceforge.net/USBDM_V4.0/USBDM_JS16
bye
2010-09-22 04:08 AM
Dear pgo.
Thanks! My bad. Should have RTFM ![]()
Best Regards
2010-09-22 04:06 PM
Dear pgo,
I'm having trouble building both the usbdm.4.dll and the HCS08 flash programmer. I'm using Windows XP. Perhaps there's something major I'm missing in order to run on XP? Or is there some Eclipse settings I need to set differently for this version?
For usbdm, I've had no issues in the past building the dll. This time, after importing the provided project and trying to compile, I get
g++ -LC:/Documents and Settings/Owner/Desktop/USBDM 4.0/USBDM_Win32_V4_10_09_21/USBDM_V4 -shared -ousbdm.4.dll src\libusb_V1.o src\Version.o src\USBDM_API.o src\Names.o src\Log.o src\ICP.o -lusb-1.0.dll -lcomdlg32 -lcomctl32 -lgdi32
g++: and: No such file or directory
g++: Settings/Owner/Desktop/USBDM: No such file or directory
g++: 4.0/USBDM_Win32_V4_10_09_21/USBDM_V4: No such file or directory
Build error occurred, build is stopped
Time consumed: 359 ms.
This looks like a path separator problem. Any ideas?
For HCS08 flash programmer, I imported both the "HCS08_4" and "Shared" projects into an Eclipse workspace, I get
**** Build of configuration Programmer - Release for project HCS08_V4 ****
**** Internal Builder is used for build ****
g++ -DFLASH_PROGRAMMER -DTARGET=HCS08 -D__WXMSW__ -D__GNUWIN32__ -DUNICODE -IC:/Documents and Settings/Owner/Desktop/USBDM 4.0/USBDM_Win32_V4_10_09_21/HCS08_V4/src -IC:\Documents and Settings\Owner\Desktop\USBDM 4.0\USBDM_Win32_V4_10_09_21\Shared_V4\Shared -IC:/Apps/wxWidgets-2.8.11/include -IC:/Apps/wxWidgets-2.8.11/contrib/include -IC:/Apps/wxWidgets-2.8.11/lib/gcc_lib/mswu -O3 -Wall -c -fmessage-length=0 -Wno-write-strings -osrc\FlashProgramming.o ..\src\FlashProgramming.cpp
..\src\FlashProgramming.cpp:49:19: wx/wx.h: No such file or directory
Any ideas/pointers on these? Thanks!
2010-09-23 08:25 AM
Dear osoraku,
I have no idea why you are getting the first error. As you say its a problem relating to the workspace path - it contains spaces which haven't been escaped properly. Try creating a Eclipse workspace in another location that doesn't involve spaces. This happens to be what I routinely do so I wouldn't have experienced this problem.
The second error is because I now use wxwidgets for the GUI stuff on linux & windows. You will need to install this and add the appropriate inlcude paths etc. Quite messy under windows I'm afraid.
bye
2010-09-23 07:17 PM
Dear pgo,
I moved the location of the source code so that its path does not involve spaces and this does the trick. I can now build usbdm.4.dll ok.
I notice that there are targets for building usbdm.4.dll for libusb V1, and targets for building usbdm.4.dll with the previous version of libusb. I understand libusb v1 is required for 64 bit windows, but does it also work for win32? Is that why you included the capability to build usbdm.4.dll with previous libusb, so you could still support win32?
How hard would it be to modify the flash programmer projects to produce DLL's instead of GUI or command line? I looked into it, but trying to strip out the interactions with wxWidgets seemed like it might be rather messy.
I have BDM pods built about a year ago from your v1 designs. It is the JM60 version, with no support for RS08 and no support for providing target Vdd. It has been working great for programming HCS08 and CFV1 targets. Do you believe this vintage of pod should still work with the new v4 f/w and DLLs? I have been having some problems trying to use v4 f/w and dll's either with the pre-built HCS08 flash programmer included in your v4 distro, or with CodeWarrior 6.3. I've seen both these scenarios work, but there seems to be serious slugishness in recognizing the pod, and even after it is found communicating with the target is rather hit-or-miss. But, I have been successful in programming HCS08 targets at least once with both of these methods. It feels like there is something funky with the new USB driver (which I managed to install following your instructions), but I really don't know. Is it possible to use usbdm.4.dll with v4 f/w but use the previous libusb and windows driver, just as a point of comparison?
Sorry for the long-winded and wide-ranging questions, and thanks again for your tremendous efforts in this project.
Best Regards
2010-09-24 03:23 AM - last edited on 2010-09-24 03:24 AM
Dear osoraku,
Please see comments below:
I notice that there are targets for building usbdm.4.dll for libusb V1, and targets for building usbdm.4.dll with the previous version of libusb. I understand libusb v1 is required for 64 bit windows, but does it also work for win32? Is that why you included the capability to build usbdm.4.dll with previous libusb, so you could still support win32?
The previous V0 targets were just for testing. I discovered, after changing to libusb V1, that there was a signed version of libusb v0 that can be used with windows 7 but it still seems a sensible change - especially under linux.
How hard would it be to modify the flash programmer projects to produce DLL's instead of GUI or command line? I looked into it, but trying to strip out the interactions with wxWidgets seemed like it might be rather messy.
Most of the target specific programming code is in the various FlashProgramming.cpp and DeviceData.cpp files. The only use of wxWidgets is for wxString I think. It should be reasonable painless to change these to C++ strings and remove the dependence. The rest of the code is mostly gui stuff.
I have BDM pods built about a year ago from your v1 designs. It is the JM60 version, with no support for RS08 and no support for providing target Vdd. It has been working great for programming HCS08 and CFV1 targets. Do you believe this vintage of pod should still work with the new v4 f/w and DLLs? I have been having some problems trying to use v4 f/w and dll's either with the pre-built HCS08 flash programmer included in your v4 distro, or with CodeWarrior 6.3. I've seen both these scenarios work, but there seems to be serious slugishness in recognizing the pod, and even after it is found communicating with the target is rather hit-or-miss. But, I have been successful in programming HCS08 targets at least once with both of these methods. It feels like there is something funky with the new USB driver (which I managed to install following your instructions), but I really don't know. Is it possible to use usbdm.4.dll with v4 f/w but use the previous libusb and windows driver, just as a point of comparison?
The dialogue and such for the BDM will be significantly slower because they have to enumerate the devices and open each one to obtain the serial number. I have had some problems with getting this process correct but I thought all the issues should be sorted by now.
Your earlier hardware should work with the newer firmware - check your design against the schematic provided with the firmware.
You should be able to use the libusbV0 drivers by just swapping the usbdm.4.dll files but I won't guarantee this because it hasn't been tested in a while and I may have made some changes to the V1 code that is not reflected in V0.
You could also try using the debug version of the usbdm.4.dll and check the log file for any clues for the delays or unreliability.
OK - found the problem I think - in some cases the usbdm.4.dll was treating JMxx BDMs as JB16 BDMs. This was due to a late fix for JB16s and me not thorougly testing what I thought was a minor change. Sorry! Download the updated file from sourceforge under errata and see if that fixes the problem.
bye
2010-09-25 07:05 PM - last edited on 2010-09-25 07:06 PM
Dear pgo
I use USBDM CF JM60 hardware,add eclipseHome can work good(in HCS08), but in RS08(RS08KA2), have shown can not be saved.
have any suggestions
Thank you for your USBDM V4, it's great.
2010-09-28 04:47 PM
Dear pgo,
The new usdbm.4.dll you provided allows the HCS08_FlashProgrammer.exe to work properly now. There are no extended delays when starting up, and no strange "USB transfer errors". Thanks!
The errata on sourceforge only contained the usbdm.4.dll itself. When I build usbdm.4.dll myself, the same problem resurfaces. Are there other files you meant to include in the errata directory?
Best Regards