Questions tagged [iar]

IAR Systems supplies software development tools and services that make embedded systems fast, efficient and reliable for companies worldwide. This tag focuses on the IAR C/C++ Compilers, IDE and code quality analysis tools.

IAR Systems, an embedded system technology company founded in Sweden in 1983, specialize in creating development tools for embedded systems. Products include:

  • IAR Embedded Workbench: C/C++ compiler and a state-of-art debugger for developing applications targetting microcontrollers ranging from the smallest 8-bit devices up to high-performance 64-bit architectures from more than 70 silicon vendors.
  • IAR C-STAT: Static analysis add-on with support for MISRA-C, CWE and CERT rules
  • IAR C-RUN: Runtime analysis add-on for detecting data type casting, integer overflow and memory management errors
  • IAR Build Tools: All the build tools components from the Embedded Workbench for building from the command line, ideal for Continuous Integration and Modern Developent Workflows. Now also available for Linux.
  • IAR Visual State: tools for designing, testing and implementing embedded applications based on state machines.
638 questions
2
votes
1 answer

Headless build using Eclipse CDT with the IAR plugin

I have a C project which was created with Renesas e2studio for Synergy and compiled with IAR Embedded Workbench for Renesas Synergy. I would like to take advantage of Eclipse's headless build option to build it from command line. I tried…
sharpgeek
  • 481
  • 2
  • 14
2
votes
3 answers

Is there a way to #define a C macro that is only defined while in an Eclipse editor window?

I'm using Eclipse Galileo with CDT for C development targeting embedded devices. Like so many other compilers targeted at µcontrollers, the IAR compiler uses some non-standard variable types that Eclipse/CDT doesn't recognize and flags them as…
oosterwal
  • 1,479
  • 8
  • 16
2
votes
1 answer

How to define a symbol for total image size or its end address in IAR linker script?

I'd like to define a symbol in IAR C program to get the total size (or the end address) of the image, in the build time, so that this size or offset will be contained in the image after linking. (I know that this can be done in a post-build action.…
ddbug
  • 1,392
  • 1
  • 11
  • 25
2
votes
1 answer

"Expression preceding parantheses of apparent call must have (pointer-to-) function type" error in IAR EW

I am developing a project in IAR Embedded Workbench and I keep getting an error from function-like macros. The error and snippet of my code that causes the error is below. Build Log: Error[Pe109]: expression preceding parentheses of apparent…
2
votes
1 answer

Using #define (preprocessor values) from a C/H file in IAR linker script (.icf)

I need the usage of a certain #define value from a header into an icf file. Consider this, I have a line in a certain header file like this. #define LINKER_VALUE 0 If this LINKER_VALUE changes to 1, I have to do certain modifications in the icf…
2
votes
1 answer

Unable to see static variables when debugging CC430F6137 using IAR Embedded Workbench 430 5.3

I've been searching for why for two hours. Now I'm using IAR Embedded Workbench Evaluation 5.30 to debug on a CC430F6137 dev kit board. As I have declared some global static variable, I realize that I am not able to watch that correctly. They are…
Zhongjie Wu
  • 307
  • 3
  • 12
2
votes
1 answer

How to automatically disable/delete a breakpoint in IAR after it gets hit?

Is is possible to set a breakpoint in IAR embedded workbench for ARM IDE, in a way that after it hits once it gets deleted/disbled automatically? I know already a way to do that using C-SPY macros and __setCodeBreak() and then __clearBreak()…
Kepler
  • 31
  • 4
2
votes
0 answers

Assembly: Error[66]: Segment too long (max is ffff)

I created a new Assembly project in which I will write a test.s file and just link against an entire app and its mocks (both of those are in Assembly too). The test.s file is mostly empty so far, yet when now compiling everything it just says…
2
votes
3 answers

IAR Embedded Workbench menu bar missing

I have IAR Embedded Workbench - ARM 8.20.2 in a production environment and it looks like someone hit something causing the menu bar to be hidden. There are no obvious hamburger menus, dropdowns, etc that I can click on to easily get it back, just a…
scaffire
  • 41
  • 4
2
votes
1 answer

IAR linker copy code from FLASH to RAM during initialization

I want to run code in RAM and use initialize copy by directives. My .icf file is as follows: define symbol __ICFEDIT_intvec_start__ = 0x08000000; /*-Memory Regions-*/ define symbol __ICFEDIT_region_ROM_start__ = 0x08000000; define symbol…
ctaoist
  • 81
  • 1
  • 6
2
votes
2 answers

Array size defined in a Variable in C cannot compile in IAR but builds fine in Keil

#include int main() { int x = 5; int length = 5+x; int arrayw[length]; return 0; } This code builds fine in gcc and Keil but not in IAR. I get this error : Error[Pe028]: expression must have a constant value…
Raulp
  • 7,758
  • 20
  • 93
  • 155
2
votes
1 answer

IAR EW: Add new device

I would like to use the ADuCM355 MCU of Analog Devices. This device is integrated in the current IAR EW version 8.40.1 but not in my licensed version 8.11.2. So I'm searching for a solution to integrate the MCU to my older IAR version. I just found…
PascalS
  • 975
  • 1
  • 16
  • 40
2
votes
2 answers

Cortex M3 jump from application back to bootloader and back to application

I have a bootloader and a firmware where the initial jump from bootloader to firmware works like a charme but when I have the scenario jumping back from application, make some stuff and jump back to my application. There I got some curious problem …
Stephan
  • 23
  • 4
2
votes
0 answers

Memory allocation clarification required

Here is the picture of a variable placement in STM32L152VBX memory with IAR IDE (8.30). I am using C. _gprs_inited is a static variable (8bit), send_data_with_gprs is a function, _failed_gprs_counter is a static variable (8bit) declared inside…
Harikrishnan
  • 3,664
  • 7
  • 48
  • 77
2
votes
1 answer

Linker Double Redirect (IAR EWARM)

I have an IAR STM32 project where I am need to wrap a library function with some custom logic. I do not have the ability to recompile the library itself, so what I would like to do is create a function libfunction_shim that calls into the original…
GregoryComer
  • 740
  • 8
  • 18