EmbeddedRelated.com
The 2024 Embedded Online Conference

FAT file system

Started by Gus in LPC200020 years ago 18 replies

I have posted about this before but now I am finally done with ALFAT. I used LPC2114 chip and programmed it with full FAT file ...

I have posted about this before but now I am finally done with ALFAT. I used LPC2114 chip and programmed it with full FAT file system where you can send SPI or UART(serial) commands to it and it will save FAT files to many kinds of medias SD, MMC, CF and hard disks!


Secondary Bootloader Jump

Started by asvi...@yahoo.co.in in LPC200015 years ago 12 replies

Hello, I had question related to program startup. I am using LPC2106, when I press reset, Primary bootloader get called. Then my...

Hello, I had question related to program startup. I am using LPC2106, when I press reset, Primary bootloader get called. Then my secondary bootloader comes in picture. It will download the hex file from UART and burn the flash. Now I need to call new application. Whether I jump to main function of new downloaded code or to cstartup function. Thanks


FreeRTOS / FatFS / Data Abort Exception

Started by thomas_augustinus in LPC200018 years ago 4 replies

Hi all, I have included both FatFS with MMC card support (Thanks Joel!) and FreeRTOS in my application and now I keep getting data abort...

Hi all, I have included both FatFS with MMC card support (Thanks Joel!) and FreeRTOS in my application and now I keep getting data abort interrupts... I have only one interrupt source (uart) and that runs completely independent of the rtos (no system calls). The compiler is the IAR embedded workbench. The optimization is set to off. It appears that without either of the systems th...


LPC2378, UART1 setup problems

Started by gregdeuerling in LPC200017 years ago 2 replies

Hope someone can help me see what I'm doing wrong. I'm trying to use UART1 with the TX/RX pins on P2.0 and P2.1. Nothing I do seems to work...

Hope someone can help me see what I'm doing wrong. I'm trying to use UART1 with the TX/RX pins on P2.0 and P2.1. Nothing I do seems to work with these pins. If I configure the TX/RX pins on P0.15 and P0.16 UART1 works fine. Here is my pinselect and UART setup code: //PINSEL0 |= 0x40000000; // Enable TxD1 P0.15 //PINSEL1 |= 0x00000001; // Enable RxD1 P0.16 PINSEL4 = 0x0000000a; // En...


LPC2388 USB VirtualCom example

Started by Konrad Heksel in LPC200016 years ago 2 replies

Hi, I play with USB Comunication Device Class attached with Keil uVision and IAR compilers. I had to adopt these software a little bit to...

Hi, I play with USB Comunication Device Class attached with Keil uVision and IAR compilers. I had to adopt these software a little bit to the EBV Chameleon evaluation board I have. That is to handle ISP1301 OTG driver. I use it only to drive D+ line to 3V3 when I initialize USB1 port. Generally these examples work fine. I can transmit data between VComPort and UART. The problem is, when I p...


Stuck with THRE interrupt on LPC2103

Started by TomW...@Freightliner.com in LPC200017 years ago 1 reply

I've been stuck on this for a few days now. I was using the UART tx in a polled fashion, but it was wasting too much processing time. So I'm...

I've been stuck on this for a few days now. I was using the UART tx in a polled fashion, but it was wasting too much processing time. So I'm trying to set up an interrupt for txing. Rx works fine for the record. Basically what I have is whenever I want to print something using printf, I use putchar to put the data into a buffer. The THRE interrupt is supposed to fire to pull data out of the buff...


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...


LPC2294 UART Interrupt problem

Started by bahadir_armagan in LPC200017 years ago 1 reply

Hi All, I recognized that I have an interrupt problem. I can't get into the vector both after receive or transmit. I checked all the...

Hi All, I recognized that I have an interrupt problem. I can't get into the vector both after receive or transmit. I checked all the initialized VIC registers I couldn'T find the error. Please help. Here is the Init: /*INIT*/ void serial_init (void) { // PINSEL0 = 0x00050000; /* Enable RxD1 and TxD1 */ PINSEL0 |= 0x00000005; /// UART0 ...


LPC2368 UART TEMT not set

Started by dave_albert in LPC200012 years ago 2 replies

I am using the LPC2368 and have reproduced this problem several times: In my application, there is a serial console for debugging on UART0. ...

I am using the LPC2368 and have reproduced this problem several times: In my application, there is a serial console for debugging on UART0. The application is working normally, periodically sending a status message out TXD0 when suddenly, often in the middle of a message, no more characters come out TXD0. My board has two interfaces (UART0 and an RF interface) so I'm able to query it via the ...


LPC2387 ssp module

Started by "sum...@yahoo.com [lpc2000]" in LPC20009 years ago 3 replies

In my project I use SPI to UART converter IC. In lpc2387 I connect SSP! pins to that IC. I check my SSP communication it work properly. But in...

In my project I use SPI to UART converter IC. In lpc2387 I connect SSP! pins to that IC. I check my SSP communication it work properly. But in normal mode I always get 0xFF value from IC. Below is my code PINSEL0 = 0x005A8000; // uart2,ssp chip select worl as GPIO it is always 0 ssp ini PCONP |= (1 < < 10); /* by default, it's enabled already, for safety reason */ SSP1CR0 = 0x0707;


Flashless LPC2210, flash download?

Started by volunteer_sysu in LPC200018 years ago 14 replies

I am beginner in LPC2000. I want to ask some questions. Thank you! 1. I wonder whether there's any free software that can be used to download...

I am beginner in LPC2000. I want to ask some questions. Thank you! 1. I wonder whether there's any free software that can be used to download programs to the external flash via UART or JTAG? 2. I don't know how to use the ISP protocol provided by Philips, will anyone who has written a program to download programs to the external flash teach me how to do that, or send me the source code? th...


LPC board with bluetooth

Started by r_goncalves2000 in LPC200017 years ago 3 replies

Hello all, I'm developing a board using a LPC2129. This board must comunicate with a PDA using a bluetooth channel. I've never used bluetooth...

Hello all, I'm developing a board using a LPC2129. This board must comunicate with a PDA using a bluetooth channel. I've never used bluetooth before so I have many doubts. I was thinking on using the LPC UART and convert that to bluetooth. Is this possible? How? Any recomendations? Is there any special requirement on the PDA side? I need some ideias to point me to the right direction....


LPC2366 & Ethernet

Started by miodragsm in LPC200015 years ago 1 reply

Hi all! I am just starting working with ARM. Before ARM I did some work with PIC, 8051 and Coldfire. After initial problems were solved...

Hi all! I am just starting working with ARM. Before ARM I did some work with PIC, 8051 and Coldfire. After initial problems were solved (like setting up OpenOCD and Eclipse) I managed to get UART and timers working and it's all great. Now I have a problem with Ethernet. I base most of my code on LPC23XX bundle code from NXP (which is for different compiler but so far I managed to get it ...


Use or not a secure boot loader?

Started by in LPC200012 years ago 9 replies

I would ask about any boot loader with cryptography or any secure way to up= date firmware "off-factory", but I ask before: Worth it? Today I...

I would ask about any boot loader with cryptography or any secure way to up= date firmware "off-factory", but I ask before: Worth it? Today I use a Microchip PIC AES-256 boot loader provided on a AN, we use it= for two or three years already. Now we're "moving up" to Cortex-M0 and M3. Our product need to have a boot loader, either online (GPRS, low speed) and= off line (uart or usb, faste...


lpc2132 startup problem

Started by Adem in LPC200016 years ago 1 reply

hello; After a couple of year on PIC uCs ,recently I started working on LPC2132 Arm microcontroller.I use Keil Real View uc development kit...

hello; After a couple of year on PIC uCs ,recently I started working on LPC2132 Arm microcontroller.I use Keil Real View uc development kit to compile and H-JTAG to flash. I've compiled a few project and they worked well, however I couldn't figure out how to arrange startup.s file. I have been working on a simple uart program explaining in AN10369 paper. But, what i see at output is just...


LPC2132 Power Down Current Too High

Started by sig5534 in LPC200017 years ago 14 replies

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...

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 ...


FreeRTOS - UART Problem - LPC2114 suddenly stops

Started by elperegrinoranquel in LPC200015 years ago 3 replies

Hi, i am working with a Development Board based on a LPC2114. We have made the port for FreeRTOS using the instructions available in FreeRTOS's...

Hi, i am working with a Development Board based on a LPC2114. We have made the port for FreeRTOS using the instructions available in FreeRTOS's web page, modifying the Demo for LPC2106 (because we use GCC compiler) and comparing with the Demo for LPC2129 (because there are only very little differences with this micro). The Demo seemed to worked just fine, but the problem comes when we use th...


LPC2000 Flash Utility Coms Ports > 5

Started by Peter Jakacki in LPC200019 years ago 7 replies

I'm using CP2102 USB to UART bridges in my designs and I am able to communicate very nicely with these devices. On some of my systems I ...

I'm using CP2102 USB to UART bridges in my designs and I am able to communicate very nicely with these devices. On some of my systems I already have 4 coms ports + internal modem = COM1-COM5. When I plug in my usb coms the pc creates coms ports above this from COM6 onwards. By changing the ini file in TeraTerm I can get it to access ports other than th


LPC2106 -UART, sent data is garbled until something is received by the MCU

Started by voltz56 in LPC200014 years ago 51 replies

Iv been working on this problem for the last three days with no avail. Basically around 80% of the time the first strings/chars sent by the...

Iv been working on this problem for the last three days with no avail. Basically around 80% of the time the first strings/chars sent by the MCU are garbled. It is only after the MCU receives something that everything works fine i.e. I can send or receive with loosing any data. My code is standard, I don't think theres any problems with it,debugs fine in kei


UART communication @ 1 Mbps or more

Started by Richard Duits in LPC200016 years ago 11 replies

Hallo All, I am trying to let two boards communicate over a RS485 link at 3 megabits per second. One board has a LPC2368 and the other has a...

Hallo All, I am trying to let two boards communicate over a RS485 link at 3 megabits per second. One board has a LPC2368 and the other has a LPC2136/01. Both the LPC2368 and the LPC2136/01 have a 12 MHz crystal and are using the PLL to run at 48 MHz. The RS485 tranceivers are capable of 12 Mbps. Everything goes fine up to 500 kbps, but at 1 Mbps or higher the transmission has a una...



The 2024 Embedded Online Conference