upstream-2024-11-25
Error: SX1262 is NOT OK. Check the SPI connection
Error: SX1262 is NOT OK. Check the SPI connection
Script started on 2024-11-25 08:57:48+08:00 [TERM="xterm-256color" TTY="/dev/pts/0" COLUMNS="76" LINES="89"]
+ '[' '' == '' ']'
+ export BUILD_PREFIX=upstream
+ BUILD_PREFIX=upstream
+ '[' '' == '' ']'
++ date +%Y-%m-%d
+ export BUILD_DATE=2024-11-25
+ BUILD_DATE=2024-11-25
+ '[' /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-11-25
+ wget -q https://github.com/lupyuen/incubator-nuttx/releases/download/upstream-2024-11-25/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/358261af19deb9ecda61d77106653f6712de60a0
NuttX Apps: https://github.com/apache/nuttx-apps/tree/38b54f6fc513ac6885e54acc3cff5e650600a853
----- 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 225.459µ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.13KiB/s 2s
##########>----------------------------- 7.81KiB/28.58KiB 11.02KiB/s 2s
###############>----------------------- 11.72KiB/28.58KiB 11.01KiB/s 2s
#####################>----------------- 15.62KiB/28.58KiB 11.01KiB/s 1s
##########################>------------ 19.53KiB/28.58KiB 11.02KiB/s 1s
###############################>------- 23.44KiB/28.58KiB 11.03KiB/s 1s
#####################################>- 27.34KiB/28.58KiB 11.03KiB/s 0s
######################################> 28.39KiB/28.58KiB 11.04KiB/s 0s
[INFO blflash::flasher] Finished 2.56707908s 11.13KiB/s
[TRACE blflash::flasher] 5ms send count 500
[TRACE blflash::flasher] handshake sent elapsed 5.207254ms
[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: 147760
[INFO blflash::flasher] Program flash... e0b7a581180eeafa5c957928f84e8fa71edacbdb856646e1e4046638e82e09b5
#>------------------------------------- 3.91KiB/144.30KiB 82.14KiB/s 2s
###>---------------------------------- 11.72KiB/144.30KiB 82.02KiB/s 2s
#####>-------------------------------- 19.53KiB/144.30KiB 82.01KiB/s 2s
#######>------------------------------ 27.34KiB/144.30KiB 82.02KiB/s 2s
#########>---------------------------- 35.16KiB/144.30KiB 82.02KiB/s 2s
###########>-------------------------- 42.97KiB/144.30KiB 82.03KiB/s 1s
#############>------------------------ 50.78KiB/144.30KiB 82.04KiB/s 1s
###############>---------------------- 58.59KiB/144.30KiB 82.05KiB/s 1s
#################>-------------------- 66.41KiB/144.30KiB 82.04KiB/s 1s
###################>------------------ 74.22KiB/144.30KiB 82.07KiB/s 1s
#####################>---------------- 82.03KiB/144.30KiB 82.09KiB/s 1s
#######################>-------------- 89.84KiB/144.30KiB 82.11KiB/s 1s
#########################>------------ 97.66KiB/144.30KiB 82.13KiB/s 1s
###########################>--------- 105.47KiB/144.30KiB 82.14KiB/s 1s
#############################>------- 113.28KiB/144.30KiB 82.15KiB/s 1s
###############################>----- 121.09KiB/144.30KiB 82.17KiB/s 1s
#################################>--- 128.91KiB/144.30KiB 82.17KiB/s 0s
###################################>- 136.72KiB/144.30KiB 82.17KiB/s 0s
##################################### 144.30KiB/144.30KiB 82.18KiB/s 0s
[INFO blflash::flasher] Program done 1.756130103s 82.17KiB/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: 2300f7d6, MTVAL: 00000000
PANIC!!! Exception = 00000002
Current Version: NuttX 12.7.0 358261af19 Nov 25 2024 00:49:06 risc-v
Assertion failed panic: at file: :0 task: Idle_Task process: Kernel 0x230024bc
EPC: 2300f7d6
A0: 00000000 A1: ffff0000 A2: 00000001 A3: 420159ec
A4: 0000ffff A5: 00000001 A6: 42013398 A7: 42011000
T0: ffffff54 T1: 23005678 T2: 41ad1688 T3: 420132b8
T4: 00000000 T5: 00000000 T6: c4aaf7ec
S0: 42015680 S1: 42011000 S2: 420156dc S3: 42011000
S4: 42011000 S5: 00000000 S6: 000001b6 S7: 23007000
S8: 4201fa38 S9: 00000001 S10: 00000130 S11: 00023130
SP: 42015650 FP: 42015680 TP: 0c0364ed RA: 2300f7a4
User Stack:
base: 0x420137d0
size: 00008176
sp: 0x42015650
0x42015630: 000001b6 00000000 42011000 42011000 420156dc 42011000 42015680 2300f7a4
0x42015650: 42011000 42012d00 42011000 23009176 00001ff0 420137c0 420137d0 420108c4
0x42015670: 42015748 00000003 42011000 2300e02c 2301ea3c 420159e0 0000000 420159b8
0x42015690: 2301ea3c 00000000 42011000 420108c4 4202137c 00034130 00000001 42011000
0x420156b0: 42011000 42012d00 42011000 2300e1a8 42011000 42015728 00000003 2301ea30
0x420156d0: 4202137c 42011000 00000001 420108c4 42015748 420159e0 00000001 420108c4
0x420156f0: 42013000 42011000 42011000 2300e270 42011000 23021ca8 42015728 420108c4
0x42015710: 42013000 00034130 42012dc8 230038ca 42011000 23021ca8 00000003 00007fff
0x42015730: 00000000 00000000 42013398 42011000 7974742f 42007853 42015a10 420108c4
0x42015750: 42013000 42012d00 42012dc8 230026b2 23000000 420157c0 0001a840 420108c4
0x42015770: be12f9be 93923733 42020000 4202109c 23000000 00023130 4202109c 23000cb6
0x42015790: 5051ca82 7f4bddf1 cb207583 420108c4 b79303c5 886efbfe c700e370 230000ea
0x420157b0: e6086bea 080c7684 230000d6 2300004a 00000000 00000000 00000000 00000000
PID GROUP PRI POLICY TYPE NPX STATE EVENT SIGMASK STACKBASE STACKSIZE USED FILLED COMMAND
---- --- --- -------- ------- --- ------- ---------- --------------- 0x42012c00 8192 868 10.5% irq
0 0 0 FIFO Kthread - Running 0000000000000000 0x420137d0 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-11-25 == '' ']'
+ '[' /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: 2300f7d6, MTVAL: 00000000
PANIC!!! Exception = 00000002
Current Version: NuttX 12.7.0 358261af19 Nov 25 2024 00:49:06 risc-v
Assertion failed panic: at file: :0 task: Idle_Task process: Kernel 0x230024bc
EPC: 2300f7d6
A0: 00000000 A1: ffff0000 A2: 00000001 A3: 420159ec
A4: 0000ffff A5: 00000001 A6: 42013398 A7: 42011000
T0: fffff54 T1: 23005678 T2: 41bd5488 T3: 420132b8
T4: 00000000 T5: 00000000 T6: c48af7e4
S0: 42015680 S1: 42011000 S2: 420156dc S3: 42011000
S4: 42011000 S5: 00000000 S6: 000001b6 S7: 23007000
S8: 4201fa38 S9: 00000001 S10: 00000130 S11: 00023130
SP: 42015650 FP: 42015680 TP: 005d52e5 RA: 2300f7a4
User Stack:
base: 0x420137d0
size: 00008176
sp: 0x42015650
0x42015630: 000001b6 00000000 42011000 42011000 420156dc 42011000 42015680 2300f7a4
0x42015650: 42011000 42012d00 42011000 23009176 00001ff0 420137c0 420137d0 420108c4
0x42015670: 42015748 00000003 42011000 2300e02c 2301ea3c 420159e0 00000000 420159b8
0x42015690: 2301ea3c 00000000 42011000 420108c4 4202137c 00034130 00000001 42011000
0x420156b0: 42011000 42012d00 42011000 2300e1a8 42011000 42015728 00000003 2301ea30
0x420156d0: 4202137c 42011000 00000001 420108c4 42015748 420159e0 00000001 420108c4
0x420156f0: 42013000 42011000 42011000 2300e270 42011000 23021ca8 42015728 420108c4
0x42015710: 42013000 00034130 42012dc8 230038ca 42011000 23021ca8 00000003 00007fff
0x42015730: 00000000 00000000 42013398 42011000 7974742f 42007853 42015a10 420108c4
0x42015750: 42013000 42012d00 42012dc8 230026b2 23000000 420157c0 0001a840 420108c4
0x42015770: be12f8be d2d23633 42020000 4202109c 23000000 00023130 4202109c 23000cb6
0x42015790: 5051ca90 374bd9f5 cb2871c3 420108c4 f79303a5 886efb7a e700e370 230000ea
0x420157b0: ee286ea 080e7684 230000d6 2300004a 00000000 00000000 00000000 00000000
PID GROUP PRI POLICY TYPE NPX STATE EVENT SIGASK STACKBASE STACKSIZE USED FILLED COMMAND
---- --- --- -------- ------- --- ------- ---------- ---------------- 0x42012c00 8192 868 10.5% irq
0 0 0 FIFO Kthread - Running 0000000000000000 0x420137d0 8176 632 7.7% Idle_Task
===== Error: SX1262 is NOT OK. Check the SPI connection
Script done on 2024-11-25 08:58:31+08:00 [COMMAND_EXIT_CODE="0"]