EmbeddedRelated.com
The 2024 Embedded Online Conference

How to use .lib file in crossworks

Started by aamir shakoor in LPC200013 years ago 2 replies

Hi All, I need help how to use .lib file in crossworks IDE for lpc2138. Please some simple example...

Hi All, I need help how to use .lib file in crossworks IDE for lpc2138. Please some simple example code. Regards, Aamir ------------------------------------


int64 variables with GCC in crossworks IDE

Started by Gus in LPC200017 years ago 4 replies

Is there a way to use 46-bit variables in GCC and crossworks tool set?

Is there a way to use 46-bit variables in GCC and crossworks tool set?


Crossworks & Interrupts

Started by step...@langley-park.co.uk in LPC200012 years ago 1 reply

Hello I'm new to both ARM and Crossworks and trying to understand interrupts, i order to do so, i've created a small serial program to echo...

Hello I'm new to both ARM and Crossworks and trying to understand interrupts, i order to do so, i've created a small serial program to echo characters received, however it never seems to call the ISR. Ive tried adding VECTORED_IRQ_INTERRUPTS and STARTUP_FROM_RESET to the Preprocessor Definitions section of the startup.s file... I would appreciate a little guidance Program as follows :- #i...


LPC2368 Crossworks dabort_handler

Started by mavonino in LPC200017 years ago 1 reply

Hi, Im running a modified version of Keils HID example using the Crossworks compiler. My main function looks like this int main (void)...

Hi, Im running a modified version of Keils HID example using the Crossworks compiler. My main function looks like this int main (void) { libarm_enable_irq(); SCS |= 0x01; //Enable Fast GPIO on P0 and P1 USB_Init(); /* USB Initialization */ USB_Connect(TRUE); /* USB Connect */ while (1) { //do work } } 1) Im having...


LPC2148 and TNKernel on Rowley CrossWorks 1.6

Started by Danifart in LPC200018 years ago 3 replies

I get the following error when compiling the crossworks example from TNKernel v2.2 cannot find entry symbol reset_handler; defaulting to...

I get the following error when compiling the crossworks example from TNKernel v2.2 cannot find entry symbol reset_handler; defaulting to 00000040 Does anybody know why and how could it be fixed? There's no documentation about it. Thanks, Dani. ------------------------ Yahoo! Groups Sponsor --------------------~--> Something is new at Yahoo! Groups. Check out the enhanced email


Using Lua on LPC with Crossworks

Started by Jakub Szumacher in LPC200013 years ago 6 replies

I need to use Lua in my C project. 1. Load Lua script from file 2. Execute it I found many informations about Lua but still dont know how...

I need to use Lua in my C project. 1. Load Lua script from file 2. Execute it I found many informations about Lua but still dont know how to do this on microcontroller. Im looking for simply example: Execute Lua line: print("hello world") in C program in Crossworks. Regards Jakub ------------------------------------


Crossworks linker offset (Bootloader).

Started by theborg2006 in LPC200018 years ago 4 replies

Hello Group I am using the LPC2214, where i would like to have my own bootloader=20 (Second stage, not erasing the philips bootloder). What...

Hello Group I am using the LPC2214, where i would like to have my own bootloader=20 (Second stage, not erasing the philips bootloder). What i want to do is: 0x00000000 - 0x00003FFF: My bootloader 0x00004000 - 0x0007FFFF: My Application. I guees there should be no problem with the bootloader, but how to a=20 setup the Crossworks compiler to link to start adresss 0x00004000 for=20 the ...


Struct/Union alignement problem with Crossworks

Started by nourson54 in LPC200019 years ago 5 replies

Hello, I'm trying a fat16 library that use an union for storing the bootsector data, and it seems the compiler doesn't handle correctly ...

Hello, I'm trying a fat16 library that use an union for storing the bootsector data, and it seems the compiler doesn't handle correctly the width of types in memory. So I searched some help on crossworks (gcc) compiler and found that I have to use this attribute with my concerned unions : __attribute__ ((__packed__)) But if the compiler


Timer 0 Interrupt in crossworks

Started by kay_niv in LPC200014 years ago 7 replies

i'm a novice learning about ARM using lpc2148.i'm not able to get into the isr,the code compiles perfectly and even the VIC registers are all...

i'm a novice learning about ARM using lpc2148.i'm not able to get into the isr,the code compiles perfectly and even the VIC registers are all set(the address of isr),timer works in polling mode but i'm not able to setup properly the interrupt.i'm using Crossworks 1.7.please help with this,i'm stuck here. ********************************************************************** #include "lpc_2148....


Vectored Interrupt Crossworks

Started by heedaf in LPC200017 years ago 5 replies

I've got the interrupt to work but when I try using vectored interupts I can't get it to work. Can someone tell me where I may have made a...

I've got the interrupt to work but when I try using vectored interupts I can't get it to work. Can someone tell me where I may have made a mistake or if I have defined it correctly for Crossworks? Thanks, Dewayne VICVectAddr0 = (unsigned int) &I2C0_Isr; VICVectCntl0 = 0x29; // Channel1 on Source#9 ... enabled VICIntEnable |= 0x200; // 9th bit is the I2C . . . void I...


FreeRTOS and crossworks

Started by drproton2003 in LPC200017 years ago 12 replies

Hello everyone, I am trying to figure out how to get crossworks to work with FreeRTOS. I have been able to get the demo applications to build...

Hello everyone, I am trying to figure out how to get crossworks to work with FreeRTOS. I have been able to get the demo applications to build and run, but now I am trying to figure out how to start my own projects with FreeRTOS. I tried copying main.c from Demo\ARM7_LPC2138_Rowley and stripping out everything except the LED task. I also added heap_1.c, list.c, port.c, portISR.c, queue.c...


USBMem for LPC288x, Crossworks

Started by Jan Vanek in LPC200016 years ago 7 replies

Hi Forum, I tried to get the USB mass storage functionality for LPC288x running, the goal was to see the device as a USB disc under...

Hi Forum, I tried to get the USB mass storage functionality for LPC288x running, the goal was to see the device as a USB disc under Windows and OSX. I am using Crossworks, and I used Keil's USBMem example V1.30 as a starting point. Following is not an answer to a question, but maybe somebody will find this helpful. Ignore otherwise, please. 1. Board init. I didn't use the TargetR...


crossworks sprintf does(not) use malloc

Started by Jan Vanek in LPC200015 years ago 2 replies

Hi Paul and Rowley team, in another forum (STM32) I got involved into a question whether sprintf uses malloc and I sort of prematurelly...

Hi Paul and Rowley team, in another forum (STM32) I got involved into a question whether sprintf uses malloc and I sort of prematurelly claimed it doesn't. Later on it turned out it is about sprintf(.., "%f", ..), which I am not using. I found some GCC source code on the web which does use malloc when there is %f. I tried to do sprintf(.., "%.500f", ..) with Crossworks and single-step ...


inline function problems

Started by drproton2003 in LPC200014 years ago 7 replies

I am trying to port some code for the LPC2366 (crossworks V1.7) to the LPC1768 (Crossworks 2.03) and am having some problems. The first problem I...

I am trying to port some code for the LPC2366 (crossworks V1.7) to the LPC1768 (Crossworks 2.03) and am having some problems. The first problem I encountered has to do with some functions I was inlining. With these functions declared as inline in the relevent .h and .c files I get "undefined reference" errors when the linker runs. If I remove the inline attributes it all builds as normal. What mig...


Re: LPC2131 SPI problem

Started by Michael Johnson in LPC200018 years ago

Hi Dave, It seems that S0SPCR has sprouted extra bits on the LPC213x and LPC214x. The CrossWorks LPC21xx header file was generated from...

Hi Dave, It seems that S0SPCR has sprouted extra bits on the LPC213x and LPC214x. The CrossWorks LPC21xx header file was generated from the register description of an LPC2124 which doesn't have these extra bits. The next release of CrossWorks has header files for each LPC device to avoid these problems. For the time being can you modify your copy of LP


Interrupt only runs once. CrossWorks on LPC2103

Started by artsaagluap in LPC200014 years ago 5 replies

Hi, I am trying to get interrupts working using the CrossWorks...

Hi, I am trying to get interrupts working using the CrossWorks way: ctl_set_isr(EINT2_CHAN,3,CTL_ISR_TRIGGER_FIXED,Initiate_Timing_ISR,0); ctl_unmask_isr(EINT2_CHAN); ctl_global_interrupts_enable(); I had a simple program working reliably but when I put it into a more complicated program the thing interrupted once and carried on never to interrupt again. My main loop is just a coun...


Crossworks sample project for sdcard support

Started by Jean-Sebastien Stoezel in LPC200013 years ago 2 replies

Hello, I've been battling with this for a while now, I cant seem to get any communication going between an lpc1756 and an sdcard. I've used...

Hello, I've been battling with this for a while now, I cant seem to get any communication going between an lpc1756 and an sdcard. I've used code from cmsis, demo code from NXP and my own code (that works on an lpc2148). I've used different sdcards, I just can't get it to work. Does anybody have ready to run project for crossworks, that exercises an sdcard on ssp/spi0 with a cortex m3? Th...


Crossworks tasking library questions

Started by drproton2003 in LPC200017 years ago 2 replies

Hello everyone, I've used the crossworks tasking library (CTL) in the past and it works great. I want to modify a project to use the CTL. ...

Hello everyone, I've used the crossworks tasking library (CTL) in the past and it works great. I want to modify a project to use the CTL. The problem is that this application already ties up both timers of the LPC2138 for other purposes. My idea is to use ADC interrupt, set up the prescaling and divide appropriatly in the ISR to effectively have a portion of code called every 1ms. Can ...


Anyone have a Plain English description of CrossWorks ctl_set_isr()?

Started by artsaagluap in LPC200014 years ago 7 replies

Hi, I am struggling with interrupts using CrossWorks. I can't work out ctl_set_isr(). Any "for dummies" explanation of what it does and how...

Hi, I am struggling with interrupts using CrossWorks. I can't work out ctl_set_isr(). Any "for dummies" explanation of what it does and how it makes plain functions work as interrupts? ------------------------------------


lpc2148 Crossworks interrupt problem

Started by "ernst.cozijnsen" in LPC200015 years ago 13 replies

Brothers in ARM(s), I'm still having issues getting interrupts ctl api to work conrrectly in crossworks. The bottom code only works when i...

Brothers in ARM(s), I'm still having issues getting interrupts ctl api to work conrrectly in crossworks. The bottom code only works when i use: void isr (void) __attribute__ ((interrupt("IRQ"))); As i understood this line should be avoided because the ctl library takes care of this. I read the manuals trough but i cannot get to a sollution for this. Does anyone have ran into the sa...



The 2024 Embedded Online Conference