Page 1 of 1

String initialization in simulation

Posted: Thu Feb 17, 2022 6:14 pm
by mnfisher
Just noticed that string initialisation doesn't seem to work correctly in simulation...

So if I declare a variable test as a string with initial value "ABCD" it is empty.
The code generated looks good however - so should work on the MCU...
init.fcfx
(8.81 KiB) Downloaded 245 times
Just sends "\r\n" to UART in simulation.....

Martin

Re: String initialization in simulation

Posted: Fri Feb 18, 2022 10:30 am
by Steve-Matrix
Thanks for letting us know about this. I actually fixed this issue in the v10 codebase about 4 months ago as part of a large change to better support strings.

I've just rolled out a simple fix for the v9 codebase, so this should work when a future version of the exe is released.