# Multicontainer UART logging program keeps RPi from booting up

**URL:** <https://forums.balena.io/t/multicontainer-uart-logging-program-keeps-rpi-from-booting-up/52541>\
**Category:** Product support\
**Tags:** support, raspberrypi3\
**Created:** [December 22, 2019, 9:47pm UTC](https://forums.balena.io/t/multicontainer-uart-logging-program-keeps-rpi-from-booting-up/52541 "2019-12-22T21:47:49Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdcraver](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@mdcraver](https://forums.balena.io/u/mdcraver)\
**Post date:** [December 22, 2019, 9:47pm UTC](https://forums.balena.io/t/multicontainer-uart-logging-program-keeps-rpi-from-booting-up/52541/1 "2019-12-22T21:47:49Z")

</div>

I have a multi container project, where one of the containers is a UART datalogger that is going to log data from an external UART device. If the UART device, right now it is a PC with a USB-serial connection, is connected then the RaspberryPi3 will not boot up.

However, if I disconnect the UART TX and RX and cycle the power on the RaspberryPi3 it will boot up and all the containers will work correctly. Then if I connect the UART TX and RX lines it will log the data as programmed.

This same set of programs works fine if I build it directly on a SD card with just Raspbian on it it will boot up and work fine with the UART RX and TX connected.

Does anyone have any idea why having the UART RX and TX lines connected during boot up will cause it to fail to boot?

---

<div class="post-metadata">

**Author:** ![richbayliss](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/richbayliss/32/1054_2.png) [@richbayliss](https://forums.balena.io/u/richbayliss)\
**Post date:** [December 23, 2019, 11:28am UTC](https://forums.balena.io/t/multicontainer-uart-logging-program-keeps-rpi-from-booting-up/52541/2 "2019-12-23T11:28:43Z")

</div>

Hey,

Is it possible that the PC is sending some data when the Pi boots and somehow interupting the bootloader process?

---

<div class="post-metadata">

**Author:** ![mdcraver](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@mdcraver](https://forums.balena.io/u/mdcraver)\
**Post date:** [December 23, 2019, 2:10pm UTC](https://forums.balena.io/t/multicontainer-uart-logging-program-keeps-rpi-from-booting-up/52541/4 "2019-12-23T14:10:17Z")

</div>

The PC isn’t, but the device I want to connect will be sending data from the start.

Since this works on when I do it on a basic Raspbian install, how can I make it work with Balena?

I can send the code if needed. It is just a simple serial to file logger application.

---

<div class="post-metadata">

**Author:** ![floion](https://avatars.discourse-cdn.com/v4/letter/f/45deac/32.png) [@floion](https://forums.balena.io/u/floion)\
**Post date:** [December 23, 2019, 2:17pm UTC](https://forums.balena.io/t/multicontainer-uart-logging-program-keeps-rpi-from-booting-up/52541/5 "2019-12-23T14:17:54Z")

</div>

Hi, on what OS version do you have this problem?

---

<div class="post-metadata">

**Author:** ![mdcraver](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@mdcraver](https://forums.balena.io/u/mdcraver)\
**Post date:** [December 23, 2019, 3:07pm UTC](https://forums.balena.io/t/multicontainer-uart-logging-program-keeps-rpi-from-booting-up/52541/8 "2019-12-23T15:07:18Z")

</div>

balenaOS 2.43.0+rev1

---

<div class="post-metadata">

**Author:** ![ffissore](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ffissore/32/2842_2.png) [@ffissore](https://forums.balena.io/u/ffissore)\
**Post date:** [December 23, 2019, 5:23pm UTC](https://forums.balena.io/t/multicontainer-uart-logging-program-keeps-rpi-from-booting-up/52541/9 "2019-12-23T17:23:00Z")

</div>

Hi Matt

So we think this might be a regression on our side, we are investigating and tracking it with [https://github.com/balena-os/balena-raspberrypi/issues/438](https://github.com/balena-os/balena-raspberrypi/issues/438)

In the meantime, we have 2 options:

1. you might want to use the production version of balenaOS, rather than the development version: in the production version, uboot delay time is set to zero, so that only by sending the equivalent of CTRL+C uboot will be halted. Maybe this is enough to keep you moving forward with your project.
2. you can try using a previous version of balenaOS, like v2.38: this would help us confirm it’s a regression

Best regards

federico

---

<div class="post-metadata">

**Author:** ![chrisys](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/chrisys/32/1731_2.png) [@chrisys](https://forums.balena.io/u/chrisys)\
**Post date:** [December 23, 2019, 8:11pm UTC](https://forums.balena.io/t/multicontainer-uart-logging-program-keeps-rpi-from-booting-up/52541/12 "2019-12-23T20:11:48Z")

</div>

@mdcraver you could also take a look at this thread: [Pi3 wont boot 2.43.0 (Dev) with a Adafruit hat installed](https://forums.balena.io/t/pi3-wont-boot-2-43-0-dev-with-a-adafruit-hat-installed/40243/9)

There is confirmation in this thread that if you try v2.44 from production the issue is resolved.

---

<div class="post-metadata">

**Author:** ![mdcraver](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@mdcraver](https://forums.balena.io/u/mdcraver)\
**Post date:** [December 30, 2019, 6:06pm UTC](https://forums.balena.io/t/multicontainer-uart-logging-program-keeps-rpi-from-booting-up/52541/13 "2019-12-30T18:06:34Z")

</div>

Switching to the production version of the os and enabling the UART in the device configuration worked.

Thanks,  
Matt

---

<div class="post-metadata">

**Author:** ![floion](https://avatars.discourse-cdn.com/v4/letter/f/45deac/32.png) [@floion](https://forums.balena.io/u/floion)\
**Post date:** [January 14, 2020, 12:52pm UTC](https://forums.balena.io/t/multicontainer-uart-logging-program-keeps-rpi-from-booting-up/52541/15 "2020-01-14T12:52:32Z")

</div>

Hi, this is now released to production in 2.46.1+rev1
