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...
Just sends "\r\n" to UART in simulation.....
Martin
String initialization in simulation
-
mnfisher
- Valued Contributor
- Posts: 1722
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 147 times
- Been thanked: 803 times
-
Steve-Matrix
- Matrix Staff
- Posts: 1651
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 231 times
- Been thanked: 392 times
Re: String initialization in simulation
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.
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.