chprintf() crashes system in GXF/console
Posted: Fri Jun 28, 2013 9:04 am
Hey everyone,
during work on my SSD1306 driver I wanted to use the console module, which actually works (based on template on GFX website) until I call chprintf() with any of those special chars:
"!", "\n", "\r"
When calling chprintf() with one of those chars included e.g. (...) nothings gets executed on the MCU, no gfxInit(), nothing. It breaks everything. If I leave those chars out, everything works fine.
So I am stuck with just one row.
EDIT:
Just found out, that using this command, gets me a new line. Note that the newline only seems to work when I just in front of it place an integer placeholder (float also works, seems it has to be just any kind of placeholder)
Using this command stops ChibOS again at startup.
Does anybody have a hint, why this is happening?
Thanks everyone!
Cheers
during work on my SSD1306 driver I wanted to use the console module, which actually works (based on template on GFX website) until I call chprintf() with any of those special chars:
"!", "\n", "\r"
When calling chprintf() with one of those chars included e.g. (...) nothings gets executed on the MCU, no gfxInit(), nothing. It breaks everything. If I leave those chars out, everything works fine.
Code: Select all
chprintf(S1, "Hello GFX\n",1);So I am stuck with just one row.
EDIT:
Just found out, that using this command, gets me a new line. Note that the newline only seems to work when I just in front of it place an integer placeholder (float also works, seems it has to be just any kind of placeholder)
Code: Select all
chprintf(S1, "Hello GFX v%i\n",1);Using this command stops ChibOS again at startup.
Code: Select all
chprintf(S1, "Hello GFX v\n",1);Does anybody have a hint, why this is happening?
Thanks everyone!
Cheers