Forums Search for: FLASH
Do both 0x87654321 or 0x43218765 enable CRP?
Hello, According to the page 520 of LPC23XX User Manual UM10211 dated 6 October 2006: "Code read protection is enabled by programming the...
Hello, According to the page 520 of LPC23XX User Manual UM10211 dated 6 October 2006: "Code read protection is enabled by programming the Flash address location 0x1FC (User flash sector 0) with value 0x87654321 (2271560481 Decimal)." However the code segment (below) in the boot loader for LPC2378 appears to also allow 0x43218765 (1126270821 Decimal) to do this. > @ address of CSP r
about IAP
I am using LPC2148. Interfacing LM35, I am getting temperature readings from ADC. I want to store these readings in the flash. Later I have to...
I am using LPC2148. Interfacing LM35, I am getting temperature readings from ADC. I want to store these readings in the flash. Later I have to retrieve them.I have referred an example code for writing data into FLASH. Given below - typedef void (*IAP)(unsigned int [],unsigned int []); IAP iap_bypointer; void iap_byfunction (unsigned *cmd,unsigned *rslt,unsigned entry); unsigned command[5];...
Flash Magic and LPC2103
Hello, I want to begin programming ARM microcontrollers. I have simple board for testing programs using LPC2103. I wanted to load simple...
Hello, I want to begin programming ARM microcontrollers. I have simple board for testing programs using LPC2103. I wanted to load simple blinking led program using FlashMagic. It seemed that programming was succesfull, but any loaded program didn't work. I tested many of them, but no one worked properly. I thought that I had some problem with my board, but Flash magic was properly con...
IAP (In Application Programming ) LPC2378
Hello! I'm reading about IAP programming of LPC2378 and found following in User manual:...
Hello! I'm reading about IAP programming of LPC2378 and found following in User manual: http://www.nxp.com/acrobat_download/usermanuals/UM10211_1.pdf On page 588 is written:, ... 3.2.7 Interrupts during IAP The on-chip flash memory is not accessible during erase/write operations. When the user application code starts executing the interrupt vectors from the user flash area are ...
Reg: Vector table Remapping Issue in lpc17xx,FreeRTOS
Hi all, I am using lpc17xx with FreeRTOS5.2.0. Reffering \FreeRTOS5.4.0\Demo\CORTEX_LPC1768_GCC_RedSuite democode. If Vecortable...
Hi all, I am using lpc17xx with FreeRTOS5.2.0. Reffering \FreeRTOS5.4.0\Demo\CORTEX_LPC1768_GCC_RedSuite democode. If Vecortable located in Flash(address 0),My porting code working fine.(without any Issue). If i move the vector table from Flash to ROM, my application seems to be working. Here is my code: gVectorsFn ---> is pointer to array of function pointers(which means Ram ve
Remapping interrupt vectors on LPC1114
Everything I have read has implied that the interrupt vectors in the LPC1114 can be remapped to RAM using the SYSMEMREMAP register. However, I...
Everything I have read has implied that the interrupt vectors in the LPC1114 can be remapped to RAM using the SYSMEMREMAP register. However, I have not been able to change the value of this register to anything other than 2 (vectors in Flash), unless my *ENTIRE* application resides in RAM. I am using IAR. Many of their examples have a RAM-DEBUG or FLASH-DEBUG option. The vectors work just ...
how to find flash occupied by hex file in LPC2138
Hi, I am using local IDE for lpc2138 in which there is no facility to know how much flsh has been used by our hex file which is loaded in...
Hi, I am using local IDE for lpc2138 in which there is no facility to know how much flsh has been used by our hex file which is loaded in controller through uart0.I am not using jtag debugging, i am just using uart0 for programming and debugging. But I want to know how much flah memory has been occupied in controller flash memory and how much is left. Please tell me how to calculate the...
Secondary bootloader - code won't execute
Hi I'm trying to implement a secondary bootloader. I have examined the application note AN10711_2 provided on NXPs website, and I...
Hi I'm trying to implement a secondary bootloader. I have examined the application note AN10711_2 provided on NXPs website, and I can sucessfully copy an executable from external flash memory device to the internal flash memory in the processor. However I cannot get the code to execute. My code to try an execute the user code from the bootloader is: void (*user_code_entry)(void); ...
IAP routine location in LPC
Hi all, I am using LPC2136 IAP and gone through following important sentense, 1.The IAP routine resides at 0x7FFF FFF0 location and it...
Hi all, I am using LPC2136 IAP and gone through following important sentense, 1.The IAP routine resides at 0x7FFF FFF0 location and it is thumb code. 2.The flash memory is not accessible during a write or erase operation. IAP commands, which results in a flash write/erase operation, use 32 bytes of space in the top portion of the on-chip RAM for execution. > From Memory map
Flash word alignment
Hi, On our board we have the external flash connected to a 23-bit address bus. The least significant bit is missing meaning that we can only...
Hi, On our board we have the external flash connected to a 23-bit address bus. The least significant bit is missing meaning that we can only address word aligned addresses. I am porting code from the GreenHills toolset to the GNU toolset under Rowley. If I read an 16-bit word from an unsigned address with GreenHills, it yields the result 0xFFFF. If I read the same address with Row...
LPC2148 Flash Debugging With AXD
Hi, I compiled a small example using ADS compilers with Keil uVision3 for LPC2148, set to be downloaded into the flash and debugged from...
Hi, I compiled a small example using ADS compilers with Keil uVision3 for LPC2148, set to be downloaded into the flash and debugged from there. The compiled *.axf image ran fine with ULINK. Also when I loaded this image into AXD, it ran fine (with OpenICE32 A900), as long as I gave it the correct path to the source files. So, I decided to take the source files and combine them into an AR...
Low cost MP3 player
Hi all. have question form different side. Is possible make easy end low cost MP3 player (mono, FM quality) with any LPC MCU??? is it possible....
Hi all. have question form different side. Is possible make easy end low cost MP3 player (mono, FM quality) with any LPC MCU??? is it possible. LPC2148 is possible to use (need 33kB ram and 110kB flash) but this MCU in min qty 1000> is not cheap. other MUC. now I test audio player with VLSI chip VS1000 (only ogg file play) work. but need external spi flash , and need external ADC (need this in
LPC810 problems
I received my LPC810 proto boards from ITead yesterday, assembled one of them, and had a couple of problems getting one of my LPC810 samples...
I received my LPC810 proto boards from ITead yesterday, assembled one of them, and had a couple of problems getting one of my LPC810 samples working. First off, a very simple test program that built OK with the LPC812 wouldn't link, giving lots of error messages: Linking Test.elf .text is too large to fit in FLASH memory segment .dtors is too large to fit in FLASH memory segment .ctor...
Re: Both CRP1 and CRP2 fail to secure code in NXP's latest Boot Loader update
--- In l...@yahoogroups.com, "jayasooriah" wrote: > ... CRP1 does not make appear to make sense. Here is its > description: > > ...
--- In l...@yahoogroups.com, "jayasooriah" wrote: > ... CRP1 does not make appear to make sense. Here is its > description: > > Access to chip via the JTAG pins is disabled. This mode allows partial > Flash update using the following ISP commands and restrictions: > > ? Write to RAM command can not access RAM below 0x40000200 > ? Copy RAM to Flash command can
two questions on Byte Count for LPC Flash Writes
Hello, N1: In the ECC section of the user manual, it is stated that flash can be written to in units of 16-bytes, aligned on any 16-byte...
Hello, N1: In the ECC section of the user manual, it is stated that flash can be written to in units of 16-bytes, aligned on any 16-byte boundary. N2: In the ISP/IAP COPY commands documentation, it is stated that byte count must be one of 256, 512, 1024 or 4096. Q1: N1+N2 implies that to update 16 bytes (on 16-byte boundary), one must read 256 bytes, modify 16 bytes at the appropri
AHB Matrix priority setting on LPC1788 can lead to IAP (flash) failure
Hi All After some experimenting I can reproduce the following effect on the LPC1788: 1) When the AHB matrix priorities are left at default...
Hi All After some experimenting I can reproduce the following effect on the LPC1788: 1) When the AHB matrix priorities are left at default all is working well - specifically the TFT is operating (320 x 240 and SDRAM) and flash memory operations are OK (FTP file system, parameter saving) 2) When the AHB matrix priorities are set to the following all file system operations which try to ...
Olimex Board LPC-L2294 - run program from flash
Hello, I have an Olimex Board LPC-L2294 with Olimex ARM-USB-OCD. I use Yagarto with OpenOCD and Eclipse. I can write a program and transfer...
Hello, I have an Olimex Board LPC-L2294 with Olimex ARM-USB-OCD. I use Yagarto with OpenOCD and Eclipse. I can write a program and transfer it to the RAM of the LPC2294. It runs in a correct way. :-) I can generate a BIN-File and transfer it to the internal flash. There is no error-message. But the program does not start to run. :-( Has anyone an idea whats going wrong? How can I che...
Micrel PHY & LPC2366 Rev 'B'
Hi Does anyone use LPC2366 Rev 'B' and Micrel KS8721BL/SL PHY? I would need some sample code to test if I have problems with my custom...
Hi Does anyone use LPC2366 Rev 'B' and Micrel KS8721BL/SL PHY? I would need some sample code to test if I have problems with my custom built PCB or if I missed something while porting the FreeRTOS 2368 demo to my board. I have changed flash size in linker script to 244K (why does FreeRTOS demo declare 12K less flash that lpc has?), changed PHY ID for Micrel PHY and set IP address for my ...
LPC2148_Demo updated with IAP, WDT, DAC, SWI and I2C demos
I've updated the LPC2148 demo code package to include examples of IAP (In-Application Programming, or writing flash from within a...
I've updated the LPC2148 demo code package to include examples of IAP (In-Application Programming, or writing flash from within a program), watchdog handling, outputting a waveform on the DAC, software interrupts (SWI), and I2C functionality. The IAP code allows interrogating the boot loader version, processor ID, erasing, filling and blank checking flash sectors from the CCI (Console Comm...
Watchdog and ISP
Dear Forum Members, I am using LPC2106 for time attendance application. I have enabled WATCHDOG at the start of my code. It is working fine....
Dear Forum Members, I am using LPC2106 for time attendance application. I have enabled WATCHDOG at the start of my code. It is working fine. Sometimes I need to upgrade the application on site. So I have included code to switch the LPC to ISP mode for programming the flash. This is also working as LPC switches to ISP mode and programming starts through Flash Magic. But the watchdog is...









