Can't upload sketch to RAK11310

I bought RAK19001 and RAK11310, set up (Ubuntu 22.04) Arduino IDE according to the instructions Installation of Board Support Package in Arduino IDE | RAKwireless Documentation Center
The board and port are automatically determined in the IDE. Opened LoRaWAN-OTAA example, changed region, then verified with no error. Then upload and got error:

“Performing 1200-bps touch reset on serial port /dev/ttyACM0
“/home/mybook/.arduino15/packages/rakwireless/tools/rp2040tools/1.0.2/rp2040load” -v -D “/tmp/arduino-sketch-4A5F511AD8608DB6FDA8B4197620A017/LoRaWAN_OTAA_ABP_1.ino.elf”
rp2040load 1.0.1 - compiled with go1.15.8

Failed uploading: uploading error: exit status 1”

what could be the problem? which way to look? Help a newbie, pls.

UPD.
I solved one issue - found in the logs that there permission denied to the port, added my user to the dialout group and the problem went away, but a new one appeared with the same error while uploading “Failed uploading: uploading error: exit status 1”.

From log’s:
2022-12-17T09:28:28.598Z daemon INFO INFO[0570] Performing 1200-bps touch reset on serial port /dev/ttyACM0 phase=“board reset”
2022-12-17T09:28:28.806Z daemon INFO INFO[0570] from discovery builtin:serial-discovery received message type: remove, port: /dev/ttyACM0
2022-12-17T09:28:28.810Z discovery-log INFO {“eventType”:“remove”,“port”:{“matchingBoardsList”:[],“port”:{“address”:"/dev/ttyACM0",“label”:"",“protocol”:“serial”,“protocolLabel”:"",“propertiesMap”:[]}},“error”:""}
2022-12-17T09:28:29.022Z root INFO Attached boards and available ports changed:
2022-12-17T09:28:29.022Z root INFO - Detached board: WisBlock RAK11300 [rakwireless:mbed_rp2040:WisCoreRAK11300Board] from /dev/ttyACM0 Serial Port (USB)
2022-12-17T09:28:29.022Z root INFO ------------------------------------------
2022-12-17T09:28:29.606Z daemon INFO INFO[0571] Searching tools required for board rakwireless:mbed_rp2040:WisCoreRAK11300Board
INFO[0571] Required tool tool=“rakwireless:arm-none-eabi-gcc@7-2017q4”
INFO[0571] Required tool tool=“rakwireless:[email protected]
INFO[0571] Required tool tool=“rakwireless:[email protected]
INFO[0571] Required tool tool=“rakwireless:[email protected]
INFO[0571] Required tool tool=“rakwireless:[email protected]

At the same time, the board is lost in the IDE and the “rpi-rp2” directory opens in the explorer, it looks like Firmware Upgrade Procedure, but I don’t touch any buttons on modules.

You are correct that you are in bootloader mode in that situation. Double-click on reset button will trigger this or via Bootsel. Why it goes to that mode might be an interesting question since you said you didn’t click the reset. Hmm.

My suggestion is you proceed on updating the firmware. You can follow this procedure - RAK11310 Quick Start Guide | RAKwireless Documentation Center

If I recall correctly, I have this issue before in uploading sketch to RAK11310 and it was fixed by reuploading the firmware (actually just pasting the .uf2 file).

I tried this, download the latest FW of the RAK11300, drag the firmware.uf2 file to RPI-RP2 directory, gren lights, reboot by power, and nothing changes - when trying upload scetch the “rpi-rp2” directory opens in the explorer and failed uploading.

Problem solved using PlatformIO

UPD
It’s fantastic, but after installing and configuring PlatformIO, Arduinoo IDE also uploading sketches.

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