Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. © Freescale Semiconductor, Inc. 2008.
Low and Full-Speed USB Solutions from Freescale
MCF532x* MCF532x*
LCD LCD
MCF537x MCF537x
Ethernet Ethernet
MCF527x
*Supports hi-
Ethernet speed with
Performance (MHz)
external
ULPI PHY
MCF5222x
MCF5221x Key
Device
MCF51JM128
Host
9S08JM60/32 On-The-Go
(OTG)
9S08JM16/8
Integrated Peripherals
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are TM
Freescale also provides a USB-MINI Stack supporting the S08 JM family with
USB device function, which is highly optimized for smallest foot print HID
class.
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are TM
ADVANTAGES:
No Host software or drivers required. Uses generic MSD class
Operating System indifferent. Will work on any OS that handles USB
Very simple to use. Just Drag-and-Drop new S19 file
Software available today (we will use it today).
AppNote coming soon.
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are TM
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are TM
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are TM
Features:
Pre-Loaded with fun software, games, change LED text
Pre-loaded with USB MSD Bootloader for firmware updates
Self-Powered, but can charge from USB or wall adapter
SD Card slot for external memory
IR transmitter and expansion connector for off-board communication
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are TM
No Yes
Jump to User Bootloader Enumerate as
Entry Vector Mode? USB MSD
Main()
Yes
Erase/Program
Flash
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are TM
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are TM
Objective: This lab shows how simple the new USB Mass Storage Device
bootloader is to use.
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are TM
1. Remove both USB cables from the board. Swap the daughter card to use the
MCF51JM128 module.
2. Open CodeWarrior for Microcontrollers. From Windows start menu, you can locate
it using the “Programs>Freescale CodeWarrior>CW for Microcontroller
V6.x>CodeWarrior IDE.exe” path.
4. Note new project directory. Open the USB Bootloader example project by pressing
“CTRL” + “O” keys simultaneously. Follow D:\Hands On
Labs\AMF_IND_T0039\Bootloader USB MSD\Application LED PTE2
blinks with bootloader and select “Application LED PTE2 blinks with
bootloader.mcp” and click “Open”.
5. With board turned off and attach both USB cables between host and board.
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are TM
6. Turn the Power switch to the ON position. The Power and USB LED will illuminate.
7. Compile and program the MCF51JM128 microcontroller with USB Bootloader and
application by clicking on “Debug” button, launching debugger.
8. From Connection Manager menu, select “DEMOJM on USB1” port and click on
“Connect (Reset)”.
9. From Erase and Program Flash menu, click on “Yes” to allow the debugger to mass
erase the microcontroller’s on-chip flash memory and program it with the new
application.
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are TM
11. Reset the board. The board is currently in Application Mode. Notice our
application blinks LED PTE2
12. Enter Bootloader mode: hold down the switch for PTG0 while resetting. Release
PTG0. Notice PTE2 LED no longer flashes, and another USB device enumerates.
15. Copy S19 file onto drive of bootloader. Wait for copy operation to finish (it takes a
few seconds).
16. Reset the board. Notice that this time a different LED, PTF1 blinks instead. The
original application has been erased with the new software from the S19 file.
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are TM
17. Also notice that the bootloader drive disappeared. By resetting the board,
Application Mode was entered, and the Mass Storage Device did not enumerate.
18. Feel free to copy the other JM128 S19 file back on the board using the same
steps as before. This loads the original application back on the board and blinks
LED PTE2. Notice this directory also contains S19 files for the new Kirin3 part.
These files won’t work on the JM128, but the same bootloader will be available for
Kirin3.
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are TM
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are TM
What is Done:
Bootloader is currently working on V1 and V2 using the JM128 and
Kirin3 MCF5225x.
Bootloader works great and fully tested on Windows XP. Also
working on Windows Vista
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are TM
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are TM