FRDM-K20D50M not running pre-compiled examples

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

FRDM-K20D50M not running pre-compiled examples

1,468 Views
joaolugao
Contributor I

Hi, I just recieved my FRDM-K20D50M board and I'm having trouble with the pre-compiled examples. So far I've tried updating the bootloader, downloading the file MSD-DEBUG-FRDM-K20D50M_Pemicro_v114.SDA to the bootloader of the device and nothing seems to work. I have tried to do this both in windows 8 and windows 7.

When I download an example to the device it stops running the sample code that come with it (blinking the RGB led) and leave a static blue led on. When I press reset nothing happens. sometimes the laststat will show Error 7 and sometimes ready. When I unplug and plug the USB again the original sample code will start running again.

FYI

Board Name is: FRDM-K20D50M

MicroBoot Kernel Version is: 1.03

Bootloader Version is: 1.11

Installed Application: PEMicro FRDM-K20D50M Mass Storage/Debug App

Application Version is: 1.14

Can anybody help me? or is my board DOA?

Tags (3)
0 Kudos
6 Replies

792 Views
mjbcswitzerland
Specialist V

Joao

You didn't say how you were trying to download code to the board.

I have the same board and the only difference that I can see is that your has a newer Bootloader version (1.11 instead of 1.05, as mine has).

Presumably the board is appearing as a hard drive to your PC. If this is the case, try dragging and dropping the binary file that I have attached to see whether it runs. I have just tested it on my board by using the same method. It is copied and starts up with no further action needed.

If it runs (LED flashes and varies in colour), you can communicate with the UART via the virtual COM port and you will see a menu (115kBaud) which has various menu points that can be used to test the board (including the accelerometer, the LED colours and even testing reading/writing/erasing areas or program flash or FlexNVM).

Regards

Mark

0 Kudos

792 Views
joaolugao
Contributor I

Hey Mark,

Thank you for the reply. I've tried dragging and dropping the binary file as described. Right at the time the file transfer begins the green led starts flashing 8 times and pausing 2 seconds indicating error, this happens every time I try to drag and drop without being in the bootloader mode. The LASTSTAT file says error 7.

I was trying to program by dragging and dropping the precompiled codes to the board.

Regards,

Joao

0 Kudos

792 Views
mjbcswitzerland
Specialist V

Joao

Make sure that when you load an application you don't hold the reset button down when attaching the USB.

- When holding it down the hard drive appears as "BOOTLOADER"
- When the button is not held, the drive appears as "FRDM-K20D50"

When in the "BOOTLOADER" any SW upload will go to the K20 that is used as debug interface.

Only in "FRDM-K20D50 loader mode will the loaded code go to the K20 that is there for development use.

Is it possible that you have been loading always in BOOTLOADER mode?
I did in fact try copying the attached code to the BOOTLOADER and it accepted it without error in the "LASTSTAT.TXT" (and I needed to reload the original SDA to get the debugger working again) so it does sound more like a problem with the board or the boot loader version - I would contact P&E to find out what the error code means - http://www.pemicro.com/opensda/index.cfm

Regards

Mark

0 Kudos

792 Views
joaolugao
Contributor I

Hey Mark,

Thank you for the help so far.

Yes, I'm trying to download the file to the drive when it is in "FRDM-K20D50" mode. However, when it is in BOOTLOADER mode I am able to send the system files correctly without getting any error.

I'm talking to pemicro support and aparently error 7 means communication error (I hoped that it would be a bit more specific). I hope it is somehow a software problem because I just received the board and really want to start working with it.

0 Kudos

792 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello:

This was apparently a problem with MSD application for FRDM-K20D50M.

For those experiencing this issue, P&E created a new fixed version (MSD-DEBUG-FRDM-K20D50M_Pemicro_v115.SDA) which is included in the latest OpenSDA Firmware Apps package. The link to download is below:

www.pemicro.com/opensda

Regards!

Jorge Gonzalez

0 Kudos

792 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Hello Joao,

Please check below link, P&E provides updated OPENSDA firmware, the MSD firmware version is MSD-DEBUG-FRDM-K20D50M_Pemicro_v114. You could download it from below link:

http://www.pemicro.com/opensda/index.cfm

When there shows "FRDM-K20D50" disk, you could drag and drop the Precompiled example image file to this disk, then the example demo will run.


Wish it help.

best regards,
Ma Hui

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos