Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Serial.begin doesn't finish running if i don't use CDC
21-04-2014, 03:16 AM, (This post was last modified: 21-04-2014, 03:29 AM by matiaslang.)
#1
Serial.begin doesn't finish running if i don't use CDC
I tried to run examples/04.Communication/Serial/serialprintf-p8.pde in my 18F4550 pinguino with bootloader 2.12 but I think Serial.begin function breaks the program because is doesn't finish running.
I added some blink lines to debug this program: http://pastebin.com/AGrFaFxq so lines 15 and 17 tell when i call Serial.begin and when this function stops running, but I only get a 500ms blink (so it never stop running).
This happens on every programs that use serial, when they are connected to a router and when they aren't.
Why am I having this problem?

UPDATE:
Putting a CDC.printf(""); line in some part of the code makes serial works correctly. This is very strange
Reply
05-06-2014, 10:34 PM,
#2
RE: Serial.begin doesn't finish running if i don't use CDC
[Hi, I confirm that I got the same behavioral. But thanks for the fix !
even if we dont know why it does not work without the CDC.Huh
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)