EmbeddedRelated.com

LPC2138 UART1 problem

Started by wirelessisgood in LPC200018 years ago 5 replies

Has anyone come across this problem? UART0 and UART1 are set up identically. 115Kbaud, 8,N,1. No modem features. Both works, but after about...

Has anyone come across this problem? UART0 and UART1 are set up identically. 115Kbaud, 8,N,1. No modem features. Both works, but after about 1 hour, UART1 stops receiving. UART1 still transmits properly. Resetting IC does not get UART1 to work again. Power Cycling does not get UART1 to work again. Replacing the IC, however, does get UART1 to work again, but only for a brief time. Th...


External watchdog and flash loader

Started by lhaddix in LPC200018 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


FREERTOS problem on gcc and LPC2138

Started by rseku in LPC200018 years ago 21 replies

I found, that asm instructions in freertos are not compiled as exactly as should be. As a result of execution of below code I get data_abort...

I found, that asm instructions in freertos are not compiled as exactly as should be. As a result of execution of below code I get data_abort exception First I noticed LDMIA and LDMF difference. this is RTOS code: #define portRESTORE_CONTEXT() \ { extern volatile void * volatile pxCurrentTCB;\ extern volatile unsigned portLONG ulCritic


undefined instruction exception caused by lsl instruction

Started by Kosta Kliakhandler in LPC200016 years ago 1 reply

Hi, I am developing code for an lpc2138 (currently using an olimex dev board). Right now I'm using gcc-4.2.4 and newlib-1.16 with -O1...

Hi, I am developing code for an lpc2138 (currently using an olimex dev board). Right now I'm using gcc-4.2.4 and newlib-1.16 with -O1 (-OO makes assembly which is hard to debug and some instructions seem to be executed incorrectly) I need to use sprintf to format floating point values for sending via uart, and the line in C produces an undefined instruction exception. Investigating furt...


LPC2138 Timer

Started by tah2k in LPC200018 years ago 1 reply

Hi Everyone- I'm having a very strange problem with my timers and I suspect its just a bit-twiddling setup issue. I've implemented the MODBUS...

Hi Everyone- I'm having a very strange problem with my timers and I suspect its just a bit-twiddling setup issue. I've implemented the MODBUS RTU serial protocol which terminates a message when an idle time 3.5 character times is detected. So, I initialize my match register at 0x5573 (3.5 character times at my clock speed) and interrupt upon match. While receiving characters, I simply


ARM7 vs ARM9 versus Cortex... LPC2939, obsolesence, etc.

Started by some one in LPC200012 years ago 21 replies

I did a project 4 years ago using an LPC2138, which is an ARM7 device. It has served us very well. I am starting a new project. The...

I did a project 4 years ago using an LPC2138, which is an ARM7 device. It has served us very well. I am starting a new project. The application is machine control. Lots of I/O, real time processing, CAN, USB connectivity, etc. I would like to use the LPC2939, which is an ARM968E-S device. However, for a variety of reasons, I am wondering what the life span of that device might be and ...


Uart receive timeout Interrupt?

Started by Peter Homann in LPC200018 years ago 22 replies

Hi, I am migrating a serial communications interface (Modbus) to a LPC2138 processor. The Modbus spec defines that an end of message...

Hi, I am migrating a serial communications interface (Modbus) to a LPC2138 processor. The Modbus spec defines that an end of message has occurred when a period equal to 3.5 characters has passed since the last character has been received. The LPC uart can generate an interrupt if the receive buffer has characters in it and no charac


Porting an RTOS to Keil MCB 2130

Started by Joe Bungo in LPC200018 years ago 10 replies

Hello, I am a beginner to porting OS'. I want to port an RTOS to a Keil MCB2130 evaluation board, based on Philips LPC2138 (512 KB Flash,...

Hello, I am a beginner to porting OS'. I want to port an RTOS to a Keil MCB2130 evaluation board, based on Philips LPC2138 (512 KB Flash, 32 KB RAM) for academic purposes. I am looking at either uClinux or eCOS (or a better recommendation). Which do you think would be a more feasible task? I briefly took a look at the eCOS website, and saw that there might be an already existing port ...


SPI, SSP Specification Differences

Started by tmasyl in LPC200016 years ago

Greetings: I find the LPC2138 User Guide rather vague for the SPI, SSP peripherals. I wonder if there is additional support...

Greetings: I find the LPC2138 User Guide rather vague for the SPI, SSP peripherals. I wonder if there is additional support information for these peripherals that I don't have? The following questions come to mind: 1) It appears the SSP offers higher performance than the SPI in that the SSP clock divider can be set at minimum of 2 compared to 8 for the SPI. In the case of a ...


SPI Slave / SSEL0 using as GPIO ?

Started by Herbert Demmel in LPC200018 years ago 6 replies

Hi all, I plan to use the LPC2138 or LPC2148 SPI (SCK0, MISO0, MOSI0) as a SPI slave only device. Is it possible to use SSEL0 for any other...

Hi all, I plan to use the LPC2138 or LPC2148 SPI (SCK0, MISO0, MOSI0) as a SPI slave only device. Is it possible to use SSEL0 for any other function (e.g. PWM2) then or must SSEL0 tied to ground in any case when using the LPC as slave only device? Regards Herbert


iolpc2138.h file

Started by Edriano in LPC200017 years ago 2 replies

Hello, I am starting a project with lpc2138 and IAR compiler and i would like to ask if anyone has a iolpc2138.h file, the file provided by IAR...

Hello, I am starting a project with lpc2138 and IAR compiler and i would like to ask if anyone has a iolpc2138.h file, the file provided by IAR compiler does not have Fast IO definition and i am not knowledge enough to make it. don't know how to tell the compiler if a register is 8 16 or 32bits. Edriano Carlos de Ara?jo STP Tecnologia ind.e com. Ltda Al Juari, 447 - Centro Empresarial Tamb...


h-jtag

Started by klemen_dovrtel in LPC200017 years ago 10 replies

I installed h-jtag and i made a wiggler jtag dongle ( http://shrani.si/files/wiggler1107820.pdf - also found on h-jtag web site). I tried to...

I installed h-jtag and i made a wiggler jtag dongle ( http://shrani.si/files/wiggler1107820.pdf - also found on h-jtag web site). I tried to connect my lpc2138, and it doesn't work. I get "Error: Please make shure that the hardware is properly connected and powered up." But it was powerd up and connected properly (i think so). I also checked some other wiggler j-tah schematics...some of t...


lpc2103 & rowley crossworks 1.6

Started by bkaan_ugur in LPC200017 years ago 7 replies

Hello, I am trying to debug some pice of code using Rowley crossworks and 2103.Olimex Wiggler is used.flash Debug built configuration is...

Hello, I am trying to debug some pice of code using Rowley crossworks and 2103.Olimex Wiggler is used.flash Debug built configuration is used.But always getting messages below.Flash cannot be programmed.I have Keil Demo board with LPC2138.It is working proper with same configuration. Does someone have comments about it? Regards Bilge Executing reset script FLASHReset() Loading targe...


Re: LPC2378 reset pin problem

Started by misi...@gmail.com in LPC200012 years ago 4 replies

Hi Vinaya, Did you solve this problem with low level on reset pin ? I'm having the same issue with lpc2138 chip right...

Hi Vinaya, Did you solve this problem with low level on reset pin ? I'm having the same issue with lpc2138 chip right now. Regards, Darek Hi all, > We have developed a LPC2378 board.One board is fully working with all possible interfaces (SPI,UART,Ethernet etc) and i was using the JTAG emulator to load / debug the software. I want to test the ISP feature , so i have taken up another bo


Interrupt problem with LPC2138

Started by bmueller38 in LPC200018 years ago 1 reply

Hi everybody, I am trying to use Timer0 Interrupts, but it doesn't really work and I have no idea why. The first thing that I don't...

Hi everybody, I am trying to use Timer0 Interrupts, but it doesn't really work and I have no idea why. The first thing that I don't understand is that the board behaves differently after "hard reset" (power off - power on) and when I let it run in my debugger. In the first case, interrupt seemed to work while in the second case they did not. I don't know how, but I got this problem f...


ARM-JTAG (Wiggler compatible)

Started by Isamoung in LPC200018 years ago 11 replies

Hi there, I was used in using Olimex ARM-JTAG (Wiggler) on my laptop. I now got a new laptop with no parallel port only usb. Are...

Hi there, I was used in using Olimex ARM-JTAG (Wiggler) on my laptop. I now got a new laptop with no parallel port only usb. Are there any solutions to have a "lowcost" to programm LPC2138 chip. is it better to use usb equipment , and what is availible ? regards, gerrit


Flash write errors

Started by Guillermo Prandi in LPC200018 years ago 9 replies

Hi. Are Flash write errors normal, i.e. a known issue? When programming my LPC2138 using the isp21lpc utility, every now and then I get a...

Hi. Are Flash write errors normal, i.e. a known issue? When programming my LPC2138 using the isp21lpc utility, every now and then I get a write error; a second attempt always succeed. This happens roughly once every 100 programming attempts. I thought it could have been a problem with my serial cable or some other hardware problem, but now I added an IAP function to my test program and


LPC2138 ADC Question

Started by fitzdean in LPC200016 years ago 9 replies

We are having strange behavior with our ADC code. In many of the examples I have seen in this forum, there seems to be a strong trend toward the...

We are having strange behavior with our ADC code. In many of the examples I have seen in this forum, there seems to be a strong trend toward the following sequence of events: *PCONP and PINSELx properly set up *ADC control register written to with everything set up but conversion not started *Start conversion bit or'd into the control register. *Wait for DONE *When DONE received, cle...


LPC21xx+FAT32+MicroSDHC

Started by amit_nahar_79 in LPC200014 years ago 1 reply

Anybody implemented FAT32 for 4GB microSDHC card on LPC2138/LPC2148? Does EFSL support 4GB SDHC card? I tested efsl with 4gb card & it is...

Anybody implemented FAT32 for 4GB microSDHC card on LPC2138/LPC2148? Does EFSL support 4GB SDHC card? I tested efsl with 4gb card & it is showing unknown error 0xff (see SanDisk docs p5-13). What is the reason? ------------------------------------


Using C++ on LPC3128

Started by soren_t_hansen in LPC200019 years ago 6 replies

I'm trying to use C++ to write a program to a LPC2138, and so far it was working ok. But when trying to make a virtual function the linker...

I'm trying to use C++ to write a program to a LPC2138, and so far it was working ok. But when trying to make a virtual function the linker reports the following error: /src/Blinky.o(.gnu.linkonce.r._ZTI11CLEDControl+0x0): undefined reference to `vtable for __cxxabiv1::__class_type_info' /src/Blinky.o(.gnu.linkonce.r._ZTI7CBlinky+0x0): undefined refe