Forums Search for: LPC21xx
Code read protection LPC2132
inHello, actually I'm working with the LPC2132 uC and with the development software uvision3 from Keil. I'd like to protect my source code by...
Hello, actually I'm working with the LPC2132 uC and with the development software uvision3 from Keil. I'd like to protect my source code by enabling the code read protection. Through the datasheet I know that I have to write the constant 0x87654321 to adress 0x1FC. When I look into the Flash after programming the uC(Code read protection isn't enabled yet) I can see that at the adress ...
LPC2132 not starting up. Always in ISP.
inHi, First unit to be repaired of a new design has been sent to me. As It's the first one, I'm more interesting in identifying what happened...
Hi, First unit to be repaired of a new design has been sent to me. As It's the first one, I'm more interesting in identifying what happened than in repairing it, in order to know if it's necessary to change something in HW or SW for future supplies or if it's ok as it is and it's just a common reparation. LPC2132 in the not working board is not starting up. If I debug using JTAG I can see th...
LPC2132 Power Down Current Too High
inI've got a LiIon barrery design with an LPC2132, and when I put it into power down the supply current stays up around 700uA. That seems way...
I've got a LiIon barrery design with an LPC2132, and when I put it into power down the supply current stays up around 700uA. That seems way too high. I am running it on 3.3V and I have switched basically all of the pins to Input so that non are driving pull up/dn resistors during powerdown. I even shut off the JTAG and UART so there was no current being put out to anywhere else. I ...
changing PLL multiplier on fly - PLLCFG (MSEL)
inI need LPC2132 to run @32MHz for 2mSec (my time measurement periode) and then drop speed to 4MHz for 100mSec. This cycle continues forever. ...
I need LPC2132 to run @32MHz for 2mSec (my time measurement periode) and then drop speed to 4MHz for 100mSec. This cycle continues forever. Is it possible to change MSEL while running? I am afraid of Capture range, Locking range and stabilizing period etc. Anybody experianced with this? Vimal Amin
UART0, TC0, PWM & ADC at once on LPC2132
inHi there Im making a system where I'm using all the above mentioned interrupts. I have had the TC0, PWM and the ADC running nicely until...
Hi there Im making a system where I'm using all the above mentioned interrupts. I have had the TC0, PWM and the ADC running nicely until now, but when I add the UART0 the TC0 goes dead (it's running a 1 Khz clock) I want the UART0 to give me interrupts when it receives a byte and only when that occours. When I send data I don't want to receive any
Flash Utility ISP on LPC2138
inHi I have a board with LPC2132 MCU . ISP Version 2.2.2. works fine at all speeds . When I switch on the same board to LPC2138 ( same ...
Hi I have a board with LPC2132 MCU . ISP Version 2.2.2. works fine at all speeds . When I switch on the same board to LPC2138 ( same crystal 14.7456MHz , same board ) I am having download file problems . Switching back and to LPC2132 works fine . After putting LPC2138 ( different piece of chip ) on again it has similar download problems ( even at slow speed li
Setting up LPC2132 ADC in Hardware mode
inI followed the example from the Insiders guide from Hitex, but it seems if it is designed only for the Keil ARM compiler. Also I suspect it...
I followed the example from the Insiders guide from Hitex, but it seems if it is designed only for the Keil ARM compiler. Also I suspect it to have an error where ADCR should be ADDR. Anyway the interrupt function doesn't get called, and I have no clue why not. In the Keil example they make a change in the startup.s, but doing that didn't solve the problem
Interrupt not serviced when using two capture pins on the same timer on LPC2132
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
inThe 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
inHi, 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
inHi 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
Implementation of Ethernet and USB using LPC1768
inHi 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 ------------------------------------
requesting for a code for lpc2129 Can.
inHi, 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. ------------------------------------
How to make efficient RX ISR usage on FreeRTOS
inHi, 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
lpc2129 CAN problem
inhi 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...
LPC2129 (SW)-CANBus Error troubleshooting: RX Passive Error, REC = 128
inHi 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
GCC/gnude can't use libc.a?
inI 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 - reading/writing char array to flash
inI 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...
LPC2129 - CAN receive interrupt issue
inHello 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 ...
LPC2131 samples out now, LPC2132-LPC2138 User Manual
inHi 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