EmbeddedRelated.com
The 2024 Embedded Online Conference

Firmware updating - LPC2148

Started by Sutton Mehaffey in LPC200013 years ago 3 replies

I have put in a feature that takes an SD card with a .bin file on it, uploads the file to an intermediate serial flash, then uploads from...

I have put in a feature that takes an SD card with a .bin file on it, uploads the file to an intermediate serial flash, then uploads from serial flash to CPU RAM (in chunks) and then finally into CPU Flash. It almost works, but not quite. My setup is: I have a custom bootloader located at 0-0x4fff. At 0x4ff0-0x4fff are bootloader parameters, such as version number and a valid code fl...


Keil JTAG loading issue - LPC2148

Started by Sutton Mehaffey in LPC200014 years ago 40 replies

On my new version of Keil, version 4.01 of uVision, I still have a loading issue of code 30000H (196K) and up. Keil says they can't reproduce...

On my new version of Keil, version 4.01 of uVision, I still have a loading issue of code 30000H (196K) and up. Keil says they can't reproduce the problem, so they say I have a bootloader problem that is protecting sectors 30000H and up. I have a bootloader from 0-4FFF. All it does it transfer control to 5000H if the code is OK. I have a byte in offboard RAM that indicates whether t...


LPCUSB-Based USB Serial Bootloader

Started by thirdshoedrops in LPC200015 years ago 5 replies

I added a patch to the LPCUSB serial code so that flow control works, and wrote another example that functions as a USB serial bootloader....

I added a patch to the LPCUSB serial code so that flow control works, and wrote another example that functions as a USB serial bootloader. Patch and a flashable image are available at: http://tech.groups.yahoo.com/group/lpc2000/files/USBoot/ If you load the image into an LPC2148, then when it reboots, it attempts to connect to a host as a USB serial port. If it receives data over that ...


LPC2106 Programming - ISP and hex file

Started by gokbektas in LPC200020 years ago 9 replies

I connected my board to PC using UART0, bootloader enable pin pulled down using jumper, I run Philips ISP utility, Read Device...

I connected my board to PC using UART0, bootloader enable pin pulled down using jumper, I run Philips ISP utility, Read Device ID reads Part ID:4293984050, BootLoader ID:1.3 Is this correct? I select leddisp.hex and click Upload to Flash button, it fails...


Keil uVision3 to uVision4

Started by Sutton Mehaffey in LPC200014 years ago 3 replies

Anybody use the __attribute__ directive to do any absolute address mapping in Keil? I have a bootloader loaded in 0-0x4fff and my app code in...

Anybody use the __attribute__ directive to do any absolute address mapping in Keil? I have a bootloader loaded in 0-0x4fff and my app code in 0x5000+. I have a reserved 16 bytes in both sets of code (0x4ff0-0x4fff in the bootloader and 0x5000-0x500f in my app). It holds version numbers and anything else I need to store there. I store the version number in 0x4ff0-0x4ff1 in the bootl...


IAP with LPC2148

Started by Sutton Mehaffey in LPC200015 years ago 6 replies

Now that I got my SD card working (and I'll mention again that Axelson's book was the best documentation I've seen - it took me roughly 2 days...

Now that I got my SD card working (and I'll mention again that Axelson's book was the best documentation I've seen - it took me roughly 2 days to clean up all the issues I didn't understand and recode them - works perfect), I am looking at being able for the user to update the firmware with the SD card, without access to the circuit board. I'm assuming that I should have my bootloader c...


Problem with watchdog

Started by Ake Hedman, eurosource in LPC200018 years ago 56 replies

Hi all. I am trying to enable the watchdog but the result is a total hang of the board. Not even the bootloader is possible to reach...

Hi all. I am trying to enable the watchdog but the result is a total hang of the board. Not even the bootloader is possible to reach after the crash and I have to reapply power with P0.14 low to get access to the botloader again. Reset is not enough. The code to initialize the watchdog is // initialize the watchdog timer WDTC =


Newbee: bootloader locked.

Started by planiup in LPC200018 years ago 7 replies

Hello all: I'm a developer of 8 bit microcontrollers applications that wants to switch to ARM. So I'm learning my own all this stuff, and as...

Hello all: I'm a developer of 8 bit microcontrollers applications that wants to switch to ARM. So I'm learning my own all this stuff, and as a newbee, I have some problems. Probably the most stupid ones. I have a Macraigor Wiggler clone made by myself, and a development board with an LPC2103, also made by myself. I've checked all circuitry and it seems to be OK. I use the IAR KickStar


Keil MCB2360 (LPC2368) ISP synchronize problems

Started by toohgr in LPC200017 years ago 2 replies

Hello from a group newbie = ) I got myself a brand MCB2360 board recently and have played around with it for some time now but when my...

Hello from a group newbie = ) I got myself a brand MCB2360 board recently and have played around with it for some time now but when my curiosity turned towards the embedded ISP bootloader I had hard trouble getting into it. It's about 1 try out of 20 or so I enters the ISP. I hooked up a scope to see whats going on at the COM-port and there it was. Sending the '?' in all these norma...


Firmwrae update LPC2378

Started by Fernando Augusto in LPC200016 years ago 5 replies

Hi, i need to develop the firmware update for a project and was thinking on u= sing the IAP. Basically i would made a second bootloader for...

Hi, i need to develop the firmware update for a project and was thinking on u= sing the IAP. Basically i would made a second bootloader for our code, this= boot will never be erased so even if a power fail, or any other (Murphy=B4= s law like) thing hapenned during the update, i=B4ll be able to restart it = later. Here=B4s the problem, i=B4ve suffered a lot with AT89S8253 (Atmel) where ...


LPC2214 Bootloader bypassed?

Started by Simon Ansley in LPC200016 years ago 2 replies

Hello, I've just come across this on one of our PCBs. This is a proven board and code which a technician has just updated. He was manually...

Hello, I've just come across this on one of our PCBs. This is a proven board and code which a technician has just updated. He was manually manipulating P0.14 via jumper to access ISP, but had not removed power. After this the board will not start up after reset unless JTAG is present. Doing a reset then attaching the debugger shows the code to be stuck in a loop in the bootloa...


Burned LPC2103!!!

Started by nimster6969 in LPC200016 years ago 5 replies

Hi all: I have a board with LPC2103 from ETT (http://www.futurlec.com/ARM2103_Controller.shtml) and sudenly it stoped working, I was testing...

Hi all: I have a board with LPC2103 from ETT (http://www.futurlec.com/ARM2103_Controller.shtml) and sudenly it stoped working, I was testing some hardware with stepper motors and the uC stopped responding, the code disapeared from the uC and I cant even reprogram using Philips Flash Utility, talked with a friend and he told me that maybe the ARM is not burned and maybe the bootloader eras...


JTAG Programmer Confusion - Noob Question

Started by sixtyfivebit in LPC200018 years ago 29 replies

Hi all, I want to get into the LPC2106 or similar mcu, and i'm moving from the AVR world. I've read many things about how you need some...

Hi all, I want to get into the LPC2106 or similar mcu, and i'm moving from the AVR world. I've read many things about how you need some bootloader or something working on the mcu to receive data from the jtag, etc. is there some detailed explanation regarding this issue and how to solve it? Also, I'm looking for a programmer to build for the LPC2106


Difference between ISP and IAP

Started by dauzat_lilian in LPC200017 years ago 7 replies

Hello, I'm working on a LPC2103 with IAR compiler and I'm looking at the best method to reprogram its flash code memory using UART. I checked...

Hello, I'm working on a LPC2103 with IAR compiler and I'm looking at the best method to reprogram its flash code memory using UART. I checked the AN10356 and AN10256 from NXP, browsed forums and groups and I still don't know which is the best method. ISP seems to be simpler since I understood that the bootloader is able to performed all the work while IAP look like a nightmare. What I...


Placing interrupt vectors in ram with CrossWorks and LPC2XXX

Started by Jan Thogersen in LPC200017 years ago 1 reply

Hi all, In my project I use a bootloader which forces my user-code to place it's vectors @ 0x40000000. But this is apparently easier said...

Hi all, In my project I use a bootloader which forces my user-code to place it's vectors @ 0x40000000. But this is apparently easier said than done... I searched through Yahoo's group history and also on Rowley's faq. However, I'm not closer to the solution. I believe that the c runtime initializer would be able to copy my vectors to ram, but so far I haven't succeeded. I changed...


Olimex LPC2106mt bootloader problem

Started by Anders Kjellberg in LPC200018 years ago 16 replies

Hi, I'm trying to establish connection with Philips Flash Utility and an Olimex 2106 mt board without success. TheBSL jumper is shorted and the...

Hi, I'm trying to establish connection with Philips Flash Utility and an Olimex 2106 mt board without success. TheBSL jumper is shorted and the frequency set at 14745kHz (14.7456MHz). Different baudrates have been tried without success. I am not sure about the DTR/RTS settings however. Also I may be using the wrong RS232 cable. Null modem or not? I'll have to check that. I intend to use the


LPC2134 without bootloader?

Started by Ignacio in LPC200015 years ago 2 replies

Hi folks, I am experiencing a strange situation: I recently purchased some LPC2134 parts; I added them to a board that I know to work (I...

Hi folks, I am experiencing a strange situation: I recently purchased some LPC2134 parts; I added them to a board that I know to work (I usually put LPC2132 on it and they work without problems), so when I connect the flashmagic tool or the lpc2000 flash utility, i can not read the device id/device signature (and of course I can not program them). I checked with an osciloscope and the clock is ...


Re: REPROGRAMMING THE FULL FLASH MEMORY USING IAP THROUGH RS485 NETWORK

Started by Herbert Demmel in LPC200016 years ago 3 replies

Hi, basically it *is* possible to do what you want, but it's not that easy as you might think. As you want to have the possibilty to...

Hi, basically it *is* possible to do what you want, but it's not that easy as you might think. As you want to have the possibilty to exchange the *complete* flash data (that means not only an application area) and the LPC's can not write into the flash memory execting from you have to do as follows: You must write a so-called secondary bootloader, which is fully running in RAM (ima...


HELP: gcc + newlib +pic

Started by Jason Morgan in LPC200015 years ago 2 replies

Hi, This does not happen very often, but I am completely stuck. I have some code that is running in place as a callable application located...

Hi, This does not happen very often, but I am completely stuck. I have some code that is running in place as a callable application located in flash. The application is run from a bootloader. I have the compiler flags -fpic and -msingle-pic-base. So when the application is called, r10 is set to point to the GOT. This is where things start to go wrong. The compiler does not produce an...


Bootloader: Wrong answer on Prepare-Command (2) (Sector 2) CMD_SUCCESS

Started by Andreas Schwarz in LPC200020 years ago 7 replies

Hello, I'm using lpc21isp to program my LPC2106. When I try to download the test2 hex file from the Aeolus newlib example, I...

Hello, I'm using lpc21isp to program my LPC2106. When I try to download the test2 hex file from the Aeolus newlib example, I get the following output: (...) Writing Sector 0: ....(...) Sector 0 written Writing Sector 1: ....(...) Sector 1 written



The 2024 Embedded Online Conference