Oliver M
06/20/2024, 5:22 PMimport gpio
import uart
import ublox-gnss
RX ::= 20
TX ::= 21
main:
port := uart.Port
--rx=gpio.Pin RX // <--- this is line 10
--tx=gpio.Pin TX
--baud-rate=9600
task::
reader := port.in
while line := reader.read-line:
print "Received: $line"
Error:
******************************************************************************
Decoding by `jag`, device has version <2.0.0-alpha.158>
******************************************************************************
EXCEPTION error.
ALREADY_IN_USE
0: gpio-use_ <sdk>/gpio/pin.toit:394:3
1: Pin <sdk>/gpio/pin.toit:131:17
2: main gps.toit:10:10
******************************************************************************
[jaguar] ERROR: program 112446b3-9c37-933d-895c-0408ccd4026d stopped - exit code 1floitsch
06/20/2024, 6:59 PMOliver M
06/20/2024, 7:12 PMfloitsch
06/20/2024, 7:31 PMjag container list ?
I looked through the sources, and unless I missed something, this error indicates that something has the pin opened.floitsch
06/20/2024, 7:33 PMfloitsch
06/20/2024, 7:33 PMfloitsch
06/20/2024, 7:35 PMfloitsch
06/20/2024, 7:35 PMfloitsch
06/20/2024, 8:11 PMjag flash --chip esp32c3 ./firmware-esp32c3.envelope.
You would need to unzip it first: gunzip ./firmware-esp32c3.envelope.gz. (Make sure not to extract the envelope itself. Some tools recognize that it is an AR file and then extract that as well).Oliver M
06/20/2024, 8:20 PMfloitsch
06/20/2024, 8:24 PMOliver M
06/20/2024, 8:46 PMOliver M
06/21/2024, 8:06 AMfloitsch
06/21/2024, 8:07 AM