Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: b00let on April 10, 2018, 05:19:06 pm

Title: Cannot print to serial console from setup (arduino) function
Post by: b00let on April 10, 2018, 05:19:06 pm
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
Title: Re: Cannot print to serial console from setup (arduino) function
Post by: oBFusCATed on April 10, 2018, 05:51:47 pm
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?
Title: Re: Cannot print to serial console from setup (arduino) function
Post by: Auzzinaz on May 02, 2018, 11:18:45 am
The most important media about this site is mostly about what.