iar

How to fix a "[Lp002]: relocation failed with IAR ARM tools?

I created a small module in assembler for ARM, to be linked together with my bare-metal embedded application. Sometimes when I'm rebuilding the application, I get a "Error[Lp002]: relocation failed: valued out of range or illegal". What is even more puzzling is that I'm getting the error after commenting out some code in a C module. T...

ARM Data Abort error exception debugging

So now I understand that I'm getting a ARM Data Abort exception - I see how to trap the exception itself (a bad address in the STL library), but I would like to walk back up the stack frame before the exception. I'm using the IAR toolchain, and it tells me the call stack is unavailable after the exception - is there a trick way to convin...

Is IAR assembler possible to import #define from C header to assembler?

Hi All, I have a mixed assembler and C project based on IAR ARM. I have some #define in C header, I like to use (import) them in assembler file. Could anybody tell me it is possible? Many thanks. ...

problem in printing floating point

hi I am using IAR c compiler, I am trying to print floating point value like printf("version number: %f\n",1.4); but I am always getting like below in console version number:ERROR help please thanks in advance kudi ...

FreeRTOS configTICK_RATE_HZ problem

Hi, I am using an MSP430f5438 with version 5.4 of FreeRTOS. I am having a funny problem that I can't figure out. Basically, when I set configTICK_RATE_HZ to different values, the LED blinks faster or slower; it should stay the same rate. It blinks slower the higher i set configTICK_RATE_HZ, and faster when I set TICK_RATE lower. vTas...

FreeRTOS Sleep Mode hazards while using MSP430f5438

Hi, I wrote an an idle hook shown here void vApplicationIdleHook( void ) { asm("nop"); P1OUT &= ~0x01;//go to sleep lights off! LPM3;// LPM Mode - remove to make debug a little easier... asm("nop"); } That should cause the LED to turn off, and MSP430 to go to sleep when there is nothing to do. I turn the LED on during...

I am at the point I need to purchase IAR, Code Composer 4, or something else for MSP430 development

I have been using IAR so far, but it crashes sometimes and doesn't have code completion. Also, the other dev environments I use are eclipse based. Which one should I buy? ...

Batch build using IAR tools

I am trying to do a batch build of a project using IAR tools. The processor is a CC2530, and it builds fine in the IDE. I have followed the documentation for batch build (Project/Batch Build) and created a .cspy file that is suppose to be my batch file, but in the comments in that file it indicates that I need a debug file (.ubrof) to ex...

IAR MSP430 compiler internal error while compiling

IAR C/C++ Compiler for MSP430 5.10.1 [Evaluation] (5.10.1.20144) I get an illegal state internal error when attempting to compile the FreeRTOS 5.4 Task.c file (everything else compiles fine) Internal Error: [CoreUtil/General]: Illegal state The kick start version of IAR (MSP430 version) works fine. Any thoughts? ...

Profiler for IAR EW for ARM

I am trying to get the profiler plug-in for IAR Embedded Workbench for ARM to work. I have set everything in the documentation but when I fire up C-Spy and start the plug-in I get errors. I tried to different emulators and each gave a different error: Segger SAM-ICE JTAG Emulator - The following appears in the debug log: Thu May 27 12:...

IAR Embedded Workbench - setting endian-ness of variable

I'm using IAR Embedded Workbench for ARM (ARM7TDMI-S) and the majority of my work is done using little-endian format. However, I saw in the manual that I can do something like : __big_endian int i, j; to declare those two variables as big endian (while the rest of the app as little endian). This seems like a fantastic feature, but w...

USB driver problem - "could not find a better match for your hardware", but still doesn't work

I am having a USB driver problem with a TI ccdebugger module. I am running XP and using the ccdebugger with the IAR IDE. Once upon a time about 2 months ago this was working, but when I tried it recently it was broken. I have uninstall the driver and now I am trying to re-install it. When I plug in the USB cable I get a "USB Device Not R...

STM32 printf problem

* UPDATE * here is what I found. Whenever I had that function in there it wouldnt actually make the code lock up. what it would actually do is make the Read RTC I2C function very slow to execute but the code would still run properly, but I had to wait a really long time to get past everytime I read the RTC. so what ended up happening wa...