Hi to everyone,
I am using a KwikStik board (K40) with CodeWarrior 10.1. I would like to use the USB Device Demo found on ARM Examples of CodeWarrior. Does anybody has been able to get this demo working ?
I've just changed the clock settings in k40_tower.h file :
#define REF_CLK XTAL4
and selected UART5 to have a Serial port on KwikStik board :
#define TERM_PORT UART5_BASE_PTR
I always get "Unknown peripheral" from my Windows XP PC : the KwiikStik board sends the following debug messages on UART:
Enter USB Reset handler
Enter USB Reset handler
Enter USB Softtok handler
Enter USB Softtok handler
...and so on....
Debugging with J-link I see that the SOF interrupts are managed while I can never get inside USB_Handler()....
Any suggestions ?
Thanks you
I never got those working. I used the BRTOS demo code cfor CDC. That worked. I thne stripped away the RTOS portion. There examples are based upon the PHDC usb stack (in the medical section).
Sorry,
I am late with my response:
I tried with BRTOS and also with CDC example from bare metal stack of Freescale but always with poor results : could you give me some more informations ? did you tried with KwikStik board or with a Tower board ?
I am experiencing a total debacle with Kwikstik board : I've got 3 of them because the first one was "permanently locked" loading the IAR first demo project (!!!! a bug in the J-Link command file from IAR !!!! so I jumped on CodeWarrior 10.1 ), the second was used to test the ADC performance (far,far,far away from what datasheets are promising !) and the third one is used to test for USB device with still no results and I cannot delay any more my project. More , the CW10.1 seems not so stable and excessively heavy , in my opinion : a totally negative impression. I will try for some (small) time again than I will use another processor .......
Best regards
Hi
Please could you load the K40 Kwikstik USB loader from the following page: http://www.utasker.com/SW_Demos.html ? (search for Kinetis K40). You can simply verify that the HW is OK since it will recognise the board as a mass-storage device (requires no PC driver).
The following video shows it as reference on the Tower kit but there is also a binary for the Kwikstick (see also http://www.youtube.com/watch?v=nm2DmZv1rj8).
The project is now available for all Kinetis parts (K10 to K60) and can greatly accelerate project developments since it allows development in VisualStudio, including Kinetis and peripheral simulation in real-time. USB device MSD and CDC are included and can also be tested/USB applications developed in the simulator (in this case using USB scripts rather than PC resources since the PC doesn't have a USB device...).
Regards
Mark