Questions tagged [iar]

Anything related to the productions of IAR Systems. IAR Systems is a Swedish computer software company that offers development tools for embedded system. IAR Systems develops C and C++ compilers, debuggers, and other tools for developing and debugging firmware for 8-, 16-, and 32-bit processors.

Anything related to the productions of IAR Systems. IAR Systems is a Swedish computer software company that offers development tools for embedded system. IAR Systems develops C and C++ compilers, debuggers, and other tools for developing and debugging firmware for 8-, 16-, and 32-bit processors.

54 questions
8
votes
1 answer

Writing bytes to internal flash memory blocks all interrupts on the STM32L0 despite moving the vector table and ISR functions to RAM

The Context I have a embedded system running on an STM32L053 processor that needs to process STM32 hardware timer interrupts regularly and cannot be disabled. These top-priority interrupts cannot be prevented because it could cause a failure in the…
Alex C
  • 347
  • 2
  • 12
5
votes
1 answer

Atmel Xmega PWM problem

I am trying to get the pwm working on the Atmel Xmega256A3BU. I am not getting the desired PWM on the port pin. Here's my initialization for the PWM generation in the code. void pwm_init() { PORTC_DIR = 0x01; //Set PC.0 as the output…
Jimit
  • 423
  • 5
  • 14
5
votes
1 answer

Run IAR Program without Debugging

I'm having a simple problem with IAR Embedded Workbench, programming an STM32 using an ST-LINK/V2 programmer. I'm trying to run a program that temporarily switches off the JTAG pins, so I can't run it all the way through in debug mode. What I would…
Reiik
  • 71
  • 1
  • 3
5
votes
1 answer

How can I log information from code in IAR Embedded Workbench to a log file?

I'm trying to develop an application for the NXP LPC1788 microcontroller and I would like to be able to log formatted strings at arbitrary points within the source code to a log file in a way that has negligible impact on the performance of the…
Tagc
  • 151
  • 1
  • 4
5
votes
3 answers

Where is the C API reference for the MSP430? CCS version

I see a lot of sample code and tutorials, but where is it documented that symbols (defines) such as P1OUT and P1DIR are available and what are their semantics? I see a list with one-phrase comments in the header files, but that's the same as…
necromancer
  • 407
  • 1
  • 3
  • 11
4
votes
3 answers

Why IAR Compiler?

I just saw an Application Note from Atmel about how to compile some code in IAR and I wonder, why would anyone use an external compiler if Atmel already provides the Atmel Studio, with a Visual Studio interface? I expect that Atmel Studio will have…
mFeinstein
  • 4,293
  • 11
  • 45
  • 84
4
votes
1 answer

Using Git version control software with IAR Embedded Workbench

I have been using Git / Bitbucket to manage versioning for Altium and MPLAB and have recently started using IAR for the STM8 series MCUs for a series of projects. Is there any Git integration to IAR Embedded Workbench or will this be a more manual /…
4
votes
1 answer

Implement cryptography algorithms in an ARM microcontroller

Assume a situation in which you want do some encryption procedures in your ARM microcontroller. (Receive a file, encrypt with 3DES and some hash functions and returning it, for example.) As far as I know we have two option here: Reinventing the…
User1-St
  • 143
  • 4
4
votes
0 answers

How to know the memory occupied by the various memory segments in a microcontroller

I'm using STM32 based microcontroller, IAR embedded workbench and STlink v2 debugger. I just want to know how to check the memory utilized/used by the program/system in various memory segments like: Data segment(initialized and uninitialized) heap…
Myanju
  • 213
  • 1
  • 3
  • 9
3
votes
0 answers

ISR won't modify a global variable (IAR)?

First, some background on what I'm working on. I have a custom board with ATmega324A that I designed as part of a project I'm working on. Originally, software for the uC was written for GCC in Atmel Studio. Now I need to port it from GCC to the IAR…
0xd4v3
  • 99
  • 7
3
votes
1 answer

Smartfusion2 Programmer Error

I have recently start using the M2S150 Development kit from Microsemi and have run into an issue when attempting to program the board (via Libero 12.1). When running the "Run PROGRAM Action" command the log reports the following Error: programmer…
3
votes
2 answers

IAR ARM Place const symbols in flash

I have the following flash section defined in my linker file: keep { section .SomeConst }; place at address mem: 0x0003F800 { readonly section .SomeConst }; In my code I have the following symbols defined: #pragma location = ".SomeConst" __root…
BAO
  • 78
  • 1
  • 5
3
votes
2 answers

Is printf debugging over JTAG (not SWD) with STM32 possible?

The question is very similar to this one: I'd like to to printf debugging via the ST-LINK adapter and JTAG, not SWD, in IAR Workbench. Is this possible?
Markus
  • 133
  • 6
3
votes
3 answers

How come Misra C checker is such a prestigious tool?

Professional compilers such as IAR Embedded Workbench offer Misra C checkers only in their premium versions. Isn't Misra C checker a style checker on elements like indentation, variable names? Why does it seem to be so highly sought after?
Kar
  • 1,517
  • 1
  • 15
  • 35
2
votes
1 answer

IAR EWARM gives error on everything in startup_stm32

I'm trying to compile a project for school, which all my fellow classmates have no trouble compiling. This assignment is nothing more than dragging already written source code and compiling an, already proven to be a working, program. I have added…
mickey
  • 179
  • 1
  • 7
1
2 3 4