string - Ada + Fixed Stringss + Stm32 Arm -
string - Ada + Fixed Stringss + Stm32 Arm -
how create simple function returns string on arm platform?
procedure main function tst_func homecoming string begin homecoming "string"; end tst_func; str : string := tst_func; -- <-- doesnt work, runtime error. -- adacore gpl compiller, crossdev, arm elf hosted of win os. -- hardware smt32f407 discovery board. begin ...
the problem bug in runtime system: if programme doesn’t involve tasking, environment task’s secondary stack isn’t set properly, when function tries homecoming string thinks secondary stack has been exhausted , raises storage_error.
i have reported adacore: recommendation include
delay until ada.real_time.clock; in main program.
the bug resolved in next gnat gpl release.
string arm runtime-error ada stm32
Comments
Post a Comment