Switching Tasks in ThreadX RTOS

Switching Tasks in ThreadX RTOS

Using the QEMU simulator to outline the ThreadX task scheduling process.0. Build ExampleCreate Task 0 and Task 1 #include "tx_api.h" #include "tx_thread.h" // Task 0 entry void thread_0_entry(ULONG thread_input){ TX_THREAD *current_thread; thread_0_counter++; TX_THREAD_GET_CURRENT(current_thread); tx_thread_terminate(current_thread); } // Task 1 entry void thread_1_entry(ULONG thread_input){ while(1) { /* Increment the thread counter. */ thread_1_counter++; while(1); }} // Create … Read more

From Startup to First Task Execution in ThreadX RTOS

From Startup to First Task Execution in ThreadX RTOS

Utilizing the VSCode debugging environment to observe the startup process of ThreadX.0. Startup AnecdoteThe example program for the debugging environment built on ThreadX RTOS encounters a HardFault exception, as shown in the figure below.However, this issue does not occur on another host. The same example code, when debugged step by step, locates the specific instruction … Read more

Renesas RA0E1 Development Board Review | ThreadX RTOS Serial Echo Test

Renesas RA0E1 Development Board Review | ThreadX RTOS Serial Echo Test

Renesas RA0E1 Development Board Review | Renesas RA0 Development Board Evaluation Report SPI-OLED First, I would like to thank Jialichuang for providing the Renesas development board evaluation activity. RA0E1 Block Diagram RA0E1 Features 32MHz Arm Cortex-M23 core Up to 64KB Flash and 12KB SRAM 1KB Data Flash (100,000 P/E cycles) 16-pin and 32-pin package options … Read more

ST’s First Version of the New ThreadX Middleware + FreeRTOS Released

ST's First Version of the New ThreadX Middleware + FreeRTOS Released

【Origin of the Issue】 Previously, a post was made regarding: ST’s upgrade of the ThreadX RTOS software package x-cube-azrtos-h7, dispelling the “abandonment of ThreadX” rumors.【Release of the First Version】A version has been released on ST’s GitHub for the H5 chip, and those interested can try it out.Currently, it mainly includes several examples of FileX and … Read more

Setting Up a Debugging Environment for ThreadX RTOS

Setting Up a Debugging Environment for ThreadX RTOS

Setting up a software debugging environment for Cortex-M3 based on QEMU in VSCode.1. Obtain the ThreadX source code https://github.com/eclipse-threadx/threadx 2. Install the compiler and QEMU emulator in WSL sudo apt update sudo apt install gcc-arm-none-eabi binutils-arm-none-eabi gdb-multiarch sudo apt install qemu qemu-system-arm 3. Compilethe ports/cortex_m3/gnu exampleWrite shell build scripts b0.sh and b1.sh for the WSL … Read more

ThreadX: Summary of Application Layer APIs

ThreadX: Summary of Application Layer APIs

In the ThreadX real-time operating system, the API functions that users can call cover various aspects such as task management, synchronization mechanisms, memory management, timers, event flags, message queues, and debugging. Below is a list of ThreadX user interface functions categorized by functionality: 1. Thread Management Functions Function Interface Function Create Thread <span>tx_thread_create()</span> Delete Thread … Read more

Easily Porting the ThreadX Ecosystem Using STM32CubeMX

Easily Porting the ThreadX Ecosystem Using STM32CubeMX

STM32CubeMX 6.15.0: Easily Porting the ThreadX Ecosystem, Development Has Never Been So Smooth! 1. The version of STM32CubeMX used is 6.15.0 2. Declaration: This article takes STM32F407 as an example First, let’s take a look at which series are currently supported. We can see that the F series only supports F4 at a minimum, while … Read more

Comparative Analysis of FreeRTOS, Zephyr, ThreadX, and Mbed OS

Comparative Analysis of FreeRTOS, Zephyr, ThreadX, and Mbed OS

Introduction: Why the Choice of RTOS Can Be a Game Changer Choosing an RTOS (Real-Time Operating System) is one of the most strategic decisions in embedded product development. It determines how devices handle tasks, respond to events, and the reliability of cross-platform scalability. With the increasing diversity of connected devices (from low-power wearables to complex … Read more

Comparative Analysis of FreeRTOS, Zephyr, ThreadX, and Mbed OS

Comparative Analysis of FreeRTOS, Zephyr, ThreadX, and Mbed OS

Introduction: Why the Choice of RTOS Can Be a Game Changer Choosing an RTOS (Real-Time Operating System) is one of the most strategic decisions in embedded product development. It determines how devices handle tasks, respond to events, and the reliability of cross-platform scalability. With the increasing diversity of connected devices (from low-power wearables to complex … Read more

ThreadX Family Officially Returns with the Release of Version 6.4.2 After Transition to Eclipse

ThreadX Family Officially Returns with the Release of Version 6.4.2 After Transition to Eclipse

【Description】1. It has been almost 15 months since the announcement of the transition to the Eclipse Foundation on November 22, 2023, and we finally welcome the first version update. The transition took quite a while, but it has returned.2. Currently, any chip from any manufacturer can be used for free commercial purposes, which is the … Read more