STMicroelectronics / STM32CubeU5

Full Firmware Package for the STM32U5 series: HAL+LL drivers, CMSIS, BSP, MW, plus a set of Projects (examples and demos) running on all boards provided by ST (Nucleo, Evaluation and Discovery Kits).
Other
116 stars 61 forks source link

Uninitialized variables in ThreadX module #2

Closed smmanu closed 2 years ago

smmanu commented 2 years ago

Setup

Keil uvision 5.35, ac6

Description

Variables in a ThreadX module do not get their initial values as expected. Static or global variables are not initialized to 0 and variables in general do not get the initial value assigned in their definition.

Additional context

The call that is supposed to perform the C runtime initialization of a module is commented out in txm_module_initialize.S (line 73). This is not specific to stm32u5xx or cortex-m33 since the same line is also commented out in other ports to ac6. The code seems to be the same in the Azure RTOS repo, so perhaps this should be reported to them?

ALABSTM commented 2 years ago

ST Internal Reference: 118055

ALABSTM commented 2 years ago

Hi @smmanu,

First of all, thank you for having reported this point. It has been already forwarded to our development teams. We will get back to you as soon as we have their feedback.

Please excuse the time it may take to reply sometimes. Thank you for your comprehension, and thank you again for having reported.

With regards,

RKOUSTM commented 2 years ago

Hi @smmanu,

I Hope you're fine. Just to inform you the fix has been published in the frame of STM32CubeU5 v1.1.0 release.

With regards,