How to mass erase the target processor on a FRDM-K20D50M

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

How to mass erase the target processor on a FRDM-K20D50M

Jump to solution
1,292 Views
Asmodeus
Contributor I

I have the latest drivers from P&E, but the FRDM-K20D50M is not recognised by P&E PROGARMCORTEX or by CodeWarrior MCU 10.4.

0 Kudos
1 Solution
936 Views
BlackNight
NXP Employee
NXP Employee

Mark,

have you loaded the debug application with the bootloader already?

Here are a list of articles which should help:

- Overview of OpenSDA: OpenSDA on the Freedom KL25Z Board | MCU on Eclipse

- Typical error situation: The Freescale OpenSDA Trap: “No Device Available”, or something like that…. | MCU on Eclipse

- New P&E firmware which has combined Debug+MSD: http://mcuoneclipse.com/2013/12/14/new-pe-opensda-firmware-v114/

If you are using Windows 8, then the last article is important too.

View solution in original post

0 Kudos
9 Replies
936 Views
hectorsanchez
Contributor IV

Try to follow these steps:

Capture.PNG.png

If windows does not recognize your board as an removable storage drive , try to reinstall the P&E drivers

0 Kudos
936 Views
mjbcswitzerland
Specialist V

Hi All

I just received an FRDM-K20D50 and it is appearing as a mass storage device [OpenSDA MSD Application] and also the USB-CDC/UART is operating but neither IAR nor CW10.5 can communicate with it as OpenSDA debug application (can't connect and don't see it).

Is there some trick involved which I haven't found in the Feedome board's user's maunal or OpenSDA user's guide, or is it more likely a USD installation problem, or a debugger configuration option?

Regards

Mark

0 Kudos
937 Views
BlackNight
NXP Employee
NXP Employee

Mark,

have you loaded the debug application with the bootloader already?

Here are a list of articles which should help:

- Overview of OpenSDA: OpenSDA on the Freedom KL25Z Board | MCU on Eclipse

- Typical error situation: The Freescale OpenSDA Trap: “No Device Available”, or something like that…. | MCU on Eclipse

- New P&E firmware which has combined Debug+MSD: http://mcuoneclipse.com/2013/12/14/new-pe-opensda-firmware-v114/

If you are using Windows 8, then the last article is important too.

0 Kudos
936 Views
mjbcswitzerland
Specialist V

Erich

Many thanks - I was expecting the debugger support to be pre-loaded (and operate together with CDC, MSD). Once I loaded the P&E applications and updated the version in the it was OK.

Regards

Mark

0 Kudos
936 Views
BlackNight
NXP Employee
NXP Employee

Mark,

only the new P&E V1.14 firmware supports this. But obviously existing or boards shipping from inventories have the MSD bootloader on it, which does not allow debugging.

Erich

0 Kudos
936 Views
mjbcswitzerland
Specialist V

Hi Eric

I wonder whather you can help out on these two related points?

1. TWR-KL46Z48M [I had no problems with updating the driver in the FRDM-KL46Z]  this tower board has also the OpenSDA interface on it and it doesn't work in debug mode. However I can't update it since if I upload the new driver it overwrites the application in the K46 rather than updating the driver in the K20. On the FRDM board I could hold the RESET button down when connecting the USB but this doesn't work on this board  - it always shows up a TWR-KL46Z48 rather than a LOADER disk. I have tried other switches but haven't found one that controls it.
Should the RESET button control this or is it different on this board?

2. The OpenSDA has a UART-CDC connection this doesn't work correctly with XON/XOFF flow control - when the processor sends an XOFF to the PC via the virtual COM it doesn't cause the data flow to stop (although the COM is configured to XON/XOFF mode and the same works when connecting the UART directly or when connecting using a standard USB-serial cable). This is not allowing some applications to operate correctly due to overflows when programming internal flash when the flow must be stopped for a short time.

Is OpenSDA a project controlled by freescale and where can this problem be reported to?

Regards

Mark

0 Kudos
937 Views
mjbcswitzerland
Specialist V

Eric

The first point has been solved. It is necessary to set J4 to 1-2 so that the SW1 input gets to the K20.

Regards

Mark

0 Kudos
937 Views
BlackNight
NXP Employee
NXP Employee

Hi Mark,

the default OpenSDA application on the board is from P&E (and maintained by P&E):

https://www.pemicro.com/opensda/

0 Kudos
937 Views
mjbcswitzerland
Specialist V

Hi Eric

Thanks - I created a thread at the P&E forum: P&E Microcomputer Systems

This is presently a bit anoying since I am having to avoid the USB-CD or reduce the baud rate to allow flash operations between UART interrupts (don't have to reduce much but still a nuisance). Hope that they can make an improvement since it is otherwise sure to become an issue in other applications that rely on correct flow control operation.

Regards

Mark

0 Kudos