problem in external interrupt handling in ARM LPC2138

Started by abhay in comp.arch.embedded13 years ago 3 replies

hiiii i am using ARM LPC2138 for my application.For one of my devices i am using its external interrupt pin .i am compliling my code in...

hiiii i am using ARM LPC2138 for my application.For one of my devices i am using its external interrupt pin .i am compliling my code in ARM mode.i am able to compile my code in KEIL as well as GCC without any warning.i am printing some values in my ISR routine. the problem is: After executing the isr the system halts. Please suggest what could be the problem. i am initialising my ext...


Uncertain behaviour in ARM microcontroller on reset

Started by abhay in comp.arch.embedded13 years ago 3 replies

hiiiiiiiii, i am interfacing LCD to my ARM microcontroller (PHILIPS LPC2138).i am able to program the LCD ,but it is uncertain. the problem...

hiiiiiiiii, i am interfacing LCD to my ARM microcontroller (PHILIPS LPC2138).i am able to program the LCD ,but it is uncertain. the problem is that when i reset my microcontroller or my development board the LCD is programmed and it displays the messages sent to it but when i reset it again it goes blank and after another reset it works fine again. so LCD gets programmed alternately. ...


lpc2138 taking commands merely as a suggestion?

Started by kosta in comp.arch.embedded13 years ago 3 replies

Im working on an embedded project and I'm currently using an Olimex P- Lpc2138 board. After having the device misbehave badly, I decided to...

Im working on an embedded project and I'm currently using an Olimex P- Lpc2138 board. After having the device misbehave badly, I decided to try something simpler - to control the leds on the development board. After seeing what happened, I realized that something is very wrong. Even very simple code which just turns on and off the leds repetitively, doesn't work correctly - sometimes t...


LPC2138 and linker script

Started by Stan in comp.arch.embedded12 years ago 4 replies

Hi, I want to initialize global variables from ROM, my crt0.s is same as : [...] start: _start: /* select user mode */ mrs r0,...

Hi, I want to initialize global variables from ROM, my crt0.s is same as : [...] start: _start: /* select user mode */ mrs r0, cpsr bic r0, r0, #0x1F /* clear mode flags */ orr r0, r0, #0x10 /* set user mode */ msr cpsr, r0 /* init stack */ ldr sp,_Lstack_end /* copy data */ _Lcopy_data: ldr r0, _Linit_data_start ldr r1, _Ldata_start ldr r2, _Ld...


LPC2138 AD converters

Started by Frank van Eijkelenburg in comp.arch.embedded12 years ago 2 replies

Hi, I am using a LPC2138 in my project. From this microcontroller I use both AD converters. The problem I have: channel 6 and 7 from AD0...

Hi, I am using a LPC2138 in my project. From this microcontroller I use both AD converters. The problem I have: channel 6 and 7 from AD0 are not working (I read the value 0 from the ADC). Other channels (0 to 4 of AD0) are working properly. Also AD1 is working properly. I checked the PINSEL registers and these are correct. What could cause the problem? Any ideas TIA, Frank


LPC2138 I2C

Started by Frank van Eijkelenburg in comp.arch.embedded12 years ago 3 replies

Hi, I am still using the LPC2138 ;). Now I have a problem with I2C. When I try to send some bytes to an EEPROM device, the following...

Hi, I am still using the LPC2138 ;). Now I have a problem with I2C. When I try to send some bytes to an EEPROM device, the following happens: - I2C start condition is made - interrupt is generated - I2C address is sent - EEPROM device gives an ACK And now nothing happens. If I look at the I2C bus state, the microcontroller accepted the ACK. However, no new interrupt is given due to ...


LPC2138 Flash Write Problem

Started by bm_seo in comp.arch.embedded12 years ago 2 replies

(Apologies if posted twice, couldn't find message) I am trying to get Flash write working on LPC2138 with no sucess. Code is below. Any help...

(Apologies if posted twice, couldn't find message) I am trying to get Flash write working on LPC2138 with no sucess. Code is below. Any help appriciated. typedef void (*IAP)(unsigned int [],unsigned int []); IAP iap_bypointer; void iap_byfunction (unsigned *cmd,unsigned *rslt,unsigned entry); unsigned int command[5]; unsigned int result[5]; char Ram_Arry[512] = "Hello World"; char *...


USB Host Implementation via device hardware

Started by sau_sol in comp.arch.embedded10 years ago 8 replies

Hi all I am currently using LPC2138 for my designs. now I got a similar controller LPC2141 with the additional feature of USB device...

Hi all I am currently using LPC2138 for my designs. now I got a similar controller LPC2141 with the additional feature of USB device controller. Now I want to know is there any way to implement a USB Host firmware by using a USB device hardware. If yes please let me know the method. I want to interface a USB based CDMA modem with the controller, so can I interface the modem with a USB...


Redboot and eCos

Started by vever in comp.arch.embedded9 years ago 4 replies

Hello. I would program an AMR7 LPC2138 with eCos and redboot. But there is not enough RAM to load the program on it. (with a...

Hello. I would program an AMR7 LPC2138 with eCos and redboot. But there is not enough RAM to load the program on it. (with a load command). I wonder if you know if I can directly load my program into flash and start it by redboot from flash. Or if I can load redboot and my program together into flash and make redboot to start the program alone. Thank you very much! Vever ...


I2C code not working for LPC2138

Started by Anonymous in comp.arch.embedded8 years ago

Hi all, I wrote a code to read temperature from an temperature sensor through i2c, but, it is not passing even the start condition and...

Hi all, I wrote a code to read temperature from an temperature sensor through i2c, but, it is not passing even the start condition and becoming infinite loop in the while(I2C1STAT != 0x08); Please review my code & specify if i missed any thing. find the code below. #include #include void mmc_i2c_init() { put_ch('1'); PINSEL0 |


Does ARMs support bytes?

Started by Elder Costa in comp.arch.embedded15 years ago 29 replies

Hi. A question somewhat (or rather) silly: can I manipulate individual bytes with an ARM processor? (LPC213x to be more specific) In other...

Hi. A question somewhat (or rather) silly: can I manipulate individual bytes with an ARM processor? (LPC213x to be more specific) In other words, will the statement: char buffer[16]; occupy 16 8 bit bytes or 16 32 bit words? TIA. Elder.


LPC213x IDE

Started by Anders in comp.arch.embedded14 years ago 15 replies

Friends, For a current LPC213x project we purchased the IAR Embedded Workbench development kit (about $4k if I remember right) with a J-link...

Friends, For a current LPC213x project we purchased the IAR Embedded Workbench development kit (about $4k if I remember right) with a J-link USB-> JTAG. It's "ok", but it doesn't give me that warm and fuzzy feeling of complete trust. The UI behaves funky (resizing toolboxes by itself, suddenly refusing to set breakpoints, etc.), the compiler seems to be a bit buggy sometimes, and the C libr


Maybe OT - ARM software development: Eclipse often hangs

Started by Tilmann Reh in comp.arch.embedded13 years ago

Hello all, I am using the YAGARTO toolchain (Eclipse, GNUARM, OpenOCD) for developing the software for a current LPC213x project (OS: Win XP...

Hello all, I am using the YAGARTO toolchain (Eclipse, GNUARM, OpenOCD) for developing the software for a current LPC213x project (OS: Win XP pro). From time to time, the Eclipse IDE suddenly hangs. This happens when trying to save after some changes have been made to a source file, or when entering debug mode, or at some other circumstances. It does not generally fail, and when I restart...


LPC2148 interface problem with MC35i

Started by bhimanipankaj in comp.arch.embedded14 years ago 8 replies

Dear frends, I have MCB2140 board from KEIL and I want to connect Siemens MC35i GSM modem with the same on COM1 of lpc2148. The port given...

Dear frends, I have MCB2140 board from KEIL and I want to connect Siemens MC35i GSM modem with the same on COM1 of lpc2148. The port given on board is not fully connected as there are only two wires connected Tx and Rx. I want to make a data call to another PC and the at command is ATD Problem is if i m transmitting this at command or say any data from board to PC using seria


RTOS on ARM7

Started by bhimanipankaj in comp.arch.embedded14 years ago 4 replies

Dear Friends, I am very new to ARM family and right now working with lpc2214 and lpc2148 and EP9302 from cirrus logic. I can do basic...

Dear Friends, I am very new to ARM family and right now working with lpc2214 and lpc2148 and EP9302 from cirrus logic. I can do basic implementation and interfaces with them as I worked with 8051 long time. Now I want to do something with real time OS. I want to load Windows CE on ARM. I have never did this kind of work. So, can anybody tell me from where to start and from where I can get...


Trouble to start with ARM LPC2148. Dev Environement issu

Started by Anonymous in comp.arch.embedded14 years ago 7 replies

Hello all, I started recently to learn MCU world and I have dealed with 8-bits PIC16F684 & HCS08 MCUs and it was exiting & very helpful...

Hello all, I started recently to learn MCU world and I have dealed with 8-bits PIC16F684 & HCS08 MCUs and it was exiting & very helpful experience. Now I want to move on to 16/32 bits witch ARM. I bought a wonderful Dev board with Philips LCP2148, "Embedded Artists", but now I am VERY STUCK witch DEV ENVironment: witch one to use to develop and program my board?. With the board I got many ...


Porting Linux

Started by tech...@gmail.com in comp.arch.embedded13 years ago 3 replies

Hi I have a real fundamental question.. Hoping someone point me to some plausible answers. 1. What is meant by porting of a Operating...

Hi I have a real fundamental question.. Hoping someone point me to some plausible answers. 1. What is meant by porting of a Operating System??? 2. What does say porting uCLinux onto LPC2148 do to the board.. in the sense that, how does it change its functionality?? thanks heaps techie.


novice - embedded linux

Started by ven2007 in comp.arch.embedded12 years ago 3 replies

hi I am new to embedded linux but not new to embedded systems. I have an dev board ( LPC2148 - ARM7TDMI) at hand I would like to know where...

hi I am new to embedded linux but not new to embedded systems. I have an dev board ( LPC2148 - ARM7TDMI) at hand I would like to know where to get started to start working with embedded linux? Do I need to know about linux device drivers to proceed ? Any guidance is appreciated thanks in advance


USB - Bulk Transfer speed up

Started by edurohr in comp.arch.embedded12 years ago 4 replies

Hi all, I'm using a LPC2148 device with built-in USB (Full Speed) device controller. I can sucessfully make Bulk transfers at every 1ms, but...

Hi all, I'm using a LPC2148 device with built-in USB (Full Speed) device controller. I can sucessfully make Bulk transfers at every 1ms, but cannot do it faster. Since my endpoint is limitted to 64 bytes, I can't reach transfer rates above 64Kbytes/s, even using a full speed device. How could I increase this rate, once it could be close to 12Mbits/sec (theoricaly)? All sugestions are welc...


How to link embedded code against existing routines in flash

Started by emeb in comp.arch.embedded11 years ago 3 replies

I'm using arm-elf-gcc to write embedded code targeting the NXP LPC2148. My application code will be loaded from an SD card into the MCU flash...

I'm using arm-elf-gcc to write embedded code targeting the NXP LPC2148. My application code will be loaded from an SD card into the MCU flash and run by an existing bootloader described in more detail here: http://www.sparkfun.com/commerce/tutorial_info.php?tutorials_id=94 This bootloader contains a number of utility / library routines that I'd like to be able to use from my own applicat...