upstream-2024-10-13
Error: SX1262 is NOT OK. Check the SPI connection
Error: SX1262 is NOT OK. Check the SPI connection
Script started on 2024-10-13 08:56:58+08:00 [TERM="xterm-256color" TTY="/dev/pts/0" COLUMNS="58" LINES="157"]
+ '[' '' == '' ']'
+ export BUILD_PREFIX=upstream
+ BUILD_PREFIX=upstream
+ '[' '' == '' ']'
++ date +%Y-%m-%d
+ export BUILD_DATE=2024-10-13
+ BUILD_DATE=2024-10-13
+ '[' /dev/ttyUSB0 == '' ']'
+ source /home/pi/.cargo/env
++ export PATH=/home/pi/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
++ PATH=/home/pi/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
+ set +x
----- Download the latest upstream NuttX build for 2024-10-13
+ wget -q https://github.com/lupyuen/incubator-nuttx/releases/download/upstream-2024-10-13/nuttx.zip -O /tmp/nuttx.zip
+ pushd /tmp
/tmp ~/remote-bl602
+ unzip -o nuttx.zip
Archive: nuttx.zip
inflating: nuttx
inflating: nuttx.S
inflating: nuttx.bin
inflating: nuttx.board
inflating: nuttx.bringup
inflating: nuttx.config
inflating: nuttx.hash
inflating: nuttx.hex
inflating: nuttx.manifest
inflating: nuttx.map
+ popd
~/remote-bl602
+ set +x
NuttX Source: https://github.com/apache/nuttx/tree/505adfa277f597e8ea08f389f93ed7e64ad35b82
NuttX Apps: https://github.com/apache/nuttx-apps/tree/131ff36842785fad58c09eadd71c8bbc4d69a8b2
----- Enable GPIO 2 and 3
----- Set GPIO 2 and 3 as output
----- Set GPIO 2 to High (BL602 Flashing Mode)
----- Toggle GPIO 3 High-Low-High (Reset BL602)
----- Toggle GPIO 3 High-Low-High (Reset BL602 again)
----- BL602 is now in Flashing Mode
----- Flash BL602 over USB UART with blflash
+ blflash flash /tmp/nuttx.bin --port /dev/ttyUSB0
[INFO blflash::flasher] Start connection...
[TRACE blflash::flasher] 5ms send count 55
[TRACE blflash::flasher] handshake sent elapsed 259.646µs
[INFO blflash::flasher] Connection Succeed
[INFO blflash] Bootrom version: 1
[TRACE blflash] Boot info: BootInfo { len: 14, bootrom_version: 1, otp_info: [0, 0, 0, 0, 3, 0, 0, 0, 61, 9d, c0, 5, b9, 18, 1d, 0] }
[INFO blflash::flasher] Sending eflash_loader...
###>------------------ 3.91KiB/28.58KiB 11.14KiB/s 2s
######>--------------- 7.81KiB/28.58KiB 11.04KiB/s 2s
########>------------ 11.72KiB/28.58KiB 11.03KiB/s 2s
###########>--------- 15.62KiB/28.58KiB 11.03KiB/s 1s
##############>------ 19.53KiB/28.58KiB 11.03KiB/s 1s
#################>--- 23.44KiB/28.58KiB 11.04KiB/s 1s
####################> 27.34KiB/28.58KiB 11.05KiB/s 0s
####################> 28.39KiB/28.58KiB 11.05KiB/s 0s
[INFO blflash::flasher] Finished 2.565011775s 11.14KiB/s
[TRACE blflash::flasher] 5ms send count 500
[TRACE blflash::flasher] handshake sent elapsed 5.223712ms
[INFO blflash::flasher] Entered eflash_loader
[INFO blflash::flasher] Skip segment addr: 0 size: 47504 sha256 matches
[INFO blflash::flasher] Skip segment addr: e000 size: 272 sha256 matches
[INFO blflash::flasher] Skip segment addr: f000 size: 272 sha256 matches
[INFO blflash::flasher] Erase flash addr: 10000 size: 146176
[INFO blflash::flasher] Program flash... e622dcb0f79a573705f85f7d18fd8a3ddf9d695e222a9c32af2021d5a5618d03
>-------------------- 3.91KiB/142.75KiB 81.85KiB/s 2s
#>------------------ 11.72KiB/142.75KiB 81.80KiB/s 2s
##>----------------- 19.53KiB/142.75KiB 81.85KiB/s 2s
###>---------------- 27.34KiB/142.75KiB 81.89KiB/s 2s
####>--------------- 35.16KiB/142.75KiB 81.93KiB/s 2s
######>------------- 42.97KiB/142.75KiB 81.95KiB/s 1s
#######>------------ 50.78KiB/142.75KiB 81.97KiB/s 1s
########>----------- 58.59KiB/142.75KiB 81.99KiB/s 1s
#########>---------- 66.41KiB/142.75KiB 82.01KiB/s 1s
##########>--------- 74.22KiB/142.75KiB 82.06KiB/s 1s
###########>-------- 82.03KiB/142.75KiB 82.08KiB/s 1s
############>------- 89.84KiB/142.75KiB 82.11KiB/s 1s
#############>------ 97.66KiB/142.75KiB 82.13KiB/s 1s
##############>---- 105.47KiB/142.75KiB 82.14KiB/s 1s
###############>--- 113.28KiB/142.75KiB 82.15KiB/s 1s
################>-- 121.09KiB/142.75KiB 82.17KiB/s 1s
#################>- 128.91KiB/142.75KiB 82.17KiB/s 0s
##################> 136.72KiB/142.75KiB 82.19KiB/s 0s
################### 142.75KiB/142.75KiB 82.19KiB/s 0s
[INFO blflash::flasher] Program done 1.73738818s 82.18KiB/s
[INFO blflash::flasher] Skip segment addr: 1f8000 size: 5671 sha256 matches
[INFO blflash] Success
+ set +x
----- Set GPIO 2 to Low (BL602 Normal Mode)
----- Toggle GPIO 3 High-Low-High (Reset BL602)
----- BL602 is now in Normal Mode
----- Toggle GPIO 3 High-Low-High (Reset BL602)
----- Here is the BL602 Output...
�EXCEPTION: Illegal instruction. MCAUSE: 00000002, EPC: 2300f79c, MTVAL: 00000000
PANIC!!! Exception = 00000002
Current Version: NuttX 12.7.0-RC0 505adfa277 Oct 13 2024 00:49:32 risc-v
Assertion failed panic: at file: :0 task: Idle_Task process: Kernel 0x230024d4
EPC: 2300f79c
A0: 00000000 A1: ffff0000 A2: 00000001 A3: 420157ec
A4: 0000ffff A5: 00000001 A6: 42013198 A7: 42010000
T0: ffffff54 T1: 2300566a T2: 41bd5488 T3: 420130b8
T4: 00000000 T5: 00000000 T6: c48af7ec
S0: 42015480 S1: 42010000 S2: 420154dc S3: 42011000
S4: 42010000 S5: 00000000 S6: 000001b6 S7: 23007000
S8: 4201fa38 S9: 00000001 S10: 00000b00 S11: 00022b00
SP: 42015450 FP: 42015480 TP: 005d12e5 RA: 2300f76a
User Stack:
base: 0x420135d0
size: 00008176
sp: 0x42015450
0x4201530: 000001b6 00000000 42010000 42011000 420154dc 42010000 42015480 2300f76a
0x42015450: 42010000 42012b00 42010000 2300927e 00001ff0 420135c0 420135d0 420106b8
0x42015470: 42015548 00000003 42010000 2300e246 2301e65c 420157e0 00000000 420157b8
0x42015490: 2301e65c 00000000 42010000 420106b8 4202137c 00033b00 00000001 42011000
0x420154b0: 42010000 42012b00 42010000 2300e3ba 2301e651 42015528 00000003 2301e650
0x420154d0: 4202137c 42010000 00000001 420106b8 42015548 420157e0 420157b8 420106b8
0x420154f0: 42013000 42010000 42010000 2300e482 00000000 00000000 42015528 420106b8
0x42015510: 42013000 00033b00 42012bc8 230038de 42010000 230218d0 00000003 00000000
0x42015530: 00000000 00000000 42013198 42010000 7974742f 42007853 42015810 420106b8
0x42015550: 42013000 42012b00 42012bc8 230026ca 23000000 420155c0 0001aa40 420106b8
0x42015570: ec301d51 bc75de28 42020000 4202109c 23000000 00022b00 4202109c 23000cb6
0x42015590: 4157acc5 bf93a57c 2a226cbb 420106b8 9a707fde 83ce0b69 3b1e22ec 230000ea
0x420155b0: 5cd3c6cc dbc772ec 230000d6 2300004a 00000000 00000000 00000000 00000000
PID GROUP PRI POLICY TYPE NPX STATE EVENT SIGMASK STACKBASE STACKSIZE USED FILLED COMMAND
---- --- --- -------- ------- --- ------- ---------- ---------------- 0x42012a00 8192 788 9.6% irq
0 0 0 FIFO Kthread - Running 0000000000000000 0x420135d0 8176 632 7.7% Idle_Task
===== Error: SX1262 is NOT OK. Check the SPI connection
Possible LoRa Interference. Close the windows, pull the shades, draw the drapes. Press Enter to retest...+ '[' upstream == '' ']'
+ '[' 2024-10-13 == '' ']'
+ '[' /dev/ttyUSB0 == '' ']'
+ source /home/pi/.cargo/env
++ export PATH=/home/pi/.cargo/bin:/home/pi/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
++ PATH=/home/pi/.cargo/bin:/home/pi/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
+ set +x
----- Enable GPIO 2 and 3
----- Set GPIO 2 and 3 as output
----- Set GPIO 2 to Low (BL602 Normal Mode)
----- Toggle GPIO 3 High-Low-High (Reset BL602)
----- BL602 is now in Normal Mode
----- Toggle GPIO 3 High-Low-High (Reset BL602)
----- Here is the BL602 Output...
�EXCEPTION: Illegal instruction. MCAUSE: 00000002, EPC: 2300f79c, MTVAL: 00000000
PANIC!!! Exception = 00000002
Current Version: NuttX 12.7.0-RC0 505adfa277 Oct 13 2024 00:49:32 risc-v
Assertion failed panic: at file: :0 task: Idle_Task process: Kernel 0x230024d4
EPC: 2300f79c
A0: 00000000 A1: ffff0000 A2: 00000001 A3: 420157ec
A4: 0000ffff A5: 00000001 A6: 42013198 A7: 42010000
T0: ffffff54 T1: 2300566a T2: 41bd5688 T3: 420130b8
T4: 00000000 T5: 00000000 T6: 86f2c84c
S0: 42015480 S1: 42010000 S2: 420154dc S3: 42011000
S4: 42010000 S5: 00000000 S6: 000001b6 S7: 23007000
S8: 4201fa38 S9: 00000001 S10: 00000b00 S11: 00022b00
SP: 42015450 FP: 42015480 TP: 425200a4 RA: 2300f76a
User Stack:
base: 0x420135d0
size: 00008176
sp: 0x42015450
0x42015430: 000001b6 00000000 42010000 42011000 420154dc 42010000 42015480 2300f76a
0x42015450: 42010000 42012b00 42010000 2300927e 00001ff0 420135c0 420135d0 420106b8
0x42015470: 42015548 00000003 42010000 2300e246 2301e65c 420157e0 00000000 420157b8
0x42015490: 2301e65c 00000000 42010000 420106b8 4202137c 00033b00 00000001 42011000
0x420154b0: 42010000 42012b00 42010000 2300e3ba 2301e651 42015528 00000003 2301e650
0x420154d0: 4202137c 42010000 00000001 420106b8 42015548 420157e0 420157b8 420106b8
0x420154f0: 42013000 42010000 42010000 2300e482 00000000 00000000 42015528 420106b8
0x42015510: 42013000 00033b00 42012bc8 230038de 42010000 230218d0 00000003 00000000
0x42015530: 00000000 00000000 42013198 42010000 7974742f 42007853 42015810 420106b8
0x42015550: 42013000 42012b00 42012bc8 230026ca 23000000 420155c0 0001aa40 420106b8
0x42015570: ec301559 bc75de2c 42020000 4202109c 23000000 00022b00 4202109c 23000cb6
0x42015590: 4157acc5 be97a77c aa026cbb 420106b8 9a707fdf 87ee0b6d 3b1662ec 230000ea
0x420155b0: 4cd3c6c4 d3c772ec 230000d6 2300004a 00000000 00000000 00000000 00000000
PID GROUP PRI POLICY TYPE NPX STATE EVENT SIGMASK STACKBASE STACKSIZE USED FILLED COMMAND
---- --- --- -------- ------- --- ------- ---------- ---------------- 0x42012a00 8192 788 9.6% irq
0 0 0 FIFO Kthread - Running 0000000000000000 0x420135d0 8176 632 7.7% Idle_Task
===== Error: SX1262 is NOT OK. Check the SPI connection
Script done on 2024-10-13 08:57:41+08:00 [COMMAND_EXIT_CODE="0"]