User forums > General (but related to Code::Blocks)
Cannot print to serial console from setup (arduino) function
(1/1)
b00let:
Hello there
I am trying to print to the serial console within the setup function, but it never shows up in the console. Same code works fine from Arduino IDE. I need to mention that even waiting for the serial to be ready wouldn;t help. The search results I can find on this issue don't seem to help. Printing from the loop function or any other function works normally. Can someone please advice ?
Best
oBFusCATed:
Are you using the same version of Arduino in Arduino IDE and C::B?
Have you compared if the defines passed to the compilers by C::B and Arduino IDE are the same?
Have you checked my Arduino template: https://github.com/obfuscated/cb_arduino_template ?
What OS are you using?
Auzzinaz:
The most important media about this site is mostly about what.
Navigation
[0] Message Index
Go to full version