# Error: exit status 1. (Uart-0 node. Uno R4 Minima)

**URL:** <https://forum.xod.io/t/error-exit-status-1-uart-0-node-uno-r4-minima/6722>\
**Category:** Install/Upload Problems\
**Created:** [December 4, 2023, 1:05pm UTC](https://forum.xod.io/t/error-exit-status-1-uart-0-node-uno-r4-minima/6722 "2023-12-04T13:05:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gamerse](https://avatars.discourse-cdn.com/v4/letter/g/dfb087/32.png) [@gamerse](https://forum.xod.io/u/gamerse)\
**Post date:** [December 4, 2023, 1:05pm UTC](https://forum.xod.io/t/error-exit-status-1-uart-0-node-uno-r4-minima/6722/1 "2023-12-04T13:05:41Z")

</div>

Hello  
I have a normal USB-C cable from the computer to the microcontroller. where I want to test if I can send data from the APP Inventor emulator to the microcontroller.

But I get an error when uploading.

The plan is to use a tablet to send data via OTG-USB.

Microcontroller: Arduino Uno R4 Minima

Program in XOD:

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/6/6a4be350967a21aa8c3514c2c586812c856a5874.png)

But when I upload I get this error code:

Begin compiling code for the board Arduino UNO R4 Minima 📦

C:\Users\kp-sp\AppData\Local\Temp\xod\_temp\_sketchbookmO6LKl\xod\_1701694458288\_sketch\xod\_1701694458288\_sketch.ino: In member function ‘void xod::xod\_\_uart\_\_uart::Node::evaluate(xod::xod\_\_uart\_\_uart::Node::Context)’:  
C:\Users\kp-sp\AppData\Local\Temp\xod\_temp\_sketchbookmO6LKl\xod\_1701694458288\_sketch\xod\_1701694458288\_sketch.ino:1095:27: error: ‘SERIAL\_PORT\_HARDWARE’ was not declared in this scope  
auto serial = SERIAL\_PORT\_HARDWARE;  
^ ~~~~~~~~~~~~~~~~~~~

C:\Users\kp-sp\AppData\Local\Temp\xod\_temp\_sketchbookmO6LKl\xod\_1701694458288\_sketch\xod\_1701694458288\_sketch.ino:1095:27: note: suggested alternative: ‘SERIAL\_PARITY\_MARK’  
auto serial = SERIAL\_PORT\_HARDWARE;  
^ ~~~~~~~~~~~~~~~~~~~  
SERIAL\_PARITY\_MARK

Error during build: exit status 1

Same error code if I instead uses SOFT-UART(D0=RX and D1=TX) /UART0-1 -Nodes…

Here is some information about USB/UART:

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/b/b5225cb21cf705a2136254dcbecf42a4598b9d12.png)  
Link: [https://docs.arduino.cc/tutorials/uno-r4-minima/cheat-sheet](https://docs.arduino.cc/tutorials/uno-r4-minima/cheat-sheet)

I have tried googling my way to a solution. but I haven’t found anything that made sense.

Hope someone can help

thanks in advance

---

<div class="post-metadata">

**Author:** ![gamerse](https://avatars.discourse-cdn.com/v4/letter/g/dfb087/32.png) [@gamerse](https://forum.xod.io/u/gamerse)\
**Post date:** [December 4, 2023, 4:08pm UTC](https://forum.xod.io/t/error-exit-status-1-uart-0-node-uno-r4-minima/6722/2 "2023-12-04T16:08:39Z")

</div>

I have tried to make a very simple code.

Which still fails:

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/6/67988e19217e5e447e6671dc9607d0052131473f.png)  
 ![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/4/4d3c717d3565320530d6dd10a4ce699c001aed18.png)

The full error messags:  
Begin compiling code for the board Arduino UNO R4 Minima 📦

C:\Users\kp-sp\AppData\Local\Temp\xod\_temp\_sketchbookSQVor2\xod\_1701705940826\_sketch\xod\_1701705940826\_sketch.ino: In member function ‘void xod::xod\_\_gpio\_\_digital\_write::Node\<constant\_input\_PORT\>::evaluate(xod::xod\_\_gpio\_\_digital\_write::Node\<constant\_input\_PORT\>::Context)’:  
C:\Users\kp-sp\AppData\Local\Temp\xod\_temp\_sketchbookSQVor2\xod\_1701705940826\_sketch\xod\_1701705940826\_sketch.ino:1290:48: error: cannot convert ‘const bool’ to ‘PinStatus’ for argument ‘2’ to ‘void digitalWrite(pin\_size\_t, PinStatus)’  
::digitalWrite(constant\_input\_PORT, val);  
^

Error during build: exit status 1

Is Arduino R4 Minima not compatible with XOD?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)\
**Post date:** [January 3, 2024, 4:09pm UTC](https://forum.xod.io/t/error-exit-status-1-uart-0-node-uno-r4-minima/6722/3 "2024-01-03T16:09:10Z")

</div>

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