M9S08JM60  Is anyone using these yet?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

M9S08JM60  Is anyone using these yet?

22,111件の閲覧回数
TurboBob
Contributor IV
The JM series is just in time to keep me from giving up on Freescale and switching to another manufacturer with integrated USB.  My last project used the AW60, and an FTDI USB interface.  It was frustrating to pay more for the comm's chip than the CPU.  The private labelling of the USB drivers went ok, and I was able to modify the AN2295 bootloader to work.  I am hoping the USB solution provided by the JM series will work smoothly (Windows is usually the biggest problem....)

So,  has anyone got the demo kit yet?  I have been reading thru the doc's, but there is nothing better than having hardware to experiment with.

Is it possible that the JM60 can be a USB host, and save data in a USB flash drive?

I am hoping that Codewarrior 5.1 will work with these, as I don't want to have yet another installation of codewarrior on my machine (running 3.1 and 5.1)

Thanks guys, and Happy NewYear!!

Bob Bailey
Bailey Engineering
ラベル(1)
0 件の賞賛
返信
97 返答(返信)

4,057件の閲覧回数
JimDon
Senior Contributor III
You must have created a new project.

In the target settings, go to "Compiler for HC08"
On the command line arguments add -DHID_DEMO
0 件の賞賛
返信

4,057件の閲覧回数
krashcraft
Contributor I
Hello All,
I am in a good mood!!:smileyhappy:
I got it to compile, download into the 9S08JM60,  and am moving on!:smileyhappy:
Thanks for all your support and suggestions. You are a great group of people!!!

I am sure I will have other questions as the project matures!!!

Thanks again,
Keith

0 件の賞賛
返信

4,057件の閲覧回数
JimDon
Senior Contributor III
Well for one thing, we use .s19 files which are "hex ascii" of the binary, so you will not find any HEX files.

If you take the orignal CW project from the CD, hook up the to the BDM port (the USB "B" connector), then click the lttle green arrow (or use F5 - rebuild and run) it should build and down load and all should be well.

The first time you do this you will get a found device dialog, it should find the driver automatically if you ran the install from the CD.

If everything is already built, it will do nothing, as CW if very smart about when to rebuild.

If you go to "Project/Remove Object Code" then hit the brown hand writing with a pencil (to the left of the green arrow (or F7 - build)) you will see a dialog box pop up showing the build.

As for the "Original File" start thinks in terms of projects, which is the "unit of code" for CW.


BTW If you want the original demo that blinks led, I think you will have to ask P&E for that, unless it is now included, but I never needed it myself.

We don't consider Microchip a competitor to Freescale any more then BMW considers Kia a competitor. :--)




0 件の賞賛
返信

4,057件の閲覧回数
Nik
Contributor III

Can you use the code in VS 2008?  If not I can give you the project in VS2005, it will just have to wait until this evening.

Regards,

-Robert



Message Edited by Nik on 2008-06-03 06:56 PM
0 件の賞賛
返信

4,057件の閲覧回数
Nik
Contributor III
I am new to Freescale, so I have all the beginner's questions:
 
Which BDM?  The P&E's Cyclone Pro?  The USBMULTILINKBDM?
 
I know the BDM functionality is on the DEMOJM, but I am thinking down the road.
 
Regards,
-
Robert
0 件の賞賛
返信

4,057件の閲覧回数
Nik
Contributor III
I believe that the data sheet is wrong, p358, where it says that the inernal temperature sensor's voltage at 25C is 1.396 mV.  It should be 1.396V.
 
Regards,
-
Robert
0 件の賞賛
返信

4,057件の閲覧回数
TurboBob
Contributor IV
I am going to start my USB project soon.

Can the generic HID mode be set up to just make a section of RAM in the cpu mirror some ram in the PC, updated via USB?  It would be great to just write to an array in the PC and know that it will appear in the cpu.  It would really simplify all my communication headaches.

Bob


0 件の賞賛
返信

4,057件の閲覧回数
JimDon
Senior Contributor III
Sure why not?

As I mentioned have done a major upgrade of the demo that will be released shortly from freescale.

Any data you want can be in the reports.
Did you order the board yet?






Message Edited by JimDon on 2008-02-15 12:30 AM
0 件の賞賛
返信

4,057件の閲覧回数
JimDon
Senior Contributor III

BTW Mouser does no have stock yet, but the are showing a price of 46.78 - the 64 pin socket and the Vacuum pick-up pen are worth that alone (not to mention a full P&E BDM, that wil work on all HCS08 and HCS12 as well). If you had a QE Board, you could use those chip carriers on it too, I believe
.
They give you the socket so you can drop in the CF V1 USB chip when it is ready. It will support on the OTG, and will support High Speed as well. If you haven't looked into the QE yet, the CF V! has optimized instructions that can get 8-12 times the performance of the 08 with almost identical code size, and not much more cost. ( and no paging!!!). The JM CF USB chip will be pin for pin and register compatible, except of course the added features..
Over the years I have look at quite a few usb chips, and for doing cool things with ease this will be the best.
I can for see NEVER having to write a device diver again. I mentioned it before, but I am so pleased that the CDC stack uses the built in MS serial driver How about an I2c Port that looks just like a com port to the system?.Ina afternoon or two.

Mouser part numbers 
841-DEMOJMSKT    46.78  JM USB (In Stock soon - will BO for auto ship)

:                                   
841-DEMOQE128    49.50  08QE128 and CFQE128 Included. (In Stock)

0 件の賞賛
返信

4,057件の閲覧回数
dp
Contributor III
I recently received the DEMOJM board and have experimented with the CMXUSB examples, JM60 bootloader and LED blink files. I'd like to see the accelerometer and other examples in the JM60 GUI but can't find CW projects or s19 files to do it. I'd also like to load the original firmware back into the device but face the same issue. Can someone point me in the right direction? Thanks.
Dave
0 件の賞賛
返信

4,057件の閲覧回数
JimDon
Senior Contributor III
Did you install the CD?
The CW items are in:
C:\CMXUSB_LITE\usb-peripheral\projects\CodeWarrior\hc9S08jm60\hid-demo
(Not sure if this is what comes on the board, but this is the hid demo)
You would need to build it and burn it to get the original demo back.

The PC side is in:
C:\CMXUSB_LITE\usb-peripheral\pc-side

You can down load the orginal CMX code from here.

I will message you with links to my demo, as it will be moving soon and is still beta (though some else did try it out and seems fine).



0 件の賞賛
返信

4,057件の閲覧回数
dp
Contributor III
I have compiled and burned the hid-demo and most of it works but it's definitely not the same as the original firmware that came in the chip. The original firmware changed the brightness of one of the leds when the pot was adjusted and produced different frequency tones when the buttons were pushed. Does anyone know where the code and/or project for that orginal firmware is located?

On the matter of the hid-demo, when I try to run the hid-led-demo.exe program , I get "HID initialization failed" in a popup message-box. This is with the hid-demo firmware running the "generic" startup (press and hold board button PTG1 at reset). The other two hid-demos (no buttons pressed or PTG0 pressed at reset) work so I know the board and USB port are functioning.

I can also successfully use the USB bootloader examples with the JM60 GUI but only the Blink 1 and Blink 2 s19 examples seem to work.

Is datalogger Project.abs.s19 supposed to work with the Data Acquistion and Accelerometer example is JM60 GUI? Datalogger.s19 doesn't seem to do anything (no accompanying project so I can't examine the code) and the Data Acquisition and Accelerometer in JM60 GUI don't seem to do anything with any of the firmware. What am I missing?

Thanks.
Dave
0 件の賞賛
返信

4,057件の閲覧回数
Inebriated
Contributor I
Hi Dave,
 
Did you ever manage to resolve the "HID intialization failed" issue when running the HID LED Demo application? I have run the application on 3 different computers so far and it launches successfully on 2 PCs but not on one of them. Unfortunately that PC that doesnt work is my PC and I was wondering what is causing the problem. The HID LED Demo enumerates correctly on my PC so I do not know whats wrong. If you managed to resolve the problem, can you please share the solution with me? Thanks.
 
Regards,
John 
0 件の賞賛
返信

4,057件の閲覧回数
JimDon
Senior Contributor III
Since it is not happening on my pc, it would be hard to solve it for me.

When you say:
" The HID LED Demo enumerates correctly on my PC "
What do you mean my that?
How did you confirm that?
0 件の賞賛
返信

4,057件の閲覧回数
Inebriated
Contributor I
Hi Jim,
 
I tried debugging the HID-LED-DEMO and realised that the reason it was displaying the “HID initialization failed” message was because of the function HIDOpen() (in hid_dev.cpp) returning an error. The error is caused by the SetupDiEnumDeviceInterfaces() function returning a False. Using GetLastError, I found that the error code was 103, which refers to “No more data is available”.

On the PCs that the application was running correctly, SetupDiEnumDeviceInterfaces() function never returns a False and therefore the application loads and works correctly. However, I have discovered that the application fails to run correctly on 3 PCs already and the error is due to the above mentioned fault.

Do you have any idea what is going on here and how I may rectify this issue? Thanks.

John

0 件の賞賛
返信

4,057件の閲覧回数
JimDon
Senior Contributor III


Inebriated wrote:
Hi Jim,
 
I tried debugging the HID-LED-DEMO and realised that the reason it was displaying the “HID initialization failed” message was because of the function HIDOpen() (in hid_dev.cpp) returning an error. The error is caused by the SetupDiEnumDeviceInterfaces() function returning a False. Using GetLastError, I found that the error code was 103, which refers to “No more data is available”.

On the PCs that the application was running correctly, SetupDiEnumDeviceInterfaces() function never returns a False and therefore the application loads and works correctly. However, I have discovered that the application fails to run correctly on 3 PCs already and the error is due to the above mentioned fault.

Do you have any idea what is going on here and how I may rectify this issue? Thanks.

John






Down load and try this code:

http://nikola.com/freescale_demo.htm


0 件の賞賛
返信

4,057件の閲覧回数
Inebriated
Contributor I
Hi Jim,
 
Thanks. I downloaded the demo C# application code and the demo firmware. I flashed the firmware accordingly and on power up, I can see the LEDs PTE3 and PT02 flashing. I also saw Windows enumerating the device as a HID LED Demo device and a check with the Windows device manager confirms that the board has enumerated successfully.
 
I then ran your C# application (hidgenericAPPNet.exe) and it loads up. Following that I clicked on the button "Open USB" and a messagebox appears with the words "GetHIDError() 0. The toolStripStatusLabel1 displays "USB Device detect failed, returned: 1".
 
Any idea whats going on here?  :smileysad:
 
Thanks.
 
John
0 件の賞賛
返信

4,057件の閲覧回数
Nik
Contributor III
Hi,

I ported / modifed Jim's code to .net and posted it there.  That error means that it's not detecting the Freescale USB.  Please try it with the "Demo code for the HC9S08. " on the same page.
 
Regards,
-
Robert
0 件の賞賛
返信

4,057件の閲覧回数
Inebriated
Contributor I
Hi Robert,
 
I did try it with the "Demo code for the HC9S08. " on the same page. For some strange reason, it just doesnt find the device . I can see the device in Windows device manager and the vendor ID is C1CA and product ID is 0003.
 
The application does work on some PCs but so far has failed on 3 PCs. Any idea whats going on?
 
Thanks.
 
John 
 
0 件の賞賛
返信

4,057件の閲覧回数
Nik
Contributor III
Hi John,
 
I tried to reply this AM but the forum was off-line.
 
So you see the vender ID & product ID even on the PCs where it has failed?  While I think it would error, any chance you do not have Framework 2?  Actually 2.050727? 
 
The PCs where it has failed, do thay have VS?  If not, maybe they just need a later version of Framework.  It would be installed:
C:\Windows\Microsoft.NET\Framework\v2.0.50727
 
0 件の賞賛
返信

4,057件の閲覧回数
Inebriated
Contributor I
Hi Robert,
 
Yes, Framework 2.050727 is installed on the failed PCs and they also have VS2005 installed. This is really weird because essentially your application is just calling a Windows API isnt it? Is this a Windows bug? How would one go about solving it?
 
Thanks for looking into this.
 
John
0 件の賞賛
返信