Debugging Information with DEBUG Print in IAR

Debugging Information with DEBUG Print in IAR

#include “stdafx.h” #include<stdio.h> #include<stdlib.h> #include<string.h> // Whether to enable DEBUG mode //#define _DEBUG_ 0 // Not enabled #define _DEBUG_ 1 // Enabled #if _DEBUG_ #define PRINTF(…) printf(__VA_ARGS__) #else #define PRINTF(…) #endif int main() { int a, b, c; b = 1; c = 2; a = b + c; PRINTF(“a = %d\n”, a); getchar(); return … Read more

Biomechanics of Spinal Deformities

Biomechanics of Spinal Deformities

Biomechanics of Spinal Deformities For progressive deformities, the spine is subjected to some form of “pathological” stress. Spinal surgeons need to understand the source of this “pathological” stress that causes the deformity. Only when these “pathological” stresses are counteracted and neutralized can the goals of correcting scoliosis, preventing deformity progression, and restoring sagittal and coronal … Read more

Using Noinit Section and Variable Allocation at Specified Addresses in IAR

Using Noinit Section and Variable Allocation at Specified Addresses in IAR

The noinit section is familiar to most of us developers working with microcontrollers. If this section is used, it will be automatically allocated by the compiler to a region in the chip’s SRAM (note that it is in the RAM area, not Flash). Variables defined in this section will not be re-initialized during any chip … Read more

Setting Up IAR Toolchain in CLion

Setting Up IAR Toolchain in CLion

Operating System: Windows (MinGW) / Linux Project Format: CMake When setting up a toolchain for your embedded project, you can use the IAR compiler. CLion recognizes it as a C/C++ compiler and collects compiler information. You can also open projects that use the IAR toolchain, which should load successfully. Currently, only CMake-based projects are supported. … Read more

Considerations for Using IAR Development Environment with AVR Microcontroller

Considerations for Using IAR Development Environment with AVR Microcontroller

Header File Meanings avr_macros.h includes simplified writing for reading and writing 16-bit registers, along with several bit manipulation functions. comp_a90.h provides brief writing for a large number of intrinsic functions. ina90.h includes the “inavr.h” and “comp_A90.h” files. intrinsics.h provides intrinsic functions that offer the simplest operations for handling the processor’s low-level features: sleep, watchdog, FLASH … Read more

IAR Embedded Workbench for Arm Fully Supports Xinch Technology 9 Series SoC and E3 Series MCU

IAR Embedded Workbench for Arm Fully Supports Xinch Technology 9 Series SoC and E3 Series MCU

✦ The latest version of IAR Embedded Workbench for Arm fully supports Xinch Technology’s 9 Series SoC and E3 MCU chips, helping developers in China’s automotive industry create powerful embedded development solutions. On June 17, 2022, IAR Systems, a global leader in embedded development software tools and services, announced in Shanghai that its latest release, … Read more

Important Considerations for Displaying Strings in LVGL V8.2 on Keil MDK (Example with Xiong Pai)

Important Considerations for Displaying Strings in LVGL V8.2 on Keil MDK (Example with Xiong Pai)

Click on the above “Embedded Application Research Institute” and select “Top/Star Public Account“ Useful Benefits Delivered First-Hand! Source | Embedded Application Research Institute Compiled & Styled | Embedded Application Research Institute Previously, I wrote a multilingual demo on the LVGL simulator CodeBlock to learn about the application of LVGL in multiple languages, as shown below: … Read more

Avoiding Overflow Errors in Keil C51 Large Integer Constants

Avoiding Overflow Errors in Keil C51 Large Integer Constants

The default integer constant operations in the C51 compiler may lead to overflow errors. To avoid potential calculation errors, the data type of large integers should be specified. Keil C51 is a compiler compatible with ANSI C. The ANSI C standard specifies that the default data types for decimal integer constants are one of int, … Read more