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
-
- Valued Contributor
- Posts: 1628
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 142 times
- Been thanked: 761 times
-
- Matrix Staff
- Posts: 1548
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 214 times
- Been thanked: 362 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.