cedro
1
I’m trying to get anything to print to the serial monitor. The code version works fine.
Internal XOD uploads work fine. Buttons, LED’s etc… Can’t get anything in or out of Serial.
Can anyone give me a hint? I’ve been banging on this for a while now.
cedro
3
Now I’m just trying all the nodes. See if I can get anything Serial/UART.
Thanks for any help…
Here is the upload confirmation if that helps.
Uploading compiled code to the board...
avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Users\XX\xod\__packages__\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
Using Port : COM3
Using Programmer : arduino
Overriding Baud Rate : 115200
AVR Part : ATmega328P
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PC2
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
eeprom 65 20 4 0 no 1024 4 0 3600 3600 0xff 0xff
flash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
Programmer Type : Arduino
Description : Arduino
Hardware Version: 3
Firmware Version: 4.4
Vtarget : 0.3 V
Varef : 0.3 V
Oscillator : 28.800 kHz
SCK period : 3.3 us
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: safemode: lfuse reads as 0
avrdude: safemode: hfuse reads as 0
avrdude: safemode: efuse reads as 0
avrdude: reading input file "C:\Users\XX\AppData\Local\Temp\xod_temp_sketchbooksOOFjp\xod_1579136162634_sketch/xod_1579136162634_sketch.arduino.avr.uno.hex"
avrdude: writing flash (7158 bytes):
Writing | ################################################## | 100% 1.15s
avrdude: 7158 bytes of flash written
avrdude: verifying flash memory against C:\Users\XX\AppData\Local\Temp\xod_temp_sketchbooksOOFjp\xod_1579136162634_sketch/xod_1579136162634_sketch.arduino.avr.uno.hex:
avrdude: load data flash data from input file C:\Users\XX\AppData\Local\Temp\xod_temp_sketchbooksOOFjp\xod_1579136162634_sketch/xod_1579136162634_sketch.arduino.avr.uno.hex:
avrdude: input file C:\Users\XXAppData\Local\Temp\xod_temp_sketchbooksOOFjp\xod_1579136162634_sketch/xod_1579136162634_sketch.arduino.avr.uno.hex contains 7158 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 0.92s
avrdude: verifying ...
avrdude: 7158 bytes of flash verified
avrdude: safemode: lfuse reads as 0
avrdude: safemode: hfuse reads as 0
avrdude: safemode: efuse reads as 0
avrdude: safemode: Fuses OK (E:00, H:00, L:00)
avrdude done. Thank you.
=== Done ===
cedro
4
I can get the watch node to return data in debug mode. Still can’t see anything over serial.
cesars
5
To use the serial monitor or connect to another application, you must stop debugging on XOD, or load without debugging.
ps: in xod you will see it that way
cedro
6
Thanks for your help! Thought I tried that. Guess not.
Can you give me an idea of “write-byte” vs “print”?
I’m trying to stream out a float value. “print” looks to be for string data. Should I use that then convert the data type on the other end?
Does “write-byte” work best when transferring numerical values?
cesars
7
I think I have read that it is better, but as I commented in another post my knowledge about uart is very limited.
My way of learning is to take knowledge of what I need, until now do not do any project with uart.
Surely there is someone with more knowledge to help you, but you must be patient