EmbeddedRelated.com
Memfault Beyond the Launch

Crossworks - breakpoint in ISR?

Started by Markus Zingg in LPC200016 years ago 5 replies

Hi all, I'm new to crosswork and ARM, so please bear with me if this is a dumb question. I'm trying to debug code which uses an interrupt...

Hi all, I'm new to crosswork and ARM, so please bear with me if this is a dumb question. I'm trying to debug code which uses an interrupt service routine. I use ctl_set_isr() which hopefully should let me set the IRQ vector so as it points to the interrupt routine within my code. I also set a breakpoint in that routine. However, the code does not seem to be called, well, the breakp...


crossworks vs. source file not found

Started by Jan Vanek in LPC200014 years ago 3 replies

Hi Paul, some of my files are referenced via ../../something (because they are shared between projects) and this is not handled well by...

Hi Paul, some of my files are referenced via ../../something (because they are shared between projects) and this is not handled well by CrossStudio. I raised a ticket about it couple of months ago. Now when I try to open the .elf file the CrossStudio asks me to find all those files for it, one by one, by means of File-Open dialog. I have very many source files and my patience wa


JTAG scan chain newbie - five LPC2000s, two Lattice CPLDs

Started by Darcy in LPC200016 years ago 1 reply

Hi all... heck, the two of us have been struggling with this all day. I hope someone with a bit more knowledge can please lend us a...

Hi all... heck, the two of us have been struggling with this all day. I hope someone with a bit more knowledge can please lend us a hand... We're using an Olimex ARM-USB-OCD Arrangement TDI => LPC2136 => LPC2103 => LPC2103 => LPC2103 => LPC2136 => ISP4032 (Lattice CPLD) => ISP4064 (ditto) => => TDO We've been using Rowley Crossworks to try and address one of the ARM devices but


Problem running FreeRTOS standalone on LPC-E2294

Started by plovell2 in LPC200017 years ago 4 replies

Hi All, I currently have a problem where I can't get my software to run standalone on the LPC-E2294 dev board from Olimex. Using the...

Hi All, I currently have a problem where I can't get my software to run standalone on the LPC-E2294 dev board from Olimex. Using the CrossWorks compiler and FreeRTOS, I have a simple application that creates a task to flash an LED every second. Everything works fine when I debug it using the CrossConnect JTAG interface. But the problem I'm having is, if I now download the hex file an...


Timer and UART interrupt simultaneously

Started by "emiel.guide" in LPC200015 years ago 18 replies

I am working with Crossworks 1.7 and I am having some trouble with the interrupts that occur. The interrupts are working fine untill they occur...

I am working with Crossworks 1.7 and I am having some trouble with the interrupts that occur. The interrupts are working fine untill they occur simultaneously. (I have 5 interrupts total, 3 external(buttons)) The interrupts are all vectored based. Timer IRQ is on vector adress 0 to give it the highest priority. The programs seems to go to 'pabort handler' when there are more than 2 flags...


USB Driver for lpc2378

Started by pete...@esysr.com in LPC200016 years ago 6 replies

I am just getting started on using the USB interface on the lpc2378. Can anyone provide some example source code for a USB client...

I am just getting started on using the USB interface on the lpc2378. Can anyone provide some example source code for a USB client COM implementation. Ultimately I will be implementing a HID and possibly Mass Storage client with the lpc2378. Ideally the source code would be ported to CrossWorks Tasking Library but I am willing to port to run with CTL. Pete -----------------------------...


LPC1768 JTAG programming problem

Started by Thomas Weber in LPC200012 years ago 5 replies

Hello, when programming the LPC1768 on a custom board I always get verifier errors. The flash content doesn't change, also with erase...

Hello, when programming the LPC1768 on a custom board I always get verifier errors. The flash content doesn't change, also with erase all. All errors are in the first sector. The program runs into SVC handler after start, when ignoring the Verifier error. Any pointers on that? Thanks in advance. Thomas Weber IDE: Rowley Crossworks for ARM 2.1 JTAG: Amontec JTAGkey -------------...


FreeRTOS lpc2368 eclipse .hex file?

Started by sguerrer in LPC200016 years ago 1 reply

Hi, I was hoping if someone could send me a known working version of the FreeRTOS lpc2368 demo in either Intel hex format, or .elf format....

Hi, I was hoping if someone could send me a known working version of the FreeRTOS lpc2368 demo in either Intel hex format, or .elf format. I've tried building it in several different compilers (YAGARTO, WINARM, CrossWorks), and while it seems to compile fine, I'm unable to get blinking LEDs, an LCD display, or network connectivity. So, I'd like to try someone else's known working file t...


Assembly instructions in the C code

Started by Bruce in LPC200014 years ago 1 reply

I have some code in a project that uses assembly language. I am using CrossWorks and it doesn't like this. Here is the code: static inline...

I have some code in a project that uses assembly language. I am using CrossWorks and it doesn't like this. Here is the code: static inline unsigned __get_cpsr(void) { unsigned long retval; asm volatile (" mrs %0, cpsr" : "=r" (retval) : /* no inputs */ ); return retval; } Here is the error: `asm' undeclared (first use in this function) Anyone know how to use assembly in C...


LPC2103 User Manual

Started by Paul Curtis in LPC200018 years ago 3 replies

Hi All, Well, I have an LPC2103 board. Great, the silicon exists. Now, come along Philips, you need to publish the User Manual for...

Hi All, Well, I have an LPC2103 board. Great, the silicon exists. Now, come along Philips, you need to publish the User Manual for this, not just a wretched data sheet. -- Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk CrossWorks for MSP430, ARM, AVR and now MAXQ processors


LPC2136 big code crash problem

Started by Aleksandar Zivkovic in LPC200016 years ago 10 replies

Hello, I have a problem that gives me a headache for some time. I am working on an LPC2136 based platform on a project that was developed...

Hello, I have a problem that gives me a headache for some time. I am working on an LPC2136 based platform on a project that was developed on Rowley Crossworks before me. The platform includes different kind of devices such as: serial flash, bluetooth module, LCD graphic display , etc... Last months I moved that code to KEIL development environment.I was translating C code step by step and a...


I didn't RTFM:) LPC2129 - capture 3 on timer 0 - useable now?

Started by mjames_doveridge in LPC200017 years ago 7 replies

Hi all, I am using the Keil MBC2100 dev. board, (LPC2129), and the Rowley Crossworks dev. system, (GNU tools). So far, so good. The IDE,...

Hi all, I am using the Keil MBC2100 dev. board, (LPC2129), and the Rowley Crossworks dev. system, (GNU tools). So far, so good. The IDE, compiler etc. is err.. 'OK', (the IDE has bugs!). The 'ctl' multiTasker is fine and my threads/comms/interrupts are all working and then... Hidden somewhat in the Timer block diagram on page 222 of the Preliminary User Manual for the LPC2129, (2004, ...


Force variable address / C / Crossworks

Started by Jakub Szumacher in LPC200014 years ago 15 replies

Hello. I'm wondering if is possible to force variable address in definition. For example: I've got 3 variables: var1, var2, var3. I want...

Hello. I'm wondering if is possible to force variable address in definition. For example: I've got 3 variables: var1, var2, var3. I want place 'var1' in 0x40000100 and others variables ('var2', 'var3') linker decides. How to do this (code example)? regards Jakub


LPC2366 USB and ethernet RAM in crossworks

Started by drproton2003 in LPC200016 years ago 1 reply

Hello everyone, I've run out of SRAM in one of my project on the LPC2366 so I intend to use the USB and Ethernet ram. I've figured out how to...

Hello everyone, I've run out of SRAM in one of my project on the LPC2366 so I intend to use the USB and Ethernet ram. I've figured out how to modify the flash_placement.xml file to create the sections and I can now use __attribute__ ((section(".enet"))) to place a variable in ethernet RAM. This will work just fine, but since I will need to create a lot of variables in these sections I...


Re: Processor won't run without JTAG interface

Started by Paul Curtis in LPC200019 years ago 4 replies

The checksum? -- Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk CrossWorks for MSP430, ARM, AVR and now MAXQ...

The checksum? -- Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk CrossWorks for MSP430, ARM, AVR and now MAXQ processors > -----Original Message----- > From: Robert Wood [mailto:robert.wood@robe...] > Sent: 16 October 2005 18:53 > To: lpc2000@lpc2... > Subject: [lpc2


memory read operation timed out error

Started by aamir shakoor in LPC200013 years ago 1 reply

Hi, I just started working on stm32f103 processor using crossworks and crossconnect. Everything was working fine, suddenly it started giving...

Hi, I just started working on stm32f103 processor using crossworks and crossconnect. Everything was working fine, suddenly it started giving error "memory read operation timed out" I googled the "error" but could not find any answer. I know the group name is lpc2000 and may not be apropriate plateform to put the question. Yet I hope some one can help. Best regards Aamir ----------------...


Rowley Crossworks and running batch files before builds

Started by Darcy in LPC200016 years ago

Hi all, We're trying to implement a bit of auto-versioning but I'm having trouble working out how to run a batch file when I build the...

Hi all, We're trying to implement a bit of auto-versioning but I'm having trouble working out how to run a batch file when I build the project. The batch file queries SVN (SubWCRev) and pulls out revision numbers, dates, paths etc and creates a .h file that is then included by some of the source files in the project. Things I've tried (and the problems): Compiler Pre Build Command: Runs...


CTL tasking library with malloc/calloc

Started by sanylcs in LPC200015 years ago 11 replies

Anyone use CTL of Rowley Crossworks together with malloc/calloc (stdlib.h) before? i just did simple test. Two tasks running (task A and task...

Anyone use CTL of Rowley Crossworks together with malloc/calloc (stdlib.h) before? i just did simple test. Two tasks running (task A and task B). no time slice. inside one of the task there is a function (func_A inside task A)(No other things except infinite loop) that use malloc and free the memory before return. task A and B same priority. I made the task run so that it is (without func_A ...


stuck in ADC interrupt

Started by "yass.engineer" in LPC200014 years ago 5 replies

Hello Guys, I am using Crossworks and I realized that whenever I have AD0_INTEN initialised to: AD0_INTEN = 0xFF; Then I will be stuck in my...

Hello Guys, I am using Crossworks and I realized that whenever I have AD0_INTEN initialised to: AD0_INTEN = 0xFF; Then I will be stuck in my ADC ISR routine. If I leave AD0_INTEN to its default value where only ADGINTEN is set then my firmware works correctly. This is my ISR: static void AD0ISR(void) { unsigned int chan, val; val = AD0_GDR; val = ((val > > 6) & 0x03FF); chan = ((AD


heap, stack etc

Started by Jakub Szumacher in LPC200013 years ago 2 replies

In my Crossworks i found many variables: Heap size Stack size (Abort mode) Stack size (FIQ mode) Stack size (IRQ mode) Stack size...

In my Crossworks i found many variables: Heap size Stack size (Abort mode) Stack size (FIQ mode) Stack size (IRQ mode) Stack size (Supervisior Mode) Stack size (Undefinded Mode) Stack size (User/System Mode) I've never wonder what are they for. Could anyone explain me when my application use these parts of stack? (Paul - I know is basic question but dont be unkind for me, please. )...



Memfault Beyond the Launch