How to use StringInit Component to push a value in ROM ?
Posted: Fri May 09, 2025 12:46 pm
Hello,
I need to push user value in a ROM array to save mqtt username and password in the C code. I tried with StringInit Component but when I push a new value in "Str0", this variable is not saved when I restart the Pc App.
This function is it possible without design a txt file ?
1 - I set the box with the Str0 string.
2 - I enter a new string and save in Str0.
3 - I read the string from Str0.
It's ok, I have my new string in step 3 but the new string is lost if I restart the Pc App. I start with the string of step 1, registered in the Str0 parameter.
Thank you for your advices.
I need to push user value in a ROM array to save mqtt username and password in the C code. I tried with StringInit Component but when I push a new value in "Str0", this variable is not saved when I restart the Pc App.
This function is it possible without design a txt file ?
1 - I set the box with the Str0 string.
2 - I enter a new string and save in Str0.
3 - I read the string from Str0.
It's ok, I have my new string in step 3 but the new string is lost if I restart the Pc App. I start with the string of step 1, registered in the Str0 parameter.
Thank you for your advices.