Doubt....

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Doubt....

Jump to solution
1,353 Views
balusting
Contributor II

Hi  every1 I am new to FRDM-KL-25Z  , i want to know whether we can use  FRDM-KL-25Z for serial port to usb converter using  FRDM-KL-25Z

Labels (2)
Tags (1)
1 Solution
1,171 Views
kerbal
Contributor III

P&E Microcomputer Systems

  1. Download the firmware apps and usb drivers
  2. I cannot remember for certain, but you may need to install the usb driver package before being able to access BOOTLOADER.
  3. Put the FRDM into BOOTLOADER by holding down RESET as you plug in the "SDA" USB port. The LED should blink @ ~1Hz
  4. The "SDA_INFO.HTM" file located on BOOTLOADER is the same as the link I posted to the drivers
  5. Drag-and-drop "MSD-DEBUG-FRDM-KL25Z_Pemicro_v114.SDA" from the firmware zip file to BOOTLOADER
  6. Nothing obvious will happen and there is no success dialog
  7. Disconnect and reconnect the FRDM
  • You've deployed a CDC app to the HOST/DEBUGGER.

If it didn't work, you may need to update BOOTLOADER

  1. Within the firmware zip, there is another zip; unzip it
  2. Repeat 3-7 from above using "BOOTUPDATEAPP_Pemicro_v111.SDA"
  3. Be sure to perform #7
  4. Repeat 3-7 using the "MSD-DEBUG...."
  5. Be sure to perform #7
  • You've updated BOOTLOADER and deployed a CDC app to the HOST/DEBUGGER.

  1. Your OS should detect two new devices, a MSD and a CDC
  2. The MSD should require no drivers and you should see that "BOOTLOADER" has become "FRDM-KL25Z"
  3. The drivers for the CDC component are on the new "FRDM-KL25Z" drive; point windows to the .INF file to complete installation of the CDC component.
  4. Within device manager, the CDC component will be listed under "Ports"; find the new CDC device and make note of the (COMxx) after its name; COM11, for example
  5. In your favorite terminal program, send data to COMxx and it will route through the debugger chip to the target chip's UART0
  6. Any code you upload to the TARGET can communicate with the USB via UART0
  • You have a working "USB-to-Serial"

If you deploy a CDC app to the TARGET as well:

  • You may utilize BOTH USB ports at the same time.
  • SDA USB is physically wired TARGET UART0 but you may redirect the data anywhere you want via user code
  • The TARGET USB port can be connected to any UART that isn't 0.
  • You may exchange data between the two USBs by exchanging data between the two UARTs.

View solution in original post

0 Kudos
7 Replies
1,171 Views
Paul_Tian
NXP Employee
NXP Employee

Hi, Balu

You can use FRDM-KL25Z as a serial port to USB. You can find such a sample project which is use USB to do a serial operation. The path is \KL25Z-SC\Kinetis L Sample Code\kl25_sc\klxx-sc-baremetal\build\iar. Project name is usb_device.


Hope my reply can help you.

Best Regards

Paul

1,171 Views
balusting
Contributor II

Am unable to find the path of project u specified . Please could u post the URL of project .

Could u please mention some projects on FRDM-KL-25Z

Thanks for ur reply ...

0 Kudos
1,171 Views
BlackNight
NXP Employee
NXP Employee

There are many KL25Z projects available here:

mcuoneclipse/Examples/FRDM-KL25Z at master ·GitHub

Have a look into the readme file in the projects, or here:

MCU on Eclipse | Everything on Eclipse, Microcontrollers and Software

1,171 Views
kerbal
Contributor III

You should look into Process Expert. It allows you to configure the TARGET with a drop-down-based GUI rather than hand-coding the bits.

To create the TARGET app:

  1. Create a new KL25Z PEx project
  2. Add USB component
  3. Add serial component
  4. Swap the data however you'd like via user code
  • There are specific clock settings required for USB to work; a Google of "KL25Z USB Clock PEx" or similar should return a relevant tutorial

I'm willing to bet that PEx comes with a ton of example code, as well.

1,171 Views
kerbal
Contributor III

The USB data can be shuffled to and from any of the UARTs within your user code.

For any of the UARTs to drive a "serial port" (DB-9/RS-232), you will need additional circuitry to provide the correct voltage and polarity.

1,171 Views
balusting
Contributor II

Thanks for ur reply . .

Could u please mention some projects on FRDM-KL-25Z

0 Kudos
1,172 Views
kerbal
Contributor III

P&E Microcomputer Systems

  1. Download the firmware apps and usb drivers
  2. I cannot remember for certain, but you may need to install the usb driver package before being able to access BOOTLOADER.
  3. Put the FRDM into BOOTLOADER by holding down RESET as you plug in the "SDA" USB port. The LED should blink @ ~1Hz
  4. The "SDA_INFO.HTM" file located on BOOTLOADER is the same as the link I posted to the drivers
  5. Drag-and-drop "MSD-DEBUG-FRDM-KL25Z_Pemicro_v114.SDA" from the firmware zip file to BOOTLOADER
  6. Nothing obvious will happen and there is no success dialog
  7. Disconnect and reconnect the FRDM
  • You've deployed a CDC app to the HOST/DEBUGGER.

If it didn't work, you may need to update BOOTLOADER

  1. Within the firmware zip, there is another zip; unzip it
  2. Repeat 3-7 from above using "BOOTUPDATEAPP_Pemicro_v111.SDA"
  3. Be sure to perform #7
  4. Repeat 3-7 using the "MSD-DEBUG...."
  5. Be sure to perform #7
  • You've updated BOOTLOADER and deployed a CDC app to the HOST/DEBUGGER.

  1. Your OS should detect two new devices, a MSD and a CDC
  2. The MSD should require no drivers and you should see that "BOOTLOADER" has become "FRDM-KL25Z"
  3. The drivers for the CDC component are on the new "FRDM-KL25Z" drive; point windows to the .INF file to complete installation of the CDC component.
  4. Within device manager, the CDC component will be listed under "Ports"; find the new CDC device and make note of the (COMxx) after its name; COM11, for example
  5. In your favorite terminal program, send data to COMxx and it will route through the debugger chip to the target chip's UART0
  6. Any code you upload to the TARGET can communicate with the USB via UART0
  • You have a working "USB-to-Serial"

If you deploy a CDC app to the TARGET as well:

  • You may utilize BOTH USB ports at the same time.
  • SDA USB is physically wired TARGET UART0 but you may redirect the data anywhere you want via user code
  • The TARGET USB port can be connected to any UART that isn't 0.
  • You may exchange data between the two USBs by exchanging data between the two UARTs.
0 Kudos