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
3
votes
1 answer

Sample Splint options file for Windows

I am trying to make splint work with an embedded project I am working on. I was wondering if there was a sample .splintrc options file to which I can add my own options/configuration to simplify the whole process. I am using IAR workbench for…
thunderbird
  • 2,715
  • 5
  • 27
  • 51
3
votes
1 answer

FreeRTOS configTICK_RATE_HZ

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…
michael
  • 2,577
  • 5
  • 39
  • 62
3
votes
2 answers

How to rewrite this asm code in C?

CPU: 8051 based The following lines of code will set 0xaa value at 0x0aaa address in external flash memory. mov a,#0aah mov dptr,#X0aaa movx @dptr,a The following is mov The MOV instruction allows data to be transferred between any…
Pablo
  • 28,133
  • 34
  • 125
  • 215
3
votes
1 answer

FATFS on ST32 with device configured as USB drive

I'm currently developing an application for an ST32 (STM32F103xC) using Micrium OS-II. So far it's all gone smoothly, but I've hit a block now and can't proceed. The board is configured to act as a USB storage device using the SD card so that the…
Julian Gold
  • 1,246
  • 2
  • 19
  • 40
3
votes
2 answers

How do I fill unused memory on an STM32 with a reset vector?

I'm using an STM32F100 value line processor with IAR. I'd like to fill the unused code memory with a jump to the Reset_Handler (or HardFault_Handler). How do I do this using IAR?
amo
  • 4,082
  • 5
  • 28
  • 42
3
votes
2 answers

How to save IAR IDE disassembly window contents to a file?

Using IAR IDE for building ARM executables from C source, I can see the disassembly, including labels, addresses, opcode and instructions in the relevant window. I am trying to dump the contents of a range of addresses to a text file, but can't find…
ysap
  • 7,723
  • 7
  • 59
  • 122
3
votes
1 answer

How to stop file names/paths from appearing in compiled C binary

This may be compiler specific, in which case I am using the IAR EWARM 5.50 compiler (firmware development for the STM32 chip). Our project consists of a bunch of C-code libraries that we compile first, and then the main application which compiles…
Matt
  • 33
  • 3
3
votes
1 answer

IAR Embedded Workbench cannot find files, Pe1696, even though it is searching for them

I am using IAR Embedded workbench 5.51 for MSP430. I am using C99. I am trying include code from a third party library. I have copied the directory structure of this third party library exactly within a sub-directory in my main project directory.…
Nick
  • 1,361
  • 1
  • 14
  • 42
3
votes
1 answer

cortex m3, stm32L1XX bit-banding

I'm following the guide given at micromouseonline . com/2010/07/14/bit-banding-in-the-stm32 . I'm using IAR EWARM and Cortex M3. Everything works fine but I'm not able to set the bits in a given address. Im using STM32L151xD and IAR EWARM…
Abhishek Thakur
  • 16,337
  • 15
  • 66
  • 97
3
votes
5 answers

call stack unwinding in ARM cortex m3

I would like to create a debugging tool which will help me debug better my application. I'm working bare-bones (without an OS). using IAR embedded workbench on Atmel's SAM3. I have a Watchdog timer, which calls a specific IRQ in case of timeout…
stdcall
  • 27,613
  • 18
  • 81
  • 125
3
votes
1 answer

Does SPI really need waiting loop?

I am using msp430f5418, with IAR Embedded workbench 5.10. A Graphical LCD (ST7565R) is connected through SPI into the MSP.. MSP master uses 8-bit, MSB first mode with SMCLK. Normally we have to check the busy bit before transferring a byte using…
Harikrishnan
  • 3,664
  • 7
  • 48
  • 77
3
votes
4 answers

Does defining enum type has a heavy memory imprint?

I am working with embedded device, with 32K of memory, writing in plain C using IAR EWARM v6.30. To make code more readable I would like to define some enum types, for example, something like {RIGHT_BUTTON, CENTER_BUTTON, LEFT_BUTTON} instead of…
Flot2011
  • 4,601
  • 3
  • 44
  • 61
2
votes
1 answer

IAR Embedded Workbench MSP430 and *.lib files linking

I was assuming that it was a really simple task but I did not find anything relevant or my mistake. So putting my problem here i.e. I have some project for MSP430 which is actually in code composer studio. I have to run this whole code into IAR…
jahmed
  • 151
  • 4
  • 11
2
votes
1 answer

#define #include and #undef in C for embedded

I'm trying to understand an old code not writte by me. I've a file called task.c with its task.h. On the task.c, at the very beginning there's #define TASK #include "task.h" #undef #include "main.h" ... extern struct s_system sys; and in the…
NicoCaldo
  • 1,171
  • 13
  • 25
2
votes
2 answers

how to include C #defines in an .icf linker files?

I have a IAR workplace with several projects running on the same STM32 hardware. I have a header memory map file (mmap.h) that describes the flash section addresses (boot location, application, permanent storage ect..) that is made available to the…
morfl
  • 21
  • 2