EmbeddedRelated.com
The 2024 Embedded Online Conference

Interrupt not serviced when using two capture pins on the same timer on LPC2132

Started by "gab...@yahoo.it [lpc2000]" in LPC20008 years ago

Hello, I have problems on my board trying to use two capture pins on the same timer. My purpose is to use CAP0.2 (PIN0.28) and CAP0.3...

Hello, I have problems on my board trying to use two capture pins on the same timer. My purpose is to use CAP0.2 (PIN0.28) and CAP0.3 (PIN0.29) on Timer0 in order to generate two interrupt. CAP0.2 is set to generate an interrupt on a Rising Edge and CAP0.3 on a falling edge. The problem is that if I use only CAP0.3 I have the Interrupt serviced and handled correctly, If I add also CAP0.2, ...


LPC2138 /01 and Non/01 versions

Started by technicalimages in LPC200014 years ago 16 replies

The NXP site suggests that only the /01 versions of the part have Fast IO (FIO)and Fractional Baud Rate Generator(FBRG)...

The NXP site suggests that only the /01 versions of the part have Fast IO (FIO)and Fractional Baud Rate Generator(FBRG) included. http://www.nxp.com/#/pip/pip=[pip=LPC2131_32_34_36_38_4]|pp=[t=pip,i=LPC2131_32_34_36_38_4] I have a non /01 part LPC2138FBD64 - Datecode 0634 Rev C - and it does seem to have FIO and FBRG functional. Does anyone know just when the features were added to the sili...


Bootloader - main apllication shared variables

Started by John van Beurden in LPC200015 years ago 2 replies

Hi, I'm working with an LPC2131 in the Keil compiler. I've made two projects, a bootloader project and a main application. I want to make use...

Hi, I'm working with an LPC2131 in the Keil compiler. I've made two projects, a bootloader project and a main application. I want to make use of a shared variables to have the two apps communicate with each other. I'm able to create a variable on a fixed address using the following code: TE_SHARED shared __attribute__((section(".ARM.__at_0x40000000"))); So both applications read an...


Core id problem

Started by Serdar Demirdag in LPC200018 years ago 2 replies

Hi everyone, I obtain the following message when i try to download the code with J-Link; "Could not identify...

Hi everyone, I obtain the following message when i try to download the code with J-Link; "Could not identify firmware(identification string has length of 0)" or "Received 0xFFFFFFFF as core Id. No communication with core" I checked all J-Link connections and LPC pins. I use; MCU : LPC2131 Comp: IAR 4.30A I hope someone ca


LPC2131 SPI output drive and ULINK JTAG issues

Started by drb5599 in LPC200019 years ago 2 replies

Hello All, After several months of developing with the MCB2130 eval board I finally got my first prototype hardware. I am pretty excited,...

Hello All, After several months of developing with the MCB2130 eval board I finally got my first prototype hardware. I am pretty excited, but I have a couple issues. My first big issue is the SPI output signals. I am communicating with two other devices over an SPI bus where the LPC is the master. The signals coming out of the LPC are correct, e


IAR compiler and the LPC2131

Started by Lowry, Jeff in LPC200019 years ago 7 replies

Been working with LPC2138 with IAR just fine. Trying to move to smaller LPC2131. When I download the same app it won't run to main. Anybody...

Been working with LPC2138 with IAR just fine. Trying to move to smaller LPC2131. When I download the same app it won't run to main. Anybody do this yet? I think I'm looking for the equivalent LPC2138.i79 and iolpc2138.ddf (device description file) for the 2131. Anything else? Thanks, Jeff


LPC2131 samples out now, LPC2132-LPC2138 User Manual

Started by johnnorgaard2003 in LPC200019 years ago 5 replies

Hi All Just received a sample of LPC2131. Have uploaded LPC2132-LPC2138 User Manual Prelim. Have waited 3 months to...

Hi All Just received a sample of LPC2131. Have uploaded LPC2132-LPC2138 User Manual Prelim. Have waited 3 months to receive samples from ATMEL AT91SAM7S32, still no samples. Have waited 3 weeks from Philips to receive LPC2131. Philips rules, so do the


(wiggler) openocd configuration for LPC2148?

Started by ino-...@spotteswoode.dnsalias.org in LPC200018 years ago 4 replies

i recently upgraded my openocd copy to revision 86, and i know the commands and options have gotten more detailed over time. after googling...

i recently upgraded my openocd copy to revision 86, and i know the commands and options have gotten more detailed over time. after googling for "openocd lpc2000" i found a few links: http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/openocd_intro/index.html this URL is for the LPC2138 on keil LPC2130 board, though. yagarto.de provides a number of files, but they are containe...


interrupt Service Routines cannot be coded in Thumb mode

Started by klemen_dovrtel in LPC200017 years ago 4 replies

I compiled a winarm lpc2129_blinkswitch_irq example with no error. Then i copied the ISP routine to lpc2138_uart0_irq example and tried to...

I compiled a winarm lpc2129_blinkswitch_irq example with no error. Then i copied the ISP routine to lpc2138_uart0_irq example and tried to copile it, but now i get an error: "interrupt Service Routines cannot be coded in Thumb mode". What could be wrong? ISP routine: void __attribute__ ((interrupt("IRQ"))) tc0_cmp(void); void tc0_cmp(void) { // do something } The makefile thumb opt...


LPC2129 - Setting CAN Baud rate & Getting Errors

Started by "sie...@gmail.com [lpc2000]" in LPC200010 years ago 4 replies

Hi, I'm trying to use CAN with some less-common baud rates but I'm not sure if my calculations are right. Crystal is 12MHz, using a 5x...

Hi, I'm trying to use CAN with some less-common baud rates but I'm not sure if my calculations are right. Crystal is 12MHz, using a 5x multiplier for a frequency of 60MHz. VPB divider is 1, so peripherals run at 60MHz. I've tested 500kbps and 250kbps, but would like to add 33kbps, 95kbps and 125kbps. I tried setting these rates but it keeps throwing errors onto the network. Good: 250 kb...


LPC2129 PWM Modified rate not working properly

Started by "ana...@yahoo.com [lpc2000]" in LPC200010 years ago 6 replies

Hi all I am working on single edge PWM generation on LPC 2129 .The summary o my work is as below 1)I am able to see PWM output on Pin 33(PWM...

Hi all I am working on single edge PWM generation on LPC 2129 .The summary o my work is as below 1)I am able to see PWM output on Pin 33(PWM 4).it is as per my clock settings.No problem still here. 2)In the PWM ISR,I am setting 2 flags and in the main loop of the code ,and based on these flag values I am dynamically changing PWM4 rate by changing PWMMR0 ;PWMMR4 PWMLER registers. 3)These above ...


LPC2129 - Flash as EEPROM, garbage output

Started by sieg...@gmail.com in LPC200010 years ago

I'm creating a data logger using the LPC2129 and need to store configuration data, even when my SD card might become corrupted. I'm trying to...

I'm creating a data logger using the LPC2129 and need to store configuration data, even when my SD card might become corrupted. I'm trying to use code from AN11008, using FLASH as EEPROM, modified to store a single, short text file. I think my read functions work properly, but writing to EEPROM seems to fail. I'm having trouble wrapping my head around all of this, so I would really appreciate a...


Implementation of Ethernet and USB using LPC1768

Started by "ani...@ymail.com" in LPC200011 years ago 4 replies

Hi to all, i am new to LPC1768, but i have worked on LPC2129. i want to implement Ethernet and USB protocols using the LPC1768. please...

Hi to all, i am new to LPC1768, but i have worked on LPC2129. i want to implement Ethernet and USB protocols using the LPC1768. please share information on Ethernet, USB and LPC1768. like links and some books regards anil ------------------------------------


LPC2129 - CAN receive interrupt issue

Started by suse auto in LPC200011 years ago 6 replies

Hello Group, I am using a development board with LPC2129. I downloaded the sample code i.e BlinkyCAN which came along with Kiel and Jlink...

Hello Group, I am using a development board with LPC2129. I downloaded the sample code i.e BlinkyCAN which came along with Kiel and Jlink package. The sample code is able to send and receive the CAN messages. However, if I put the breakpoint in Receive interrupt, the break point is never hit. May I know the reason? Can I any give me a sample code which has got simple CAN receive interrupt ...


LPC2129 - reading/writing char array to flash

Started by lawzaz in LPC200011 years ago 1 reply

I have appnote 11008 open right now and this seems like overkill for what I want (and I'm confused as to how I would extend for char arrays). I...

I have appnote 11008 open right now and this seems like overkill for what I want (and I'm confused as to how I would extend for char arrays). I have a board that reads a configuration file from an SD memory card. Sometimes, that card is unreadable and a value is needed regardless. The boards are tuned for different devices, so a single default will not work. Since I have tons of flash memory...


GCC/gnude can't use libc.a?

Started by Mike Pijl in LPC200011 years ago 13 replies

I can't quite believe i'm having this problem! i'm a professional software/hardware developer but not in the GCC/Arm world. I'm a real newbie...

I can't quite believe i'm having this problem! i'm a professional software/hardware developer but not in the GCC/Arm world. I'm a real newbie in GCC but have C experience on other platforms. I'm so stuck...but I suspect it must be something very simple. I have a very basic GCC program that can't access any of the standard functions. I'm targeting a philips LPC2129 ARM7 processor. I ri...


LPC2129 (SW)-CANBus Error troubleshooting: RX Passive Error, REC = 128

Started by lawzaz in LPC200011 years ago 10 replies

Hi fellow forum-goers, I'm trying to add a general-purpose CAN to UART function to an LPC2129 setup. CAN1 works at 250 and 500kbps, so I...

Hi fellow forum-goers, I'm trying to add a general-purpose CAN to UART function to an LPC2129 setup. CAN1 works at 250 and 500kbps, so I modified my code to add CAN2 but am experiencing difficulty. I'm hoping one of you gurus is willing to look over my configuration. CAN2 is supposed to be "scalable" to any of several baud rates, but I am testing on 33.3kbps on a SINGLE WIRE networ


lpc2129 CAN problem

Started by Rahul Bhatt in LPC200011 years ago 2 replies

hi following is my CAN transmitter code of lpc2129 void Can_Init_tx(void) { PINSEL1 |= (DWORD) 0x00014000; C2MOD = 1; C2GSR = 0; C2BTR...

hi following is my CAN transmitter code of lpc2129 void Can_Init_tx(void) { PINSEL1 |= (DWORD) 0x00014000; C2MOD = 1; C2GSR = 0; C2BTR = 0x00CBC01E; //baud rate 0f 125k C2TFI1 |= 0x80000000; C2MOD = 0; } void SendMessage(unsigned int x) { unsigned int status; while((C2SR & 0x00000004)==0); C2TFI1 = 0x00080000; //set DLC to 8 bytes; C2TID1 = 0x00000022; //sets 29 bit i...


How to make efficient RX ISR usage on FreeRTOS

Started by skiddybird in LPC200011 years ago 15 replies

Hi, Can anyone tell me how to write an UART RX ISR in order to receive several kinds of packets with different length? The kernel is FreeRTOS. I...

Hi, Can anyone tell me how to write an UART RX ISR in order to receive several kinds of packets with different length? The kernel is FreeRTOS. I have excerpted one piece of sample code snippet from one of the FreeRTOS demo port for LPC2129, as bellow. [code] __arm void vSerialISR(void){ signed char cChar; portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE; switch(U0IIR & serIN


requesting for a code for lpc2129 Can.

Started by akram akku in LPC200011 years ago 5 replies

Hi, I need code for LPC2129 Can to communicate between three boards with each tx and rx any 5 messages.. please help me...

Hi, I need code for LPC2129 Can to communicate between three boards with each tx and rx any 5 messages.. please help me out. regards Akram. ------------------------------------



The 2024 Embedded Online Conference