LPC1300 and LPC1100 debugging with Crossworks

Started by ksdoubleshooter in LPC20008 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...


Problem in arm simulator of crossworks for arm

Started by suresh_digitec in LPC200014 years ago

i am using evaluation version of crossworks for arm version 1.3 to compile its own example program for lpc2106(led). It compiles...

i am using evaluation version of crossworks for arm version 1.3 to compile its own example program for lpc2106(led). It compiles well and even i am able to program/debug the application into my target board using wiggler, but when i am using arm simulator, simulator genrat


Debugging interrupt service routine with Crossworks NOT using tasking library

Started by Markus Zingg in LPC200011 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 LPC20007 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 ...


CrossWorks For ARM & Wiggler Debugger ?

Started by Amr Ahmed in LPC200013 years ago 10 replies

Salam ALL, I have build Wiggler Interface succesfully. I use CrossWorks for ARM 1.4. I can Compile my codes and choose Start...

Salam ALL, I have build Wiggler Interface succesfully. I use CrossWorks for ARM 1.4. I can Compile my codes and choose Start Debugging. The code works ok ( I can see on LEDs ) So The interface works perfectly to program and run the code using JTAG But I can't use Step Into and similar debugging functions !!! Please I need y


PLL and MAM issue on LPC2368 (CrossWorks) Experiencing sporadic crashes

Started by mavonino in LPC200011 years ago

Hi, Using Crossworks, and the default lpc230x_startup.s for LPC2368 it seems that the MAM is fully enabled and that the PLL causes a cclk of...

Hi, Using Crossworks, and the default lpc230x_startup.s for LPC2368 it seems that the MAM is fully enabled and that the PLL causes a cclk of 57.6Mhz by setting CCLKCFG_VAL to 4 (dividing with 288 with 5 = 57.6Mhz). 1) However, looking at the errata sheet for the LPC2368, it seems MAM should only be partially enabled for stabile usage. Should the MAMCR_VAL be defined as 1, in order...


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

Started by "jim...@rocketmail.com" in LPC20009 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 LPC200010 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 LPC200010 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 ...


Building USBBulk & TNKernel

Started by Chris in LPC200012 years ago 1 reply

I'm trying to build and run the USBBulk demo code for TNKernel. I'm using Crossworks and J-Link with an IAR LPC2148 ARM demo board. The...

I'm trying to build and run the USBBulk demo code for TNKernel. I'm using Crossworks and J-Link with an IAR LPC2148 ARM demo board. The code I'm trying to builld is from usbbulk-1-0-3-lpc214x.zip at http://www.tnkernel.com/usb_bulk.html. I downloaded this module and loaded the project into Crossworks. Upon first build it compiled perfectly but on linking indicated it could not fin...


Crossworks (malloc.h memory.h)

Started by "zarko.nikolic" in LPC200010 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 LPC200010 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


CrossWorks lpc2138 Project build

Started by aamir shakoor in LPC20008 years ago 7 replies

Hi all,I got a problem if some one could help pls.I got a project created by one company (although one guy works there), it is in crossworks IDE...

Hi all,I got a problem if some one could help pls.I got a project created by one company (although one guy works there), it is in crossworks IDE and lpc2138 processor. The hex file that is created by their system is 156 kb size. But when I build the same project (release configuration), the file is 177 kb size. Also the wake up (blink red led twice with a difference of 200 ms) signals this files g...


Cortex-M3 Bus Fault Status Register in CrossWorks

Started by Jerry in LPC20006 years ago 3 replies

Anyone know how to display the Bus Fault Status Register for a Cortex-M3 in CrossWorks 2.2? I can't find it anywhere... It's probably there...

Anyone know how to display the Bus Fault Status Register for a Cortex-M3 in CrossWorks 2.2? I can't find it anywhere... It's probably there somewhere, but I just don't remember where. ------------------------------------


How to breakpoint on a GPIO port using Rowley Crossworks

Started by Henry in LPC20009 years ago

Hello, did anybody ever manage to set a breakpoint when a special GPIO port pin is toggled using Rowley Crossworks? It sounds simple, but I...

Hello, did anybody ever manage to set a breakpoint when a special GPIO port pin is toggled using Rowley Crossworks? It sounds simple, but I did not get it working. What is possible is setting a Data Breakpoint (Breakpoint Trigger Type set to Write) to 0x3fffc03c for instance. That is FIO1CLR. But that would stop the processor independently of the port pin that is cleared. Expressions li...


CrossWorks UART example

Started by gokbektas in LPC200015 years ago 2 replies

It works fine, but if I close serial port and re-connect with PC without making anything on LPC, weird data appears at PC.   ...

It works fine, but if I close serial port and re-connect with PC without making anything on LPC, weird data appears at PC.   If I reset LPC, it turns to normal.   It happens with CrossWorks terminal window and my own serial port monitor


DSP Library from NXP on LPC17xx using Rowley Crossworks

Started by goodgodgivemeanaliasalready in LPC20008 years ago 1 reply

Hi everyone, I wanted to try out some of the DSP functions located...

Hi everyone, I wanted to try out some of the DSP functions located here: http://ics.nxp.com/support/documents/microcontrollers/zip/an10913.zip The download has projects for IAR, Keil, and Code Red. I use Rowley Crossworks and would like to access the library, but am confused. The app note states: "The library is supplied as a static library project with source code in LPCXpresso (C...


Rowley Crossworks, LPT port and VMware?

Started by mjames_doveridge in LPC20009 years ago 3 replies

Anyone out there tried running Crossworks in a VMware Workstation VM with a parallel-port JTAG? My new development machine has no LPT port, but I...

Anyone out there tried running Crossworks in a VMware Workstation VM with a parallel-port JTAG? My new development machine has no LPT port, but I have a PCI LPT card in one of my old boxes in the 'machine graveyard' at the back of the shed. I could fit this and try to map it to the VM and run the JTAG, but the VMware documentation says that its parallel-port mapping is not fully implemented: ...


Crossworks, CTL library , interrupts , and mono tasking...

Started by nourson54 in LPC200012 years ago 1 reply

I have just downloaded the last 1.6 demo version of crossworks in order to giveit a try to the CTL library. I read previously on this forum...

I have just downloaded the last 1.6 demo version of crossworks in order to giveit a try to the CTL library. I read previously on this forum that the "IRQ" attribute of GCC is bugged and produces bad entry/exit code whith optimization enabled. Someone on the forum talked about the possibility to use CTL functions in order to manage interrupts in mono tasking apps. Here's the example from ...


crossworks gcc dissassembly

Started by rseku in LPC200013 years ago 2 replies

Below is a view of code received in crossworks dissassembly in interleaved mode: IO0CLR = IOW; // Toggle IOW-signal 4A10 ldr r2, [pc,...

Below is a view of code received in crossworks dissassembly in interleaved mode: IO0CLR = IOW; // Toggle IOW-signal 4A10 ldr r2, [pc, #16] 2308 mov r3, #8 6013 str r3, [r2, #0] IO0SET = IOW; 4A10 ldr r2, [pc, #16] 2308 mov r3, #8 6013 str r3, [r2, #0] I think I0CLR has different address then I0SET. Is it possible, that the