LPC2106 lockup

Started by Emmanuel Viollet in LPC200013 years ago

Hi. I'm using IAR, FreeRTOS and an LPC2106. After some time (1 week), I experience lockups of the system which make me restart the board...

Hi. I'm using IAR, FreeRTOS and an LPC2106. After some time (1 week), I experience lockups of the system which make me restart the board by unplugging the mains and replugging it back in. After analysis with an oscilloscope, it seems that the CPU is stuck while managing an interrupt (from an SPI serial port). Apparently timer 0 and timer 1 are no longer called (my watchdog is refre...


Power Fail Detection

Started by jdauchot in LPC200010 years ago 8 replies

Hi Has anyone implemented a power fail detection om the LPC2000? The 8032 system I replacing has a Watchdog chip that does the WDT and...

Hi Has anyone implemented a power fail detection om the LPC2000? The 8032 system I replacing has a Watchdog chip that does the WDT and sends a signal to the 8032 when the power is about to go. Regards Jean-Jacques ------------------------------------


Reg:Application Reset

Started by prab...@yahoo.co.in in LPC20009 years ago 8 replies

Hi all, If i want to reset my application through software,which is the best way?I am using LPC2xxx series. I am planning to use...

Hi all, If i want to reset my application through software,which is the best way?I am using LPC2xxx series. I am planning to use watchdog with low timeout.Is it ok???please expailn??? Or Is there any best way to reset the application software??? Thanks, ------------------------------------


Re: Watchdog in LPC2000

Started by Nagaraju in LPC200012 years ago

Hi Nishant, I have implemented using EDC codes by keeping a counter variable in master while loop. The interrupts which i have...

Hi Nishant, I have implemented using EDC codes by keeping a counter variable in master while loop. The interrupts which i have implemented till now are all hardware interrupts.I aslo want to imlement software interrupts, but i don't have exact idea where and why to use the software interrupts.Please tell me a short brief where and when to use the softwae interrupts.So that i will go ...


Software reset or alike

Started by Guillermo Prandi in LPC200013 years ago 5 replies

Hi. What would be the software sequence the most similar to a hardware reset? I am aware that certain things cannot be changed from software,...

Hi. What would be the software sequence the most similar to a hardware reset? I am aware that certain things cannot be changed from software, like the watchdog, once it is started, but perhaps there's something closer to a reset than: msr CPSR_c,#MODE_SVC|I_BIT|F_BIT b 0 This would not work if in user mode, for instance, for I cannot change CPSR from that mode, I guess. I am using LP...


Re: Watchdog in LPC2000

Started by Nagaraju in LPC200012 years ago

hi Nishant, what happens if u don't initialize watch dog? I am also facing the same problem.I am using the lpc2138. I have kept 2sec period for...

hi Nishant, what happens if u don't initialize watch dog? I am also facing the same problem.I am using the lpc2138. I have kept 2sec period for watch dog timer.The system getting reset quiet often. I am thinking that as am using two timer interrupts and one uart interrupt, it core is busy in servicing the isr's. At which colck rate you are running ur MCU. I am going to increase my clock to 50...


LPC2148 usb virtual com port

Started by Michal Krestan in LPC20009 years ago 4 replies

HI, could anybody help me with virtual com port implementation for LPC2148? I'm using usb stack from sourceforge, however it sometimes hang...

HI, could anybody help me with virtual com port implementation for LPC2148? I'm using usb stack from sourceforge, however it sometimes hang and watchdog is restarting my device. I've tried to use nxp example, but it's for keil and I need something for gcc. This example is hard to compile because it needs a lot of corrections due to complier difference with keil. Michal


Software reset advice when you cant use the watchdog

Started by Kylie in LPC200011 years ago 6 replies

Hi All, I am newbie with the finer points of LPC programming. I have been working on my first project over the last 3 months, and have come...

Hi All, I am newbie with the finer points of LPC programming. I have been working on my first project over the last 3 months, and have come across a small problem. I had been using the watch dog to hardware reset my hardware unit if something locks up, which worked perfectly in the office. However out in the field it became apparent that we have a hardware problem where when the unit rese...


The LPC2366 flash suddenly seems to be corrupted

Started by in LPC200010 years ago

Hello, I have an embedded device on a vehicle that runs continuously getting GPS d= ata and sending it to a server using a GPRS connection....

Hello, I have an embedded device on a vehicle that runs continuously getting GPS d= ata and sending it to a server using a GPRS connection. After some weeks wo= rking fine some of the devices started to fail just after initialization; t= he device application log shows the common application startup and a restar= t due to watchdog operation. The application seems to hang on an area that = ...


Some doubts with bootloader

Started by backup_f2 in LPC200012 years ago 9 replies

Hello! After reading a lot about bootloading, ISA and IAP I've got some doubts and was hoping someone could help me.... Reading...

Hello! After reading a lot about bootloading, ISA and IAP I've got some doubts and was hoping someone could help me.... Reading UM10139, the LPC214X User Manual, I understood that if there's no watchdog flag set, P0.14 is high and the user code is valid, the program's flow while continue with th usr's internal code. Any other combination will produce ISP to start. A question ...


How to do LPC2387 Stack Trace or Stack Unwinding?

Started by jhvdb in LPC20009 years ago 3 replies

I wish to use the Watchdog Interrupt to debug the last code position where the application crashed. I assume I have to do a "Stack Trace" or...

I wish to use the Watchdog Interrupt to debug the last code position where the application crashed. I assume I have to do a "Stack Trace" or "Stack Unwinding"? Can anyone please help with an implementation using WINARM for this? I tried debugged lr, pc and stepped up from the stack pointer but non of the debugs makes sense to me. I'm using the following IRQ entry code: sub lr,...


LPC2378 on Olimex board: IRQ understanding problem

Started by stefan_bluhm in LPC20008 years ago 3 replies

Dear all, I am struggling quite a bit in getting the IRQs to work. I am being a bit difficult on setting up the whole IRQ environment. FIQ as...

Dear all, I am struggling quite a bit in getting the IRQs to work. I am being a bit difficult on setting up the whole IRQ environment. FIQ as well as IRQ. I have successfully tested the software interrupt using the SWI assembler instructions. So I have no problems with that. Now this is what I am trying to do: setup he watchdog to generate an interrupt: a) FIQ and b) IRQ. I can't get ...


Keil startup sample code available

Started by dkis in LPC200015 years ago

This startup file should be used for Philips LPC900 projects. Several configuration options are included in this startup code...

This startup file should be used for Philips LPC900 projects. Several configuration options are included in this startup code that are not necessary in the standard 8051 startup file. For example: * Oscillator Configuration * Watchdog Timer Configuration * Flash Config


Re: LPC2148 - Differences between external reset and internal (watchdog) reset ?

Started by Herbert Demmel in LPC200012 years ago 2 replies

David, as far as I've seen, you can solve that problem by disabling the USB port (via diabling the pullup resistor driven byP0.31/CONNECT)...

David, as far as I've seen, you can solve that problem by disabling the USB port (via diabling the pullup resistor driven byP0.31/CONNECT) before your let the wathdog restart, wait a while and do the reboot then. I assume the disconnect time is simply too short to be recognized by the host. A different approach would be to wait some time on power up until you enable the pullup resis...


LPC1769 timer issue

Started by r_goncalves2000 in LPC20007 years ago 4 replies

Hello I'm using an LPC1769 and CMSISv2p00_LPC17xx. I use a 12MHz crystal and the CPU is running at 120MHZ. In my board I use the UART0, I2C,...

Hello I'm using an LPC1769 and CMSISv2p00_LPC17xx. I use a 12MHz crystal and the CPU is running at 120MHZ. In my board I use the UART0, I2C, watchdog, LCD, etc.. I also have timer 0 running. Sometimes after a reset it seens like the timer is running without the correct value but much more slower. Everything else seems to work ok (UART, E2PROM access, LCD, etc...) This problem seens to b...


LPC2138 Bootloader Issue

Started by tah2k in LPC200013 years ago 6 replies

Hi All- I'm currently experiencing a very frustrating issue with the LPC2138 bootloader. I can successfully and reliably use the Philips...

Hi All- I'm currently experiencing a very frustrating issue with the LPC2138 bootloader. I can successfully and reliably use the Philips flash utility to download an image to a blank LPC2138 once and only once. After that, the flash utility is never able to communicate with the LPC2138. I have been monitoring the recent bootloader thread that was resolved by manipulating the watchdog


LPC 2458 ISP Mode from User Code

Started by boru2600 in LPC20007 years ago 24 replies

Greetings, Community. I'm trying to get a LPC 2458 to drop into ISP mode after reset (I have the reset working via the watchdog). I've had a...

Greetings, Community. I'm trying to get a LPC 2458 to drop into ISP mode after reset (I have the reset working via the watchdog). I've had a look around a few forums/websites - including NXP documentation - and this group but the examples I've seen don't work for me. The information I have so far is mostly from the following links: http://www.compuphase.com/lpc2100_isp.htm http://electron...


Abort exception handler?

Started by mjames_doveridge in LPC20008 years ago 6 replies

Can anyone reccommend a simple abort exception handler - something that extracts the register state etc. and calls some character-out...

Can anyone reccommend a simple abort exception handler - something that extracts the register state etc. and calls some character-out routine? I would use it to restart/reinit the SD-card, open a file, add the debug chars on the end and then restart the main app, maybee by firing the watchdog. I guess I would have to check the file size and delete it if it got big, else a recurring problem wou...


Missing UART transmit and receive interrupts

Started by phulepriya in LPC200013 years ago 3 replies

hello all, I am using LPC2292, GCC Compiler. I am writing code which should handle nested interrupts. Watchdog is enable and default handler...

hello all, I am using LPC2292, GCC Compiler. I am writing code which should handle nested interrupts. Watchdog is enable and default handler is also written properly (all interrupts are handled over here). My problem is: After 3-4 hours sucessfull transmission and reception of frames,UART transmit interrupt is missed and unit gets hanged. I think it is the problem related to nested int


LPC2141 Idle mode power consumption

Started by georgech1 in LPC200011 years ago 1 reply

What PSU current consumption can I expect when using an LPC2141 in Idle mode with the the watchdog and Timer 0, APB peripherals enabled, when...

What PSU current consumption can I expect when using an LPC2141 in Idle mode with the the watchdog and Timer 0, APB peripherals enabled, when using a 12MHz crystal. I assume I can use the Timer 0 to exit idle mode. The Philips LPC214x data sheet is a little lacking about supply current info. ------------------------------------