EmbeddedRelated.com

LPC2129 watchdog reset

Started by "t.herbi" in LPC200018 years ago 4 replies

Hello, im designing a project with the lpc2129 and need to reset the controller by software after i have received a command over uart. To...

Hello, im designing a project with the lpc2129 and need to reset the controller by software after i have received a command over uart. To realice this i set and start the watchdog and wait till the wd period is over. But after the reset occoured the uC doesn't come back to live. When i'm debugging this problem i see that the boot vector at adress 0x00 is overwritten with 0xFF. But that ...


LPC2103 watchdog issues

Started by Langosta39 in LPC200018 years ago 3 replies

I'm having trouble hitting the watchdog on the 2103. It works just fine without IRQs, but after I enable interrupts I can no longer feed it. ...

I'm having trouble hitting the watchdog on the 2103. It works just fine without IRQs, but after I enable interrupts I can no longer feed it. I am disabling interrupts around the feed so it is atomic, and I know the feed works becasue I call the same code in the init function. I've tried using the standard __enable_interrupt __disable_interrupt functions in IAR and I've tried directly ...


External watchdog and flash loader

Started by lhaddix in LPC200019 years ago 18 replies

Hi, I'm working on an LPC2138 design and just moved into ESD testing. After some ESD hits there was no damage, but the processor would be...

Hi, I'm working on an LPC2138 design and just moved into ESD testing. After some ESD hits there was no damage, but the processor would be left not running. Implementing the internal watchdog didn't fix this. Apparently there are ways to nail a 2138 with ESD that must stop the processor clock and thus also prevent the internal watc


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

Started by Davi...@epoint.ltd.uk in LPC200017 years ago 2 replies

Does anyone have any information or experience of the above ? I'm using Keil RealView on a custom LPC214x board. I've noticed that,...

Does anyone have any information or experience of the above ? I'm using Keil RealView on a custom LPC214x board. I've noticed that, following a watchdog reset, the USB doesn't always appear to come up properly, whereas following an external reset it consistently does. Using the (somewhat modified) sample USB HID project, about 50% of the time the USB interface comes up and Windows starts...


WDT - interrupt problem

Started by klemen_dovrtel in LPC200017 years ago 9 replies

I am testing the WDT. I tred this (code below). Watchdog triggers IRQ interrupt, but after that, the program is just spinning in ISR. Any idea...

I am testing the WDT. I tred this (code below). Watchdog triggers IRQ interrupt, but after that, the program is just spinning in ISR. Any idea why - i cleared the interrupt flags? I also tred to feed the watchdog inside ISR, but no help. void WDT_interrupt( void ) { ISR_ENTRY(); /* blink led */ VICVectAddr = 0x00000000; // clear this interrupt from the VIC WDMOD &...


Re: Watchdog in LPC2000

Started by Nagaraju in LPC200016 years ago

Thanks Mr.Nishant and Mr.Derbaier, I understood your reply, but when I have feeded the watch dog in master while loop by disabling the...

Thanks Mr.Nishant and Mr.Derbaier, I understood your reply, but when I have feeded the watch dog in master while loop by disabling the all interrupts which i am using in the following manner my system get initialized and once after the initialization of INIT_WatchDog(), Display is not changing which depends on the timer interrupt, communication is working which is interrupt based.I h...


Search for part -- replacement for LPC11C24

Started by skiddybird in LPC200012 years ago 14 replies

hi, everyone, Is there a kind of MCU that includes at least one on-chip CAN transceiver(like LPC11c24), plus the following features? 32-bit...

hi, everyone, Is there a kind of MCU that includes at least one on-chip CAN transceiver(like LPC11c24), plus the following features? 32-bit ARM7 architecture, 128K flash, 16k SRAM, two SPI interfaces, RTC, UART, IAP, watchdog. It would be best if it contains one ethernet port, and be able to run uclinux. ------------------------------------


Using Watchdog with LPC2148

Started by Sutton Mehaffey in LPC200011 years ago 3 replies

I am using the WDT with our security system. Since you can not turn off the WDT once started until it expires, I have two instances where that...

I am using the WDT with our security system. Since you can not turn off the WDT once started until it expires, I have two instances where that it is an issue. #2 more so than #1. 1. When I turn the unit off (keyswitch), I go to Power Down mode where a software reset (caused by a Key ON) is the only source of a wakeup. I noticed that the WDT is not disabled, but does not cause a wake...


ISP access after watchdog timeout

Started by afolly_mil2 in LPC200014 years ago 4 replies

Hello, I have wondered whether it is : * a bug, * a feature, or * incompetence in my reading of the manual that is the cause of my...

Hello, I have wondered whether it is : * a bug, * a feature, or * incompetence in my reading of the manual that is the cause of my odd observations.... The picture: I have a custom LPC1765 board which runs lots of stuff successfully. (A cr_startup_lpc17.c file from Code Red Tech is used). I have a jumper on pin 2.10 so that I can program it using its ISP feature. It works. ...


Software reset or alike

Started by Guillermo Prandi in LPC200018 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...


LPC2148 usb virtual com port

Started by Michal Krestan in LPC200014 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


How to do LPC2387 Stack Trace or Stack Unwinding?

Started by jhvdb in LPC200014 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 LPC200012 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 ...


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

Started by Herbert Demmel in LPC200017 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 LPC200012 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 LPC200018 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 LPC200011 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...


DMA->SSP/SPI Mystery on LPC2468

Started by markcrow in LPC200017 years ago 7 replies

Using the sample code (from code.lpc23xx.lpc24xx.peripherals.usvision) I got GP DMA to drive the SSP1 port (in SPI mode) on a LPC2368. I...

Using the sample code (from code.lpc23xx.lpc24xx.peripherals.usvision) I got GP DMA to drive the SSP1 port (in SPI mode) on a LPC2368. I ported that code over to a LPC2468 and now it won't work (using SSP0 this time and also in SPI mode). I get a watchdog reset when I set the Channel Enable bit in the Channel 0 configuration register. I have meticulously checked every setting and ever...


New to LPC2129 (coming from PIC) - Attempting to enter ISP mode from user code

Started by tc_lawabider in LPC200012 years ago 9 replies

Hi, I've recently inherited a project running an LPC2129 and FreeRTOS 6.1.1, and I've not got much background with this type of chip. I'm...

Hi, I've recently inherited a project running an LPC2129 and FreeRTOS 6.1.1, and I've not got much background with this type of chip. I'm trying to enter ISP mode from user code, using AN10356 and the help of one website which suggested I use a watchdog timer to ensure I can exit after the code upgrade has been performed. My code, unfortunately, does not seem to enter bootloader mode. If ...


gnu arm - lpc register definitions

Started by klemen_dovrtel in LPC200017 years ago 11 replies

I have a question about register definitions (in WinARM). I read in user manual that WD for instance has four registers: 0xE000 0000 0xE000...

I have a question about register definitions (in WinARM). I read in user manual that WD for instance has four registers: 0xE000 0000 0xE000 0004 0xE000 0008 0xE000 000C Shouldn't be there another REG_8 _pad0[3]; after the REG_8 feed;, because now WDTV is pointing at wrong adress (it is pointing at 0x0xE000 0009 right?)? // lpcWD.h // Watchdog Registers typedef struct { REG_8 mod;...