EmbeddedRelated.com
The 2024 Embedded Online Conference

lpc2148, newlib-lpc, math functions...

Started by tahoe_nanci in LPC200015 years ago 14 replies

anyone? I posted a couple messages last week and no responses. Summarizing, I can compile, link, and download the bin/hex onto the lpc2148. ...

anyone? I posted a couple messages last week and no responses. Summarizing, I can compile, link, and download the bin/hex onto the lpc2148. All examples work, until I use math functions. My simple test is to simply calculate sin(PI) and dump to uart. Any hints? help? ------------------------------------


lpc2468 HID USB

Started by Martijn Broens in LPC200015 years ago 4 replies

Hi all, I know it's been here several times before buts o far i could not fin dan answer. I was wondering if there's some sample code for...

Hi all, I know it's been here several times before buts o far i could not fin dan answer. I was wondering if there's some sample code for setting up a USB HID in the LPC2468. perhaps that NXP has some code not yet published?? What I'd like to do is set the lpc as a generic hid device using USB_D1 (P0.30 and P0.29) I've already played with the lpc2148 works fine, but the lpc2468 is somet...


Compiling for lpc on linux system

Started by Aditya Bankar in LPC200015 years ago 4 replies

Hi, I want to know how to compile programs written in C and in assembly on Linux based host system. I don't want to use linux on my...

Hi, I want to know how to compile programs written in C and in assembly on Linux based host system. I don't want to use linux on my microcontroller. I saw that uClibc document. It seems that this library is for compiling software for ARM microcontroller running Linux on it. Say I just want to assemble the instruction: MOV R0, #10H And say I just want to compile the program: main() { in...


LPC2478 or LPC 2468 Bootloader Options / Questions

Started by robinsm123 in LPC200015 years ago 1 reply

I'm thinking of getting a developement board for either LPC2478 or LPC 2468. I just have a few questions regarding a bootloader. 1. Is it...

I'm thinking of getting a developement board for either LPC2478 or LPC 2468. I just have a few questions regarding a bootloader. 1. Is it possible to completely remove the Phillips boot loader and just use my own? 2. If not, Do I have to jump to sections of the phillips bootloader in order to write to flash, or can my bootloader be completely independant? 3. What are some good refer...


LPC and LCD problem

Started by zanakca in LPC200015 years ago 1 reply

Hello community ! I D4 P0.5 -> D5 P0.6 -> D6 P0.7 -> D7 P4.15 -> E P4.27 -> RS P4.29 -> RW Code: #include...

Hello community ! I D4 P0.5 -> D5 P0.6 -> D6 P0.7 -> D7 P4.15 -> E P4.27 -> RS P4.29 -> RW Code: #include "lpc2468_registers.h" #include "lcd.h" #define BUSY_MASK 0x00000080 #define TRUE 1 #define FALSE 0 void InitLeds(void); vo


IAR Interrupt based UART

Started by Hanns Tappeiner in LPC200015 years ago 3 replies

Hi everyone, I am using an LPC2103, compiler IAR EW. While it is easy to get the polled version of UART0 communication to work, I can't get...

Hi everyone, I am using an LPC2103, compiler IAR EW. While it is easy to get the polled version of UART0 communication to work, I can't get the interrupt based version to work. Can anyone point me to an example on how to initialize a simple interrupt based communication via UART0/1 using IAR EW for an LPC 2103? Or froma similar controller? Thanks a lot, Tappo ----------------------...


USB Secondary boot loader for LPC2378

Started by pete...@esysr.com in LPC200015 years ago 2 replies

I have been trying to get a USB secondary boot loader to work on my Olimex LPC-P2378 using CrossWorks tools. Since I am new to debugging USB...

I have been trying to get a USB secondary boot loader to work on my Olimex LPC-P2378 using CrossWorks tools. Since I am new to debugging USB and fairly new to CrossWorks I have been going in circles. Anyone know of a USB Bootloader for the LPC2378 that builds under CrossWorks? ------------------------------------


can bus error handle

Started by Peter Kic in LPC200015 years ago 2 replies

Hi!! I'm using lpc2378 and I have a problem with can bus. Sometimes happends that CAN bus is locked. I thought this happend because of...

Hi!! I'm using lpc2378 and I have a problem with can bus. Sometimes happends that CAN bus is locked. I thought this happend because of lpc bug - "In a Data Overrun condition, the CAN controller is locked from further message reception", but I monitor this with IRQ and this in not a reason. I notice that I have a lot of Receive errors (I get IRQ Error Status). How to control, if it's lo...


True Stress test of a MCU w.r.t Conditions.

Started by Rangarajan Varadan in LPC200015 years ago 6 replies

Hi All, This is a general question just to clarify what a MCU like the LPC2148 or L= PC2888 is meant for? Perhaps my search hits for these MCUs...

Hi All, This is a general question just to clarify what a MCU like the LPC2148 or L= PC2888 is meant for? Perhaps my search hits for these MCUs have all yielded results which sugges= t that these typically=A0are used in Audio-Video sort of devices. =A0 Are there any users in this group who have used a(any) LPC in a Utility Ind= ustry Embedded system, which sits out in the sun and rain? Doe...


Micrel PHY & LPC2366 Rev 'B'

Started by miodragsm in LPC200015 years ago 3 replies

Hi Does anyone use LPC2366 Rev 'B' and Micrel KS8721BL/SL PHY? I would need some sample code to test if I have problems with my custom...

Hi Does anyone use LPC2366 Rev 'B' and Micrel KS8721BL/SL PHY? I would need some sample code to test if I have problems with my custom built PCB or if I missed something while porting the FreeRTOS 2368 demo to my board. I have changed flash size in linker script to 244K (why does FreeRTOS demo declare 12K less flash that lpc has?), changed PHY ID for Micrel PHY and set IP address for my ...


LPC21xx header for all LPC models?

Started by Harald Kubota in LPC200015 years ago 2 replies

Hi, I am (so far) using mostly J.C. Wren's code to run small applications on an LPC2148 board. Turns out I don't need USB that much after...

Hi, I am (so far) using mostly J.C. Wren's code to run small applications on an LPC2148 board. Turns out I don't need USB that much after all, so I play with LPC2103 now using the FreeRTOS ARM7_LPC2106_GCC example. I use gcc, so that's all fine. And then I thought: would it not be nice to have one header file which include all LPC members (or at least a family like LPC21xx), so that com...


LPC-2148 demo code version 1.43 available

Started by "J.C. Wren" in LPC200015 years ago 13 replies

In the never-ending release cycle... See http://jcwren.com/arm for the code. No functional changes to the code, so this really only affects...

In the never-ending release cycle... See http://jcwren.com/arm for the code. No functional changes to the code, so this really only affects folks using WinARM. --jc 2008/11/09, version 1.43: Attempted WinARM happiness. Working code can be compiled with the WinARM 20060606 build. Please see the README.WinARM file in the .zip or .tgz file. -------------------------...


Re: Olimex LPC-E2468 JTAG Debug: Update

Started by michael brown in LPC200015 years ago 2 replies

Bruce Paterson wrote: > No success yet, but an update. > Any suggestions welcome ! Well, on my Olimex LPC-2378-STK board, I've seen similar...

Bruce Paterson wrote: > No success yet, but an update. > Any suggestions welcome ! Well, on my Olimex LPC-2378-STK board, I've seen similar messages after I fed OpenOCD a configuration for another board. I had downloaded a project for another board and was converting it to run. After trying to upload to the wrong locations, it started spewing messages like yours. Resetting everythi


Re: LPC 2368 COMPILER SELECTION

Started by tape...@hotmail.com in LPC200015 years ago 1 reply

Hello, I'm also starting with an LPC2368 and I would like to know if I can still work with arm-elf or arm-none-eabi compilers (I used them...

Hello, I'm also starting with an LPC2368 and I would like to know if I can still work with arm-elf or arm-none-eabi compilers (I used them with an LPC2148). > Now, Keil Software support LPC2368 ,But code limit @ 16k . what does it mean 16k code limit? ------------------------------------


Re: Olimex LPC-E2468 JTAG Debug: Update

Started by michael brown in LPC200015 years ago 8 replies

Bruce Paterson wrote: > Hmmm > > All is still not fine with ARM-USB-OCD. For some reason I can't get it > to breakpoint on main reliably....

Bruce Paterson wrote: > Hmmm > > All is still not fine with ARM-USB-OCD. For some reason I can't get it > to breakpoint on main reliably. I usually set a temporary breakpoint > there as part of the startup of gdb, but if I do this, it never gets > there. If I just let it halt at random when gdb starts, then I can > put a breakpoint on main and it can get there OK. > Is there an openocd gu


Interrupt problem on LPC23xx after reset

Started by Mark Butcher in LPC200015 years ago 2 replies

Hi All I wonder whether someone has a fast answer to this? Board is Olimex LPC-2378-STK (but board probably not the problem). After a power...

Hi All I wonder whether someone has a fast answer to this? Board is Olimex LPC-2378-STK (but board probably not the problem). After a power on the SW runs correctly (100% reliable after many tests). After a push button reset the software often runs correctly, but not always. When it doesn't run correctly it is because no interrupts are operating. Some details: - when the SW is reset ...


lpc2378: RAM instead of FLASH?

Started by eclice in LPC200015 years ago 2 replies

Hi all, I have an Olimex LPC-2378-STK board. I am completely new in the ARM world. I have installed the following development environment on...

Hi all, I have an Olimex LPC-2378-STK board. I am completely new in the ARM world. I have installed the following development environment on Windows XP: yagarto (gcc 4.2.1), openocd (r717). I don't use Eclipse. To program the board I have bought an ARM-USB-OCD tool. I have successfully compiled the simple LED blinking program (from http://olimex.com/dev/soft/arm/OpenOCD-projects100.zip...


Problem with LPC 2368 Ethernet

Started by tayyaba_ch in LPC200015 years ago 3 replies

Hi All.. i have a weird problem ,i am using PHY_DP83848 with LPC2368.Ethernet is working fine .if PHY chip is damaged or not present...

Hi All.. i have a weird problem ,i am using PHY_DP83848 with LPC2368.Ethernet is working fine .if PHY chip is damaged or not present ,in initialization of Ethernet MAC(before PHY initialization)processor get hanged. during following code.... LPC_MAC_MAC1_REG = 0x0000CF00; // Assert soft reset for all //modules LPC_MAC_CMD_REG = 0x00000038; // Assert soft reset...


ISP programming with lpc21isp utility

Started by tclarke1 in LPC200015 years ago 3 replies

What are all the tricks to get the lpc21isp (v1.48) utility to actually work? I have the EA LPC2478 board. I have a ulink and flashmagic, but...

What are all the tricks to get the lpc21isp (v1.48) utility to actually work? I have the EA LPC2478 board. I have a ulink and flashmagic, but I'd like to know all the options for burning code. I finally figured out that the lpc util does not control the state of RST and P2.10 like flashmagic does, so I have learned to press the two related buttons on the board as needed. When I try: >


Exact 115200 bps baud rate generation in LPC 2378

Started by pravin falcao in LPC200015 years ago 6 replies

Hi, I need to generate exact 115200 bps baud rate for LPC 2378. Is it possible to generate? If yes then please provide the...

Hi, I need to generate exact 115200 bps baud rate for LPC 2378. Is it possible to generate? If yes then please provide the details. BR, Pravin Falcao ------------------------------------



The 2024 Embedded Online Conference