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

Discussion Groups | LPC2000 | Re: update firmware on LPC23xx from Can BUS

Discussion group dedicated to the Philips LPC2000 family of ARM MCUs

update firmware on LPC23xx from Can BUS - "franco.dalpero" - Aug 6 9:54:29 2008

Hi at all

I must update the firmware in microprocessor LPC23xx use the CAN
bus,not use the traditional flash magic with com0, existing
information for this application or one person of this groups have
test this solution?

Thanks
Franco
------------------------------------



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


Re: update firmware on LPC23xx from Can BUS - lpc2100_fan - Aug 6 16:15:53 2008

--- In l...@yahoogroups.com, "franco.dalpero"
wrote:
>
> Hi at all
>
> I must update the firmware in microprocessor LPC23xx use the CAN
> bus,not use the traditional flash magic with com0, existing
> information for this application or one person of this groups have
> test this solution?
>
> Thanks
> Franco
>
Franco,

if you want to use external consultants, the guys from esacademy.com
(who also developed Flash Magic) are VERY knowledgeable with CAN, a
couple of them even wrote a book about CAN.
You can start from their website, they are really good but they are
consultants and can't work for free.

Bob
------------------------------------



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

Re: update firmware on LPC23xx from Can BUS - mjames_doveridge - Aug 6 20:38:38 2008

--- In l...@yahoogroups.com, "franco.dalpero"
wrote:
>
> Hi at all
>
> I must update the firmware in microprocessor LPC23xx use the CAN
> bus,not use the traditional flash magic with com0, existing
> information for this application or one person of this groups have
> test this solution?
>

There is nothing that absolutely stops you doing this, but it's much
easier with some designs than others. I intend to do this upgrading
over CAN. I already have an OS, (Rowley ctl), an SD card with a file
system, a CAN protocol that can transfer a byte stream and a secondary
boot loader that can manage two banks of application code in my
LPC2129. The boot code normally works by looking for S-Record
application image files from the SD card and then IAP loading/blowing
any image found into the code bank area containing the oldest version,
so overwriting it. I can do this by always building two image files
at the locations of the two banks and then letting the boot code
decide which file to load based on the current version numbers of its
app banks.

Normally, I copy new images onto the SD card from my development PC,
(using a USB SD reader/writer dongle), after building them with
Crossworks, but I guess that there is no reason why I cannot transfer
them over the CAN onto the SD card in the uC board. We have a PC-CAN
'modem' box, so it should be easy to transfer the files from the PC to
the SD on the board & then get the boot code to blow/run it. I guess
that I will download 'tmp' files and then rename them when the
download is complete/verified so as to prevent the boot loader from
trying to blow an incomplete/corrupted image after a
crash/reboot/whatever during the CAN download. I can do the
downloading slowly, at a low priority: the network users will not know
it is happening until reboot time.

Blowing the flash over CAN is surely possible - it's just a matter of
moving data around. How exactly you do it is more to do with the
overall architecture/topology/protocols of your system than any
specific 'hardware' problem. If you have no bootloader, only one code
bank and no secondary storage, then it's going to be more difficult to
do this safely/easily.

How hard can it be? , (apologies to J. Clarkson)

Rgds,
Martin

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



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