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
-1
votes
2 answers

__no_operation invalid in C99 IAR 9.20.4

I've an old code that perfectly works in IAR IAR 7.60 I would like to port it to IAR 9.20.4. The only issue while compiling is that I got a __no_operation(); line of code that generates an error while compiling IAR reports the error…
NicoCaldo
  • 1,171
  • 13
  • 25
-1
votes
1 answer

STM32F7: How to place selected modules' code to ITCM along with their readonly (const) data (IAR)?

I want to place parts of code in ITCM (using IAR). The manual (IAR ARM Development Guide), as I could find, has instructions only for general case when you put all the code in RAM. But my app does not fit in ITCM, so I need a way to specify which…
wowa
  • 1
  • 3
-1
votes
1 answer

IAR - Adding pre-build command to increase build number

I need to increase the version number every time I compile the project
vagner.k
  • 1
  • 1
-1
votes
1 answer

IAR compiler "stdio library"

I am using IAR embedded workbench software for ARM CORTEX M7 controller. I have already included stdio.h library and it have fopen function like this but when i am declaring my file pointer like this FILE *fpointer; Its giving me these two…
Ati
  • 43
  • 5
-1
votes
1 answer

Function block architecture in a C program

I would like a create a software where some functions (or block) can be programmed later on my micro controller without having to flash the entire software again (flash will be done by a communication interface e.g. SPI). The new blocks will all…
Stabilo
  • 45
  • 5
-1
votes
1 answer

Compatibility between IAR C/C++ Compiler and GCC

I have a code-block, which is written in C for IAR C/C++ Compiler. __no_init uint8_t u8ramPhysStart_startUp @ 0x20000000; __no_init uint8_t u8ramPhysEnd_startUp @ 0x2002FFFF; __no_init uint8_t u8ramTestStart_startUp @ 0x20004008; __no_init uint8_t…
nasil122002
  • 127
  • 1
  • 3
  • 15
-1
votes
1 answer

Why task is not entered?

I'm using freertos with Hal stm library, for running three tasks, the first one with stack size 128 the second with 512 while the third one is 1100. The three tasks are created successfully, but when running the scheduler only switches between the…
-1
votes
2 answers

How to force IAR to use desired Cortex-M0+ instructions (optimization will be disabled for this func.)

I need to force IAR tp use certain Cortex-M0+ instruction in some part of my code while codding with C. Please do not offer pure asm functions or inline asm etc. I have managed to do this for 51 instruction but could not for ; ADR, BLX, RSBS,…
-1
votes
1 answer

Function that toggle LED on and off

is it possible to toggle a bit to 0 when it is 1 and to 1 when it is 0? For example,00000000 go through the function will 00000001 and when the 00000001 go through the function again, 00000001 will become 00000000. Is it possible?
Ah Îoon
  • 49
  • 1
  • 8
-1
votes
1 answer

HAL_LED_MODE_ON

it me AGAIN. Sorry guys, I am just a newbie in embedded and I am learning the basic first. Well, I am playing with the LED and I found out the header file define this #define HAL_LED_MODE_ON 0x01 HAL_LED_MODE_BLINK 0x02. Could anyone tell me what…
Ah Îoon
  • 49
  • 1
  • 8
-1
votes
1 answer

Does the order of options for linker make difference in the .map file or not?

Does the order of options for linker make difference in the .map file or not ? I have software and I compiled it with options for linker and I built code then I changed the order of the option for the linker and make build a gain for the code but…
-1
votes
1 answer

getting Error[Pe020]: identifier "" is undefined in IAR with an typedef enum

I haven't found any solution on internet and this is why I am asking here. My Led_TypeDef variable is undefined in MyDriverConfig.h. First, I have definded in MyApplications.h: /* Define to prevent recursive inclusion…
pwdusid
  • 11
  • 1
  • 3
-1
votes
1 answer

IAR Embedded Workbench error

I have a question about IAR Embedded Workbench IDE. I have WIFI module which is named MSP-EXP430FR5739. I don't know this error. Error is below: Fatal Error[e72]: Segment DATA20_Z must be defined in a segment definition option (-Z, -b or -P) Error…
user4409561
-1
votes
2 answers

Memory leak analysis of IAR workbench (EWARM)

I have recently bought IAR Workbench IDE for ARM (EWARM). My license does not include C-RUN to do memory leak check. Is it possible to use a 3rd party tool, like Valgrind to be able to perform a memory leak analysis?
sven
  • 1,101
  • 7
  • 21
  • 44
-2
votes
1 answer

How to solve expression must have a constant value error in IAR?

I get the compile error: "expression must have a constant value", even though size is a constant. where is my fault ı can't find it?? void foo(int n) { int x[n]; int i = 5; if (i == 0) i--; x[i] = 5; //OK, since i is 4 …
1 2 3
42
43