upstream-2024-12-02
Error: SX1262 is NOT OK. Check the SPI connection
Error: SX1262 is NOT OK. Check the SPI connection
Script started on 2024-12-02 08:58: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-12-02
+ BUILD_DATE=2024-12-02
+ '[' /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-12-02
+ wget -q https://github.com/lupyuen/incubator-nuttx/releases/download/upstream-2024-12-02/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/30940d92514b5b4582b3751cf5431ec3a7716e5a
NuttX Apps: https://github.com/apache/nuttx-apps/tree/0b3428942fa3b814dde24ffb336bc9a5efd0e428
----- 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 287.421µ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.03KiB/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.02KiB/s 1s
#####################################>- 27.34KiB/28.58KiB 11.03KiB/s 0s
######################################> 28.39KiB/28.58KiB 11.03KiB/s 0s
[INFO blflash::flasher] Finished 2.567686796s 11.13KiB/s
[TRACE blflash::flasher] 5ms send count 500
[TRACE blflash::flasher] handshake sent elapsed 5.200352ms
[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: 147776
[INFO blflash::flasher] Program flash... 153aaf6279cf2e9aeb379b6d7a1142f1ad07b54fcd34856eca86f463cc761b27
#>------------------------------------- 3.91KiB/144.31KiB 81.73KiB/s 2s
###>---------------------------------- 11.72KiB/144.31KiB 81.69KiB/s 2s
#####>-------------------------------- 19.53KiB/144.31KiB 81.80KiB/s 2s
#######>------------------------------ 27.34KiB/144.31KiB 81.84KiB/s 2s
#########>---------------------------- 35.16KiB/144.31KiB 81.88KiB/s 2s
###########>-------------------------- 42.97KiB/144.31KiB 81.91KiB/s 1s
#############>------------------------ 50.78KiB/144.31KiB 81.94KiB/s 1s
###############>---------------------- 58.59KiB/144.31KiB 81.96KiB/s 1s
#################>-------------------- 66.41KiB/144.31KiB 81.98KiB/s 1s
###################>------------------ 74.22KiB/144.31KiB 82.05KiB/s 1s
#####################>---------------- 82.03KiB/144.31KiB 82.07KiB/s 1s
#######################>-------------- 89.84KiB/144.31KiB 82.10KiB/s 1s
#########################>------------ 97.66KiB/144.31KiB 82.12KiB/s 1s
###########################>--------- 105.47KiB/144.31KiB 82.13KiB/s 1s
#############################>------- 113.28KiB/144.31KiB 82.15KiB/s 1s
###############################>----- 121.09KiB/144.31KiB 82.16KiB/s 1s
#################################>--- 128.91KiB/144.31KiB 82.16KiB/s 0s
###################################>- 136.72KiB/144.31KiB 82.17KiB/s 0s
##################################### 144.31KiB/144.31KiB 82.17KiB/s 0s
[INFO blflash::flasher] Program done 1.756782658s 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: 2300f7dc, MTVAL: 00000000
PANIC!!! Exception = 00000002
Current Version: NuttX 12.7.0 30940d9251 Dec 2 2024 00:49:12 risc-v
Assertion failed panic: at file: :0 task: Idle_ask process: Kernel 0x230024bc
EPC: 2300f7dc
A0: 00000000 A1: ffff0000 A2: 00000001 A3: 420159ec
A4: 0000ffff A5: 00000001 A6: 42013398 A7: 42011000
T0: ffffff54 T1: 23005680 T2: 41bd5488 T3: 420132b8
T4: 00000000 T5: 00000000 T6: c48ae7ec
S0: 42015680 S1: 42011000 S2: 420156dc S3: 42011000
S4: 42011000 S5: 00000000 S6: 000001b6 S7: 23007000
S8: 4201fa38 S9: 00000001 S10: 00000140 S11: 00023140
SP: 42015650 FP: 42015680 TP: 005d12e5 RA: 2300f7aa
User Stack:
base: 0x420137d0
size: 00008176
sp: 0x42015650
0x42015630: 000001b6 00000000 42011000 42011000 420156dc 42011000 42015680 2300f7aa
0x42015650: 42011000 42012d00 42011000 2300917e 00001ff0 420137c0 420137d0 420108c4
0x42015670: 42015748 00000003 42011000 2300e032 2301ea44 420159e0 00000000 420159b8
0x42015690: 2301ea44 00000000 42011000 420108c4 4202137c 00034140 00000001 42011000
0x420156b0: 42011000 42012d00 42011000 2300e1ae 42011000 42015728 00000003 2301ea38
0x420156d0: 4202137c 42011000 00000001 420108c4 42015748 420159e0 00000001 420108c4
0x420156f0: 42013000 42011000 42011000 2300e276 42011000 23021cb0 42015728 420108c4
0x42015710: 42013000 00034140 42012dc8 230038d2 42011000 23021cb0 00000003 00007fff
0x42015730: 00000000 00000000 42013398 42011000 7974742f 42007853 42015a10 420108c4
0x42015750: 42013000 42012d00 42012dc8 230026b2 23000000 420157c0 0001a840 420108c4
0x42015770: be92f9be d2da3733 42020000 4202109c 23000000 00023140 4202109c 23000cb6
0x42015790: 5051ca92 774ad9f5 eb387183 420108c4 b79303e5 884cebfa c720e370 230000ea
0x420157b0: ee006bea 080cf284 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-12-02 == '' ']'
+ '[' /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: 2300f7dc, MTVAL: 00000000
PANIC!!! Exception = 00000002
Current Version: NuttX 12.7.0 30940d9251 Dec 2 2024 00:49:12 risc-v
Assertion failed panic: at file: :0 task: Idle_Task process: Kernel 0x230024bc
EPC: 2300f7dc
A0: 00000000 A1: ffff0000 A2: 00000001 A3: 420159ec
A4: 0000ffff A5: 00000001 A6: 42013398 A7: 42011000
T0: ffffff54 T1: 23005680 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: 201fa38 S9: 00000001 S10: 00000140 S11: 00023140
SP: 42015650 FP: 42015680 TP: 005552e5 RA: 2300f7aa
User Stack:
base: 0x420137d0
size: 00008176
sp: 0x42015650
0x42015630: 000001b6 00000000 42011000 42011000 420156dc 42011000 42015680 2300f7aa
0x42015650: 42011000 42012d00 42011000 2300917e 00001ff0 420137c0 420137d0 420108c4
0x42015670: 42015748 00000003 42011000 2300e032 2301ea44 420159e0 00000000 420159b8
0x42015690: 2301ea44 00000000 42011000 420108c4 4202137c 00034140 00000001 42011000
0x420156b0: 42011000 42012d00 42011000 2300e1ae 42011000 42015728 00000003 2301ea38
0x420156d0: 4202137c 42011000 00000001 420108c4 42015748 420159e0 00000001 420108c4
0x420156f0: 42013000 42011000 42011000 2300e276 42011000 23021cb0 42015728 420108c4
0x42015710: 42013000 00034140 42012dc8 230038d2 42011000 23021cb0 00000003 00007fff
0x42015730: 00000000 00000000 42013398 42011000 7974742f 42007853 42015a10 420108c4
0x42015750: 42013000 42012d00 42012dc8 230026b2 23000000 420157c0 0001a840 420108c4
0x42015770: be92b9be dbda3e37 42020000 4202109c 23000000 00023140 4202109c 23000cb6
0x42015790: 5051ca82 674bd9f1 eb3875c3 420108c4 f79303e5 884cfb7a c700e370 230000ea
0x420157b0: ee084bea 080df284 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
Script done on 2024-12-02 08:59:30+08:00 [COMMAND_EXIT_CODE="0"]