10 years, 9 months ago.

what is crp disable mode?why program is not loading in the crp disable mode?

In the crp disabled mode only the firmware.bin file is present and the html file is missing while connecting the board with the laptop.So in this mode program is not loading and the connection is not established with the minicom in linux

1 Answer

10 years, 9 months ago.

The CRP disabled mode is the built-in USB programming mode of some NXP devices (eg LPC1549). You can flash a new program by deleting the firmware.bin and downloading a new bin. Which platform are you using? Do you see the firmware.bin on the target processor (eg LPC1549) or on the mbed interface processor that is present on some platforms (eg LPCXpresso1549 or LPCXpresso1168)?

@wim Huiskamp-Thank you sir for your response.I am using NXP LPC 1768.Yes the firmware.bin file is been seen on the target processor.I have a query regarding which is the best software that is needed to flash the nxp device.And from where do i download the new firmware.bin file?Will flashing the device will solve my problem?

posted by Vinit Mehta 01 Jan 2015

Hmm, not sure if the LPC1768 actually supports the CRP disabled mode at all? I know for sure it is supported on the LPC1549. You will enter this mode when a certain pin is at low level during a reset. Note that you can also use this feature on the interface processors to update the firmware that provides mbed flashdisk and serial port behaviour. Anyhow, when you use the mbed online compiler it will produce a bin file that you can save on your PC. That file can then be used to replace the firmware.bin After a normal reset the target processor will start executing the new binary.

posted by Wim Huiskamp 01 Jan 2015

The answer and replies leave many questions unanswered. I have a Mac with OS X ver 10.6.8 and can run the mbed compiler in Firefox and load programs into the original mbed board. Now I run into problems with the NXP1549 board...

1. "Do you see the firmware.bin on the target processor (eg LPC1549) or on the mbed interface processor that is present on some platforms (eg LPCXpresso1549 or LPCXpresso1168)?" How would I know which is which. I see "CRP DISABLD in the Finder list of device on my Mac. Is that the LPC1549 memory or the memory in the "interface processor"? 2. "You will enter this mode when a certain pin is at low level during a reset. Note that you can also use this feature on the interface processors to update the firmware that provides mbed flashdisk and serial port behaviour." OK, thanks for not telling us the pin number. On the LPC1549 board I believe you press the ISP0 button and hold it down as you connect the board to your host computer. That action brings up the CRP DISABLD "device" in the Finder window.

3. "Anyhow, when you use the mbed online compiler it will produce a bin file that you can save on your PC." I deleted the firmware.bin file provided by NXP. I then compiler a short test program (LED flasher) and created a .bin file. That file should load but instead it goes into my Download folder. I have set Firefox to always ask where to save a file. A second attempt shows the firmware.bin file back on the LPC1549 board. I erased it again. It keeps coming back. Why?

4. OK, finally got my Blinky.bin file loaded into the CRP DISABLD "device." Press the Reset button on the board and the Mac presents a message, "The disk was not ejected properly..."

5. Can someone please help me get this darn board running with the mbed tools? I hope to use this nice board in several programming classes for middle-school kids, but so far only frustration.

posted by Jon Titus 24 Feb 2015

@Jon For normal use you should preferably connect to the mbed interface chip and not use the CRP approach for the target (eg LPC1549). You would only use CRP to update the interface chip whenever there is a firmware update available.

1. The processors that natively support USB programming show up as a USB stick on your machine. They will show one file named firmware.bin. This is actually the program that is currently flashed inside the processor. Not all NXP mbed targets have this capability. The more recent (NXP) mbeds also have an interface processor that has this capability. Obviously the processor needs to be accessed via its onchip USB interface to use this feature. That is why I asked above which of the two USB device ports was used, either the one for the interface processor or the one for the LPC1549 (see manual).

2. The pinnumber needed to start up in CRP mode depends on the processor type. Check the manual. On the LPC1549 you can use the pushbutton.

3. The firmware.bin keeps showing up whenever you start in CRP mode simply because it still is in the flash memory. The name is a dummy. The device does not store the name of the bin file that you actually flashed into memory (eg blinky).

4. Ignore that nagging.. Happens because you reset the processor and this kills the USB interface.

5. I know all about processors, tools and frustrations... Believe me, mbed is much easier than others.

posted by Wim Huiskamp 27 Feb 2015