Skip to main content
LCE
Principal III
March 21, 2025
Solved

What is impure_data?

  • March 21, 2025
  • 1 reply
  • 1267 views

Heyho, 

just checked the build analyser in STM32CubeIDE for my L031 project and found "impure_data" in the RAM list.

Can anyone please explain what that is? Google didn't really help... 

Just curious, RAM size is not a problem for this project (32kB flash is a problem when debugging with UART...).

Thanks!

This topic has been closed for replies.
Best answer by Ozone

Perhaps this might help somewhat : https://stackoverflow.com/questions/17515362/lpcxpresso-with-cortex-m3-what-is-libc-alib-a-impure-o-any-why-is-it-using-1k

As I read it, "impure_data" is a special RAM section created for libc to deal with reentrancy.

1 reply

Ozone
OzoneBest answer
Principal
March 21, 2025

Perhaps this might help somewhat : https://stackoverflow.com/questions/17515362/lpcxpresso-with-cortex-m3-what-is-libc-alib-a-impure-o-any-why-is-it-using-1k

As I read it, "impure_data" is a special RAM section created for libc to deal with reentrancy.