Download program without IDE ?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Download program without IDE ?

3,937件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by capiman on Wed Jan 20 13:30:08 MST 2010
Hello,

i already have a development environment on my PC, where i developed programs for LPC1768. I want to use the same environment for LPCXpresso boards. Developing the needed software, compiling, linking is not problem, finally i get a binary.

But how can i download the binary to LPCXpresso boards (i have a LPC1114 and a LPC1343 here) without using the IDE ? Can i somewhere get the tool to programm the flash of the LPC1xxx via LPC3154 itself ? Do i need the activation code to use the program tool or is it used for something else (like activating the IDE) ?

At the moment when i connect one of the boards to my PC i get a message from Windows, that no driver was found (VID 0471, PID DF55) ? Where do i get the drivers ? Do i get some kind of COM-Port after installing the driver ?

Furthermore is there a documentation of the protocol between the PC and the LPC3154 ?

(doing it the hard way...i don't hope i am forced to do hardware modification e.g. soldering a serial adapter or USB cable, just to flash some software...)

Best regards,

     Martin

Original Attachment has been moved to: 1100046_displaytest.txt.zip

0 件の賞賛
返信
16 返答(返信)

3,471件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jush on Mon Jul 04 18:18:43 MST 2011
Hello,

I already resolve my issue.By putting this in the post build of lpcxpresso IDE "checksum -v ${BuildArtifactFileBaseName}.bin;" It works as expected.


Thanks.
0 件の賞賛
返信

3,471件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Rob65 on Mon Jul 04 06:47:08 MST 2011

Quote: jharwood
The USB bootloader does require that you move your application's origin up to 0x01000 IIRC. So have you also modified the link scripts as described in the text file found in the root location of the USB bootloader project?



This looks like you are talking about the lpc17xx bootloader.
The lpc1434 has a USB bootloader in ROM so there is no need to use any special bootloader project.

For the lpc17xx you indeed need to do this, luckily it is a very simple task and if you have ever created your own linked scripts it is very easy.
Instructions are indeed in the bootloader project:
C:\nxp\lpcxpresso_3.6.3_317\Examples\NXP\LPC1000\LPC17xx\RDB1768cmsis.zip\RDB1768cmsis\RDB1768cmsis_usb_bootloader in LPCXpresso 3.6.3 and
C:\nxp\LPCXpresso_4.0.5_123\lpcxpresso\Examples\NXP\LPC1000\LPC17xx\RDB1768cmsis2.zip\RDB1768cmsis2_usb_bootloader in LPCXpresso 4.0.5 version

Just create a new workspace and import all the projects from the RDB1768cmsis(2).zip. Never mind it states this is for the RDB1768 board, it also works with any other lpc1768 board.  The readme.txt file in the projects root directory contains all the information you need to know in order to compile this project and adapt you own build environment to create a binary that is compatible with the bootloader.

Note that these are versions of the bootloader with the LPCUSB stack, not the original NXP version with the Keil stack.

These projects from Code Red are very nice, they also show you how to create the binary file including checksum.

Programming your device using USB is a good idea to do.
I only once program my boards with the USB bootloader via serial ISP (I used both lpc21isp and Flash Magic) and then I flash my test programs or apps using USB. Programming a 40 kB application takes less than a second.

If you want to protect your own code, you can always encrypt your code and let the bootloader decrypt this.

Regards,

Rob
0 件の賞賛
返信

3,471件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jush on Sun Jul 03 23:24:58 MST 2011
Yes, im using lpcxpresso IDE and I generated a .bin file in Project Namae->Binary Utilities->Create binary.

How could I invoke the checksum utility when i creating the binary file?
In LPCxpresso Base Board user manual it discuss this "C:\nxp\lpcxpresso_3.2\bin\checksum.exe –p lpc1343 –v oled_periph.bin", when i try this with my project file it response like this: Checksum utility (C) Code Red Technologies
Usage: nxp\lpcxpresso_3.3\bin\checksum.exe [-p processor] [-v ChecksumFile] wher processor is one of LP1x (defualt) or LPC2x
lpc1343

Post build commands:arm-none-eabi-size ${BuildArtifactFileName}; # arm-none-eabi-objcopy -O ihex ${BuildArtifactFileName} ${BuildArtifactFileBaseName}.hex ;


"The USB bootloader does require that you move your application's origin  up to 0x01000 IIRC. --->[COLOR=Red]what is 0x010000 IIRC[/COLOR]?So have you also modified the link scripts as  described in the text file found in the root location of the USB  bootloader project?" ---- could you please elaborate more about this paragraph...sorry if i can't understand this part i'm just a newbie, and please bear with me :confused:.......thanks
0 件の賞賛
返信

3,471件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jharwood on Sun Jul 03 22:17:34 MST 2011
Are you using the LPCxpresso IDE? What are your post-build commands? Are you invoking the checksum utility on the built binary file?

The USB bootloader does require that you move your application's origin up to 0x01000 IIRC. So have you also modified the link scripts as described in the text file found in the root location of the USB bootloader project?

If you have everything in place, it does work very well :)
0 件の賞賛
返信

3,471件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jush on Sun Jul 03 19:57:57 MST 2011
Hi,

I have an LPC1343, and I want my firmware to be updated with a new binary file. So I used the lpc1343 usb bootloader and it enumerate an mass storage class and contain a firmware.bin. I deleted the firmware.bin and loaded a new Binary file. But i've encountered a problem after I do a reset of the device, it didn't start my firmware instead it enumerated again the msc "CRD DSABLD" i don't know whats going on.
how could i check the checksum of my binary files? Is it related to a checksum?
What happen to my device that it behaves like this?

Thanks
0 件の賞賛
返信

3,471件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by qili on Sun Sep 12 18:59:20 MST 2010
there actually is a way.

the chip (lpc1343 and I think lpc1768) has a usb rom in them. if you look at the lpcxpresso user manual, it talks about adding a usb connector to the target board to make the target board into a mass storage device.

once that is done, the code inside the chip shows up as a "file" on that mass storage device. if you delete the old code and copy a new .bin file to it, you have "downloaded" the new code to the chip, without the use of red_code's ide.

you can google and will have multiple hits.

I am interested in this as I use a different compiler / ide and would prefer to stay with that, while taking advantage of the lpcxpresso hardware.
0 件の賞賛
返信

3,471件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Thu Aug 26 00:02:26 MST 2010
I don't think it can be encrypted, but you can set the Code Read Protect (CRP) bits so that it can't be read out of the flash. See the UM for details.
0 件の賞賛
返信

3,471件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by cyberstudio on Wed Aug 25 23:13:20 MST 2010
For LPC13xx or LPC17xx, is there any way to encrypt and protect firmware.bin? Or is it up for grabs by everyone?
0 件の賞賛
返信

3,471件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by igorsk on Sun Aug 22 11:07:00 MST 2010
"In-circuit programming (ISP) tool for the NXP (Philips) LPC1300 / LPC1700 / LPC2000 series ARM7 / M0 / M3 microcontrollers"
0 件の賞賛
返信

3,471件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by bmentink on Sat Aug 21 17:32:53 MST 2010

Quote: igorsk
http://sourceforge.net/projects/lpc21isp/



Thanks,

The name implies the project is for the LPC2xxx micros, is it compatible with the bootloader in the LPC17xx ??
0 件の賞賛
返信

3,471件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by igorsk on Sat Aug 21 16:38:30 MST 2010
http://sourceforge.net/projects/lpc21isp/
0 件の賞賛
返信

3,471件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by bmentink on Sat Aug 21 16:14:20 MST 2010
Does anyone know where you can get example code to use the on-board bootloader on the LPC17xx micros (i.e via UART ), I could probably write this code from the description in the manual ... but hey, if someone has already done it ...:)
0 件の賞賛
返信

3,471件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by capiman on Mon Jan 25 00:14:38 MST 2010
Hello,

i am not very happy to be forced to heat on my solder iron just to download some programs to flash and try it out. Ok, i am in the happy position that i am able to do this. Why not e.g. use the normal serial protocol (over USB CDC) and just ask for activation code as one of the first ISP commands ? Or at least publish the (proprietary ?) interface between PC and LPC3154 ?

There seems to be great hardware on the lpcxpresso (lpclink) to just do this, but it is useless when you don't have or don't want to use the exactly needed environment. In my position i have a Vista 64 bit. At the moment useless, because not supported (missing drivers). On the laptop of my wife (modern Vista 32 Bit) it works in general, but it is so slow, no i just don't want to use this as software development environment.

So i am back to use my own development environment. I think i cut lpclink away (as i read difficult / dangerous task) from the LPC1114 and LPC1343 and throw the useless part away. I solder my own USB / serial port connection and use mass storage copy or flashtool / lpc21isp to flash my program. at least the latest also works on different OS.

I am not happy with lpcxpresso, too much effort
just because of artificial limitation...

Regards,

      Martin
0 件の賞賛
返信

3,471件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by NXP_USA on Sun Jan 24 23:33:43 MST 2010

Quote: annodomini2
[FONT=Arial]You can theoretically use the LPC-link, but there is more than one option.

The LPC11xx/13xx/17xx have Serial ISP Bootloader in from the factory. (Via UART0), you'll probably need a USB->RS232 TTL cable to do this or hack a Nokia DKU-5 or CA-42 mobile phone cable to provide the interface.

There is a program on the NXP website called flashmagic (free for non-commercial use), you can use this to program your devices via serial.

[/FONT]


Flash Magic can be downloaded from www.flashmagictool.com. Other serial interface options include using the Embedded Artists LPCXpresso base board here:
http://www.embeddedartists.com/products/lpcxpresso/



Quote: annodomini2
[FONT=Arial]The LPC13xx has a 2nd USB bootloader from the factory. Not certain of how the USB programming works at this time (possibly pops up as a remote drive)
[/FONT]



The LPC13xx USB ISP can be triggered by connecting it to a USB port and pulling port 0 pin 1 low. It appears as a mass storage device. The old firmware appears in a file titled "firmware.bin." The flash can be programmed by first deleting this file and then copying over a new file. The new file must have a correct vector table checksum. This can be set with the LPCXpresso checksum.exe command-line program.


Quote: annodomini2
[FONT=Arial]
The LPC17xx has a secondary boot flash sector which you can write your own ISP programmer from any interface available on the device, there is an example of how to do this for USB on the NXP website in the Application notes.
[/FONT]

0 件の賞賛
返信

3,471件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by annodomini2 on Wed Jan 20 15:07:04 MST 2010
[FONT=Arial]You can theoretically use the LPC-link, but there is more than one option.

The LPC11xx/13xx/17xx have Serial ISP Bootloader in from the factory. (Via UART0), you'll probably need a USB->RS232 TTL cable to do this or hack a Nokia DKU-5 or CA-42 mobile phone cable to provide the interface.

There is a program on the NXP website called flashmagic (free for non-commercial use), you can use this to program your devices via serial.

The LPC13xx has a 2nd USB bootloader from the factory. Not certain of how the USB programming works at this time (possibly pops up as a remote drive)

The LPC17xx has a secondary boot flash sector which you can write your own ISP programmer from any interface available on the device, there is an example of how to do this for USB on the NXP website in the Application notes.
[/FONT]
0 件の賞賛
返信

3,471件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Wed Jan 20 15:04:46 MST 2010
Hi Martin,
 
The LPCXpresso evaluation board is meant to be used only  with the Code Red LPCXpresso, or Red Suite IDEs. So, the quick answer to your  question is you need the development environment to program the flash.
 
Here's a link to get the free LPCXpresso IDE if you don't have it:
 
http://ics.nxp.com/lpcxpresso/#GetLPCXpresso
 
The USB driver is part of the IDE installation. Because LPCXpresso is a license limited version of the Red Suite IDE,  it does not allow flash program from the debug utility command-line.
 
Regards,
 
CodeRedSupport
0 件の賞賛
返信