Author Topic: Cannot print to serial console from setup (arduino) function  (Read 3263 times)

b00let

  • Guest
Cannot print to serial console from setup (arduino) function
« 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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Cannot print to serial console from setup (arduino) function
« Reply #1 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?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Auzzinaz

  • Single posting newcomer
  • *
  • Posts: 2
    • สโบเบ็ต
Re: Cannot print to serial console from setup (arduino) function
« Reply #2 on: May 02, 2018, 11:18:45 am »
The most important media about this site is mostly about what.