Questions tagged [threadx]

ThreadX, developed and marketed by Express Logic, Inc. of San Diego, California, USA, is a real-time operating system (RTOS).

ThreadX, developed and marketed by Express Logic, Inc. of San Diego, California, USA, is a real-time operating system (RTOS). The name ThreadX is derived from the fact that threads are used as the executable modules and the letter "X" represents context switching, i.e., it switches threads.

Like most RTOSes, ThreadX uses a multitasking kernel with preemptive scheduling, fast interrupt response, memory management, interthread communication, mutual exclusion, event notification, and thread synchronization features. Major distinguishing characteristics of ThreadX include priority inheritance, preemption-threshold, efficient timer management, picokernel design, event-chaining, fast software timers, and compact size.

ThreadX is generally used in real-time embedded systems, especially in deeply embedded systems. Developing embedded systems using ThreadX is usually done on a host machine running Linux or Microsoft Windows, using cross-compiling target software to run on various target processor architectures.

59 questions
0
votes
0 answers

NX_NOT_CONNECTED status returned from nx_tcp_client_socket_connect API while trying to run TCP echo client example using STM32H757 and NetXduo

I am working on a project to establish TCP communication with STM32H757 Eval Kit and PC. But the TCP communication is unsuccessful. (ThreadX, NetXduo are used) Steps: nx_tcp_socket_create -> Successful nx_tcp_client_socket_bind ->…
0
votes
1 answer

ARM A76 watchpoint does not work, after correctly configuring the register

I want to monitor a specified address on an ARM A76 machine and enter an exception when the address is loaded from. However, I did the configuration and did not get the exception. My process is as follows: Set MDSCR_EL1.KDE and MDSCR_EL1.MDE to 1…
qwe
  • 1
0
votes
0 answers

Windows driver for Azure RTOS FileX with fault tolerant mode enabled

I'm working on a development project which incorporates Azure ThreadX RTOS. The embedded system contains an sdcard on which we would like to enable FileX's fault tolerant mode to make it more resilient to filesystem corruption. The problem is that…
Ken
  • 1
0
votes
1 answer

Porting from threadX to freertos in embedded device

I would like to know what things are being considered when you port a codebase from Threadx to FreeRtos on an embedded device provided that the embedded device architecture are different. I am very novice to this porting activity in embedded…
golo
  • 41
  • 7
0
votes
0 answers

ThreadX Event Flags Result

I've got 2 threads; Brain Thread => Responsible from state machine Terminal Thread => Responsible from Uart communication When Brain wants to open UART communication it signals the Terminal via Event Flag, and wait till the result of "open uart…
varstas
  • 335
  • 10
  • 19
0
votes
2 answers

Equivalent function in Azure RTOS ThreadX

I want to switch from FreeRTOS to Azure RTOS ThreadX. In FreeRTOS there is the function xQueueSendToBackFromISR() - It is used to write data to the queue from an interrupt service routine. FreeRTOS interrupt provides an interrupt safe version of…
user21288868
0
votes
0 answers

How to modify files stored in the Flash of STM32F4 and used by the Http Web Server of AZURE NetxDuo?

Context of the question I am working with AZURE RTOS (that is ThreadX) and I have implemented an HTTP web server application starting from the application example called Nx_WebServer and prepared for the demo board STM32F429ZI-Nucleo. Here there is…
frankfalse
  • 1,553
  • 1
  • 4
  • 17
0
votes
1 answer

Azure NetX Duo only provides the driver for LAN8742 compatible Ethernet PHYs. How can I manage other Ethernet PHYs?

I'm developing an application for STM32F4 with Azure RTOS Netx Duo. In particular I'm trying to adapt the example Nx_TCP_Echo_Server application for my board where is present the Ethernet Phy ADIN1200 produced by Analog Devices. Note about example…
frankfalse
  • 1,553
  • 1
  • 4
  • 17
0
votes
1 answer

Azure RTOS ThreadX with STM32L476VG

I would like to install threadX on a STM32L476VG. I am quite new to RTOS programming. As I set up some simple applications I run into a HardFault whenever I called the tx_thread_resume function within an interrupt routine (lets say the USART3…
0
votes
1 answer

Compiling ThreadX with Clang for Arm9

I am trying to compile ThreadX with Clang. Compiling with Clang all the ThreadX code is normally built except for the tx_timer_thread_entry.c file. If that file is compiled with GCC and the rest of the files are compiled with Clang everything works…
0
votes
1 answer

tx_time_get() always returns 0 in threadx module manager

I am trying to calculate the time ticks, however tx_time_get() always returns 0 wherever I put it in modules or module manager of ThreadX E.G: ULONG start_time, current_time=0, cycle_time=0; start_time= tx_time_get(); …
Hamdim
  • 19
  • 6
0
votes
1 answer

Debug the special purpose CONTROL register in STM32H7

I am using STM32H7, I find in assembly a special-purpose register called "CONTROL", which I assume it is 3 bits long according to this doc. MSR CONTROL, r4 After debugging and the ARMv7m documentation, I think "CONTROL" register is just a…
Hamdim
  • 19
  • 6
0
votes
2 answers

MPU subregions security for STM32H7

I am trying to understand the STM32H7 MPU example, In this example, only one region has been created for all the memory address space 4GB. The subregion option is activated which means, it will be divided into 8 subregions starting from 0x0. And SRD…
Hamdim
  • 19
  • 6
0
votes
1 answer

Drawing the line between Module and ModuleManager in ThreadX priviliges

Using Module and ModuleManager with ThreadX in a MPU-enabled platform is "default_module_start" considered part of ModuleManager and can call Tx APIs even though, it is in the app_module.c? E.G tx_thread_create works in default_module_start but…
Hamdim
  • 19
  • 6
0
votes
1 answer

fastest way to store load data with app with threadx in stm32

I am looking for the fastest way to store data(about 50kb) with the applciation code during the flashing process and load it to be use by the application or by the kernel of the RTOS, I am using RTOS called ThreadX in STM32H7, the stored small data…
Hamdim
  • 19
  • 6