EmbeddedRelated.com
The 2024 Embedded Online Conference

Re: LPCusb with crossworks

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

Hello everyone, > > I am attempting to use the lpcusb library available on sourceforge > with an Olimex LPC-P2148 board and crossworks. I...

Hello everyone, > > I am attempting to use the lpcusb library available on sourceforge > with an Olimex LPC-P2148 board and crossworks. I have been able to > set up a project that builds the virtual com example just fine and > shows the appropriate startup text on the console upon startup: > > Initialising USB stack > Registered handler for device status > Registered handler for EP 0x0 > Re


CrossWorks for ARM - Simple led blink code doesn't run on lpc2368

Started by Barış in LPC200014 years ago 25 replies

Hi all, I have a sample led blink code running on lpc2368.When I build this code on keil uVision, it runs successfully.But when I tried with...

Hi all, I have a sample led blink code running on lpc2368.When I build this code on keil uVision, it runs successfully.But when I tried with CrossWorks, I don't see any action on board.Is there a specific issue that I didn't know? Could anybody help me? ------------------------------------


crossworks Tasking library

Started by virtualashok in LPC200016 years ago 6 replies

Hi Guys, I have a strange problem. with the CTL(crossworks tasking lib). Have created two tasks , and hooked the timer0 for...

Hi Guys, I have a strange problem. with the CTL(crossworks tasking lib). Have created two tasks , and hooked the timer0 for the task switching. every thing works fine if I program it using JTAG. but when I start the application by switching the power off and on then the application hangs when the ctl_taskrun is called. boot loader is running and it starts the application. ...


lpc2103 & rowley crossworks 1.6

Started by bkaan_ugur in LPC200017 years ago 7 replies

Hello, I am trying to debug some pice of code using Rowley crossworks and 2103.Olimex Wiggler is used.flash Debug built configuration is...

Hello, I am trying to debug some pice of code using Rowley crossworks and 2103.Olimex Wiggler is used.flash Debug built configuration is used.But always getting messages below.Flash cannot be programmed.I have Keil Demo board with LPC2138.It is working proper with same configuration. Does someone have comments about it? Regards Bilge Executing reset script FLASHReset() Loading targe...


Setting up interrupts in crossworks problem?

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

Hello People, I'm having a little setting up interrupts in crossworks. Reading the manual I found that i need to use: ...

Hello People, I'm having a little setting up interrupts in crossworks. Reading the manual I found that i need to use: ctl_global_interrupts_enable(); ctl_set_isr(1, 0, CTL_ISR_TRIGGER_FIXED, isr, 0); ctl_unmask_isr(1); To setup the interrupt instead of using: void isr (void) __attribute__ ((interrupt("IRQ"))); & // VICVectCntl0 = 0x00000024; //use it...


Anyone use Imagecraft ICC or Rowley CrossWorks?

Started by grantpbt in LPC200016 years ago 41 replies

I'm evaluating cheap compilers and it appears Keil is 16k limited for eval and IAR is 32 limited for eval. Both reasonably generous for learning...

I'm evaluating cheap compilers and it appears Keil is 16k limited for eval and IAR is 32 limited for eval. Both reasonably generous for learning I suppose, though I'm sure there are some gotcha's in there somewhere. So I'm also looking at Imagecraft's compiler (I've used them before with HC11 and PSoC) or maybe Rowley CrossWorks. I'm not worried about GCC's code density but I am worried t...


crossworks - Porting from 1.7 to 2.1 - asm directive

Started by Markus Zingg in LPC200013 years ago 3 replies

Dear Group, I'm trying to port a little projcet from a previous crossworks version to version 2.1 In there I have a routine to Enable and...

Dear Group, I'm trying to port a little projcet from a previous crossworks version to version 2.1 In there I have a routine to Enable and Disable Interrups which compiles fine in the old version, but not so in the new one. The code uses among other stuff the following two lines of code * asm volatile (" mrs %0, cpsr" : "=r" (retval) : /* no inputs */ ); asm volatile (" m...


Crossworks with J-Link loader error using sections

Started by Michael Freeman in LPC200014 years ago 6 replies

While I am digging on my problem I figure I would throw it out to you guys too. I am using Crossworks 2.0 and the Segger J-Link tools on a...

While I am digging on my problem I figure I would throw it out to you guys too. I am using Crossworks 2.0 and the Segger J-Link tools on a LPC2388. My project has come along quite nicely until today. I added a SD Card driver that uses the GPDMA. The DMA uses the USB ram area. I added the following line of code to my project: static DWORD DmaBuff[N_BUF][128] __attribute__ ((section(".usbram"...


Conversion of Project: GCC Eclipse to Crossworks

Started by Chris Graham in LPC200017 years ago 1 reply

Is there a straightforward series of steps documented somewhere that one could follow in converting a GCC Eclipse project to Crossworks? They...

Is there a straightforward series of steps documented somewhere that one could follow in converting a GCC Eclipse project to Crossworks? They are both based on GCC so I assume the code is compatible but things like make scripts and memory map files would need to be converted. I'm hoping this is a fairly deterministic process that others may have documented and can refer to me to. - Chris...


crossworks and MCB4300

Started by Markus Zingg in LPC200011 years ago 3 replies

Hi Group, I'm trying to use a Keil MCB4300 developper board along with crossworks. I downloaded the LPC4300 support package from Rowley and...

Hi Group, I'm trying to use a Keil MCB4300 developper board along with crossworks. I downloaded the LPC4300 support package from Rowley and can create a little test project just fine. It compiles, but when trying to download this to the board the message pops up telling me that there is a "Target processor mismatch" which reads: The target processor defined in the project (LPC4357) o...


Crossworks & irq handlers in C

Started by Markus Zingg in LPC200016 years ago 7 replies

Hi all, I'm new to the Crossworks IDE/Envireonment and also to ARM7. I need to declare an IRQ handler function and I'm having troubles to do...

Hi all, I'm new to the Crossworks IDE/Envireonment and also to ARM7. I need to declare an IRQ handler function and I'm having troubles to do so. I looked up the GCC docs (I'm also also new to GCC...) and found the __attribute__ instruction to do so. However, the following code does not seem to be accepted by the compiler. void Handler( void ) __attribute__ ((interrupt ("IRQ") )); { ...


LPC1300 and LPC1100 debugging with Crossworks

Started by ksdoubleshooter in LPC200014 years ago 22 replies

I'm starting a new project and I'm going to use either an LPC1300 or LPC1100 device. I use Rowley Crossworks 2.0 and have the following JTAG...

I'm starting a new project and I'm going to use either an LPC1300 or LPC1100 device. I use Rowley Crossworks 2.0 and have the following JTAG debuggers: Olimex ARM-USB-OCD Rowley Crossconnect Lite An IAR branded version of J-Link Luminary Micro LM3S811 Evaluation Board I am a bit confused about JTAG functionality on these devices. The users manual for each of these families indicates t...


LPCUSB VCOM IRQ + LPC2148 + Crossworks

Started by darkcobrax in LPC200017 years ago 15 replies

I'm trying to get the LPCUSB VCOM example working using interrupts, but am having a strange problem. I have the Olimex LPC-H2148, Crossworks...

I'm trying to get the LPCUSB VCOM example working using interrupts, but am having a strange problem. I have the Olimex LPC-H2148, Crossworks v1.6 Build 2, and a Wiggler clone for JTAG. Here's what I did to set up and modify the project: 1) Create a new project: Type: Philps LPC2000/Generic LPC21xx Board/Executable Target Processor: LPC2148 All other options default 2) in Syste...


Debugging interrupt service routine with Crossworks NOT using tasking library

Started by Markus Zingg in LPC200016 years ago 11 replies

Hi all, I'm having trouble here with making some sample code from NXP (the EMAC sample actually) work in crossworks. After first using the...

Hi all, I'm having trouble here with making some sample code from NXP (the EMAC sample actually) work in crossworks. After first using the tasking library functions to setup IRQ I ended up in a situation where I could place a breakpoint within the ISR and execution halted. However, the system always hung sooner or later when debugging, stack was corrupted after calling the isr and all...


strange casting in Keil compiler

Started by Tim Mitchell in LPC200013 years ago 12 replies

I'm trying to port some NXP demo code to Rowley Crossworks, it's written for Keil and has a cast on the left hand side of an addition. The Keil...

I'm trying to port some NXP demo code to Rowley Crossworks, it's written for Keil and has a cast on the left hand side of an addition. The Keil code has paramstruct *p; (uint8_t *)p++; p is a pointer to a struct 4 bytes long. I presume this is meant to advance the pointer 1 byte. Crossworks won't compile this - "lvalue required as left operand of assignment" The best I can come up ...


Need example project for Rowley CrossWorks for ARM - C/C++

Started by "jim...@rocketmail.com" in LPC200015 years ago 4 replies

Hello everybody, I'm new to ARM7 development and I'm looking to compile and load my first test program on my Olimex LPC-P2138 development...

Hello everybody, I'm new to ARM7 development and I'm looking to compile and load my first test program on my Olimex LPC-P2138 development board. I'm evaluating the Rowley CrossWorks for ARM compiler/IDE. I've created a solution using the wizard and selected the MCU, Clock Speed etc and a project was created. However, I don't see a source file created the includes a stub for main(). So...


Crossworks & malloc/free and interrupts

Started by Markus Zingg in LPC200016 years ago 5 replies

Hi Group, Is the malloc() (and free() for that matter) implementation as it's used in Crossworks irq save? I mean if I call malloc (or free)...

Hi Group, Is the malloc() (and free() for that matter) implementation as it's used in Crossworks irq save? I mean if I call malloc (or free) from within an isr routine (which eventually interrupts another ongoing malloc() ) will things go wrong? I haven't found that information in the docs (which does not necesairly mean its not there but just that I haven't found it). TIA Markus ...


Crossworks Section Definition for C code

Started by rf_equip in LPC200016 years ago 1 reply

How do you define a .text and .rodata for a c module in Crossworks? How do you add these sections to the flash_placement.xml file? I am...

How do you define a .text and .rodata for a c module in Crossworks? How do you add these sections to the flash_placement.xml file? I am trying to make a IAP boot loader code section that I can locate at the top of the LPC2129 flash range. I used : #pragma section text=".code_section" #pragma section data=".my_data" #pragma section bss=".uninit_data" I know how use to include ...


Crossworks (malloc.h memory.h)

Started by "zarko.nikolic" in LPC200016 years ago 2 replies

I am trying to use an FFT library in my Crossworks project. The FFT library uses malloc.h and memory.h but they do not exist...

I am trying to use an FFT library in my Crossworks project. The FFT library uses malloc.h and memory.h but they do not exist in Crossworks. Is there a way to use to use this FFT library since malloc.h and memory.h don't exist? ------------------------------------


Re: LPC2148 - startup from reset

Started by Paul Curtis in LPC200016 years ago

HOW TO DEBUG A PROGRAM THAT DOESN"T START UP IN CROSSWORKS ========================================================== 1. Ensure hardware is in...

HOW TO DEBUG A PROGRAM THAT DOESN"T START UP IN CROSSWORKS ========================================================== 1. Ensure hardware is in the NOT-RUNNING STATE. 2. Attach JTAG cable and run CrossWorks. 3. Connect to the selected target interface (Target > Connect...) 4. Attach the debugger to the target (Debug > Attach Debugger). 5. Stop the CPU (Debug > Break). 6. Figure out where y



The 2024 Embedded Online Conference