Questions tagged [iar]

IAR is a company that specialize in creating development tools for embedded systems. This tag focuses on the IAR C/C++ compiler, IDE and runtime analysis tools.

IAR, 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 debugger tool suite for applications based on 8-, 16-, and 32-bit MCUs
  • C-RUN: Runtime analysis tool for detecting data type casting, integer overflow and memory management errors
  • C-STAT: Static analysis tool with support for MISRA-C, CWE and CERT rules
  • IAR visualState: tools for designing, testing and implementing embedded applications based on state machines.
565 questions
7
votes
1 answer

Advice for running IAR Embedded Workbench for Arm with Dongle in Linux

I am running Ubuntu 10.04 and Wine 1.2. I was able to install the IAR software but it is unable to locate the dongle license. Is there anyway to use a dongle license in Wine with Ubuntu or do I have to use a PC license? Thanks in advance..
Cameron Peterson
  • 71
  • 1
  • 1
  • 3
6
votes
4 answers

Alignment of C structure in Internal FLASH memory

I have a configuration structure I would like to save on the internal flash of ARM cortex M3. According to the specifications, the data save in the internal flash, must be aligned to 32bit. Because I have lot's of boolean, and chars in my…
stdcall
  • 23,764
  • 14
  • 73
  • 118
6
votes
2 answers

How to reference segment beginning and size from C code

I am porting a program for an ARM chip from a IAR compiler to gcc. In the original code, IAR specific operators such as __segment_begin and __segment_size are used to obtain the beginning and size respectively of certain memory segments. Is there…
tomsgd
  • 910
  • 10
  • 22
6
votes
3 answers

How to configure Visual Studio Code to build a project with IAR compiler?

I want to use Visual Studio Code as my main IDE, but I want to compile my code with IAR's compiler. How could I configure VSCode ? I found this extension but the documentation is too poor.
Nymau
  • 124
  • 1
  • 8
6
votes
1 answer

What does BREAK mean in real terms while using a UART?

The break and error indication glows up in real terms while communicating with RS-232. Sometimes, the CTS is also will be glowing. Due to this, the data in prints as junk for some time; later it gets corrected after a few reset of real term. This…
MVA
  • 73
  • 1
  • 7
6
votes
2 answers

How to stop optimizer discard unused variables?

I would like to debug my code and can't access the internal layer in the process since this would disturb the communication with the hardware. (volatile operations are performed where the watchlist would interfere with the basic read accesses.) So…
dhein
  • 5,772
  • 4
  • 36
  • 70
6
votes
2 answers

IAR Embedded workbench create library

I want to create a simple library (C/ANSI) in IAR Embedded Workbench and then use the library in another project. I found some documentation on their website. Although I do not understand it entirely, I managed to make myself a .r90 file and from…
Teo
  • 3,246
  • 9
  • 37
  • 70
5
votes
1 answer

How to apply the `__ramfunc` instrinsic to a constructor?

I need to put all my code in ram (I'm writing the flash). I'm using IAR 7.80 and everything works fine with the __ramfunc intrinsic on every function but not for the C++ constructors. For example I have the following class: class Os_Timer { …
Ramon La Pietra
  • 558
  • 4
  • 11
5
votes
1 answer

Initializer list initialization of a member struct bitfield element causing bugs in IAR ARM

I have the following class structure in IAR: class A { public: A(){} virtual ~A() {}; virtual void load() {}; }; class C { public: C() { //C does other stuff, not relevant } }; class D; class B : public…
5
votes
1 answer

Compilation dependency when using static libraries in IAR Embedded Workbench

I want to separate my IAR Embedded Workbench workspace into several projects. Currently we have the OS and other code in the same project as the main application but I want the OS and other external code to be static libraries which my application…
Dina
  • 1,246
  • 1
  • 12
  • 30
5
votes
1 answer

On MSP430, what will happen when I dereference a null pointer?

I know dereferencing a null pointer is undefined - but I would like to know what happens on a specific target - an MSP430. I don't have a board to load this on in front of me to test this out right now. What would happen if I did this (or…
Nick
  • 1,133
  • 1
  • 12
  • 30
5
votes
3 answers

Why does the IAR compiler get stuck?

In my embedded project, using IAR EWARM dev tools (v7.10.3), I have the following piece of code: /* 1 */ uint32_t packet_sync = 0; /* 2 */ uint32_t synced = 0; /* 3 */ uint32_t gpio = 0; /* 4 */ while (1) { /* 5 */ if…
ysap
  • 7,015
  • 7
  • 51
  • 105
5
votes
2 answers

How resolve a warning in IAR 'Reset_Handler'

I'm using IAR ARM 7.10 and getting a warning: Warning[25]: Label 'Reset_Handler' is defined pubweak in a section implicitly declared root... It is cause the system reset sometimes. How do I resolve this warning?
user3428151
  • 431
  • 6
  • 21
5
votes
2 answers

Renaming in IAR Embedded Work Bench

Is it possible to rename workspaces or projects? I am using 6.5_2 (although I have full versions of previous releases 4.0, 6.0)
user611089
5
votes
1 answer

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…
Jeff
  • 1,929
  • 2
  • 21
  • 34
1
2
3
37 38