Sign in

username:

password:



Not a member?

Search lpc2000



Search tips

Subscribe to lpc2000



lpc2000 by Keywords

2106 | ADC | ARM7 | Atmel | Bootloader | CAN | CrossStudio | CrossWorks | DDS | ECos | Ethernet | ETM | FIFO | FLASH | FPGA | GCC | GDB | GNU | GNUARM | GPIO | I2C | IAP | IAR | JTAG | Kickstart | LCD | Linux | LPC | LPC-E2294 | LPC2000 | LPC2100 | LPC2104 | Lpc2106 | Lpc210x | LPC2114 | LPC2119 | LPC2124 | LPC2129 | Lpc2138 | LPC213x | LPC21xx | LPC2210 | LPC2212 | LPC2214 | LPC2292 | LPC2294 | LPC2xxx | LPC3128 | MCB2100 | Olimex | Philips | PWM | Rowley | RTC | RTOS | SPI | SSP | UART | UART0 | UART1 | ULINK | USB | Watchdog | Wiggler


Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | LPC2000 | Deploying 'release' version of firmware from Crossworks or FlashMagic

Discussion group dedicated to the Philips LPC2000 family of ARM MCUs

Deploying 'release' version of firmware from Crossworks or FlashMagic - kevin_townsend2 - Nov 5 9:30:14 2009

I've recently finished a project that I want to be able to deploy to a handful of devices, and have built the hex file in release mode in Crossworks with Level 1 optimisations. I can run it properly from within Crossworks over JTAG (the USB device enumerates, and FreeRTOS starts executing tasks as expected), but when I try to deploy the HEX files via Flash Magic and then reset the device (after verifying the uploaded hex file), nothing seems to happen. When I deploy it via JTAG in Crossworks and then reset the device, it also doesn't seem to execute (I have to run via F5).

Do I need to set some specific compiler option so that the code starts executing when building for release mode? I definately was expecting it to run (or remain in flash), and I'm not really sure what I'm doing wrong???

------------------------------------



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )


Re: Deploying 'release' version of firmware from Crossworks or FlashMagic - leon Heller - Nov 5 9:39:17 2009

----- Original Message -----
From: "kevin_townsend2"
To:
Sent: Thursday, November 05, 2009 2:30 PM
Subject: [lpc2000] Deploying 'release' version of firmware from Crossworks
or FlashMagic
> I've recently finished a project that I want to be able to deploy to a
> handful of devices, and have built the hex file in release mode in
> Crossworks with Level 1 optimisations. I can run it properly from within
> Crossworks over JTAG (the USB device enumerates, and FreeRTOS starts
> executing tasks as expected), but when I try to deploy the HEX files via
> Flash Magic and then reset the device (after verifying the uploaded hex
> file), nothing seems to happen. When I deploy it via JTAG in Crossworks
> and then reset the device, it also doesn't seem to execute (I have to run
> via F5).
>
> Do I need to set some specific compiler option so that the code starts
> executing when building for release mode? I definately was expecting it
> to run (or remain in flash), and I'm not really sure what I'm doing
> wrong???

You need STARTUP_FROM_RESET. See the CrossWorks FAQs.

Leon

------------------------------------



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

Re: Deploying 'release' version of firmware from Crossworks or FlashMagic - FreeRTOS Info - Nov 5 9:40:13 2009


kevin_townsend2 wrote:
> I've recently finished a project that I want to be able to deploy to a handful of devices, and have built the hex file in release mode in Crossworks with Level 1 optimisations. I can run it properly from within Crossworks over JTAG (the USB device enumerates, and FreeRTOS starts executing tasks as expected), but when I try to deploy the HEX files via Flash Magic and then reset the device (after verifying the uploaded hex file), nothing seems to happen. When I deploy it via JTAG in Crossworks and then reset the device, it also doesn't seem to execute (I have to run via F5).
>
> Do I need to set some specific compiler option so that the code starts executing when building for release mode? I definately was expecting it to run (or remain in flash), and I'm not really sure what I'm doing wrong???
Have you defined STARTUP_FROM_RESET? See the CrossWorks FAQ.

Regards,
Richard.

+ http://www.FreeRTOS.org
Designed for Microcontrollers. More than 7000 downloads per month.

+ http://www.SafeRTOS.com
Certified by TÜV as meeting the requirements for safety related systems.

------------------------------------



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

Re: Deploying 'release' version of firmware from Crossworks or FlashMagic - kevin_townsend2 - Nov 5 10:02:18 2009

Richard:

Thanks for that ... I added it to preprocessor definitions for 'release' mode and it works fine now. Here's the link if anyone else comes across this:

http://rowley.zendesk.com/forums/51134/entries/50337

> Have you defined STARTUP_FROM_RESET? See the CrossWorks FAQ.
>
> Regards,
> Richard.

------------------------------------

______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.


(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )