Xod 35.0 soft uart fail

@ 35.0 soft uart make a compiler error !

Begin compiling code for the board Arduino Nano :package:

C:\Users\gst\AppData\Local\Temp\xod_temp_sketchbookMbXpX0\xod_1599638709338_sketch\xod_1599638709338_sketch.ino:1275:30: error: cannot define member function ‘xod::xod__uart__soft_uart::Node<constant_input_RX, constant_input_TX>::SoftwareUart::begin’ within ‘xod::xod__uart__soft_uart::Node<constant_input_RX, constant_input_TX>’
void SoftwareUart::begin() {
^
C:\Users\gst\AppData\Local\Temp\xod_temp_sketchbookMbXpX0\xod_1599638709338_sketch\xod_1599638709338_sketch.ino:1279:28: error: cannot define member function ‘xod::xod__uart__soft_uart::Node<constant_input_RX, constant_input_TX>::SoftwareUart::end’ within ‘xod::xod__uart__soft_uart::Node<constant_input_RX, constant_input_TX>’
void SoftwareUart::end() {
^
C:\Users\gst\AppData\Local\Temp\xod_temp_sketchbookMbXpX0\xod_1599638709338_sketch\xod_1599638709338_sketch.ino:1283:30: error: cannot define member function ‘xod::xod__uart__soft_uart::Node<constant_input_RX, constant_input_TX>::SoftwareUart::flush’ within ‘xod::xod__uart__soft_uart::Node<constant_input_RX, constant_input_TX>’
void SoftwareUart::flush() {
^

Error during build: exit status 1
Compilation failed
Command Process exited with code 1
The generated C++ code contains errors. It can be due to a bad node implementation or if your board is not compatible with XOD runtime code. The original compiler error message is above. Fix C++ errors to continue. If you believe it is a bug, report the problem to XOD developers.

Hello!

It looks like you have an outdated copy of xod/uart library lying around in your workspace. Do you have __lib__/xod folder there? Just delete it and all should be fine.

Hello!

Thank`s - that was the solution, now it works fine!!!

1 Like

Hi - I also seem to have a similar problem after an upgrade to ver 0.35. I have what might be a dumb question…

Working in MacOS, the user/xod/lib/ folder doesn’t seem to contain a xod folder - where does the core library live in MacOS, or is the file hidden?

A file search doesn’t reveal an obvious stray xod folder. I tried a clean install, but still no xod folder in lib, and still have compilation errors. The sketch (was working well in 0.34) is trying to read DS18b20 temperature sensors and 4D Systems screen through a soft UART on an Arduino UNO.

Very grateful for any tips on this!

Jim

Begin compiling code for the board Arduino Uno :package:

/var/folders/60/99fjskmn06l1mndlm6jh2ttr0000gn/T/xod_temp_sketchbookzfkCdS/xod_1599904627516_sketch/xod_1599904627516_sketch.ino: In member function ‘void xod::xod__common_hardware__ds18b20_thermometer::Node<constant_input_PORT>::evaluate(xod::xod__common_hardware__ds18b20_thermometer::Node<constant_input_PORT>::Context)’:
/var/folders/60/99fjskmn06l1mndlm6jh2ttr0000gn/T/xod_temp_sketchbookzfkCdS/xod_1599904627516_sketch/xod_1599904627516_sketch.ino:2849:40: error: ‘port’ was not declared in this scope
bool success = readTemperature(port, &tc);
^~~~

/var/folders/60/99fjskmn06l1mndlm6jh2ttr0000gn/T/xod_temp_sketchbookzfkCdS/xod_1599904627516_sketch/xod_1599904627516_sketch.ino:2849:40: note: suggested alternative: ‘Uart’
bool success = readTemperature(port, &tc);
^~~~
Uart

Error during build: exit status 1
Compilation failed
Command Process exited with code 1
The generated C++ code contains errors. It can be due to a bad node implementation or if your board is not compatible with XOD runtime code. The original compiler error message is above. Fix C++ errors to continue. If you believe it is a bug, report the problem to XOD developers.

Hi Jim,

This appears to be a problem with the ds18b20-thermometer node in xod/common-hardware. Double click on the node to open its patch, then double click on the not-implemented-in-XOD to see the C++ code.

Line 137 reads:

bool success = readTemperature(port, &tc);

Change it to:

bool success = readTemperature(constant_input_PORT, &tc);

1 Like

XOD v0.35.1 is out, which includes the fix for ds18b20-thermometer node.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.