C issue or Keil issue (or my issue)
Posted: Tue Dec 24, 2013 12:27 am
Hi
my LCD display is working, but now I have a strange issue with variables and functions.
if you look a the attached KEIL listing (which I originally started to see why mybuf is not filled with the
content of myinput),
you see that line 187 and 191 are not at all seen and executed (the dark grey bar equals "executed").
halInit(), and chSysInit() are.
I have no idea why.
line 187 is jumped when doing single step and so is 191.
When I had the code for myfunc directly embedded in "main()", the mybuf = myinput would not execute.
I tested my full code with Visual C, where it works fine.
Also, BTW, if I do not declare "o" as static, the whole " int o...o++" will not be executed. (That still does not explain the myfunc issue but might be connected).
Thanks for all help.
Merry Christmas!
my LCD display is working, but now I have a strange issue with variables and functions.
if you look a the attached KEIL listing (which I originally started to see why mybuf is not filled with the
content of myinput),
you see that line 187 and 191 are not at all seen and executed (the dark grey bar equals "executed").
halInit(), and chSysInit() are.
I have no idea why.
line 187 is jumped when doing single step and so is 191.
When I had the code for myfunc directly embedded in "main()", the mybuf = myinput would not execute.
I tested my full code with Visual C, where it works fine.
Also, BTW, if I do not declare "o" as static, the whole " int o...o++" will not be executed. (That still does not explain the myfunc issue but might be connected).
Thanks for all help.
Merry Christmas!