upstream-2024-11-26
Error: SX1262 is NOT OK. Check the SPI connection
Error: SX1262 is NOT OK. Check the SPI connection
Script started on 2024-11-26 09:00:47+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-26
+ BUILD_DATE=2024-11-26
+ '[' /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-26
+ wget -q https://github.com/lupyuen/incubator-nuttx/releases/download/upstream-2024-11-26/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/92b9a30878169cd354cc67b31749fa575042afe7
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 245.492µ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.03KiB/s 2s
###############>----------------------- 11.72KiB/28.58KiB 11.02KiB/s 2s
#####################>----------------- 15.62KiB/28.58KiB 11.02KiB/s 1s
##########################>------------ 19.53KiB/28.58KiB 11.03KiB/s 1s
###############################>------- 23.44KiB/28.58KiB 11.03KiB/s 1s
#####################################>- 27.34KiB/28.58KiB 11.04KiB/s 0s
######################################> 28.39KiB/28.58KiB 11.04KiB/s 0s
[INFO blflash::flasher] Finished 2.565187643s 11.14KiB/s
[TRACE blflash::flasher] 5ms send count 500
[TRACE blflash::flasher] handshake sent elapsed 5.184405ms
[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... 0a5df5b599c52dbba27e870e20e20a0b45e311e85a416fc12b24163511a39df4
#>------------------------------------- 3.91KiB/144.30KiB 82.20KiB/s 2s
###>---------------------------------- 11.72KiB/144.30KiB 82.07KiB/s 2s
#####>-------------------------------- 19.53KiB/144.30KiB 82.03KiB/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.04KiB/s 1s
#################>-------------------- 66.41KiB/144.30KiB 82.04KiB/s 1s
###################>------------------ 74.22KiB/144.30KiB 82.06KiB/s 1s
#####################>---------------- 82.03KiB/144.30KiB 82.08KiB/s 1s
#######################>-------------- 89.84KiB/144.30KiB 82.09KiB/s 1s
#########################>------------ 97.66KiB/144.30KiB 82.11KiB/s 1s
###########################>--------- 105.47KiB/144.30KiB 82.13KiB/s 1s
#############################>------- 113.28KiB/144.30KiB 82.13KiB/s 1s
###############################>----- 121.09KiB/144.30KiB 82.15KiB/s 1s
#################################>--- 128.91KiB/144.30KiB 82.15KiB/s 0s
###################################>- 136.72KiB/144.30KiB 82.15KiB/s 0s
##################################### 144.30KiB/144.30KiB 82.16KiB/s 0s
[INFO blflash::flasher] Program done 1.756410246s 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 92b9a30878 Nov 26 2024 00:49:02 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: 41bd558c 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: 105d52e5 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: be92f8ba dada3633 42020000 4202109c 23000000 00023130 4202109c 23000cb6
0x42015790: 50514a90 674ad9f1 cb387183 420108c4 f79303a5 884efb7a c500e370 230000ea
0x420157b0: e6086bea 080f7684 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-26 == '' ']'
+ '[' /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 92b9a30878 Nov 26 2024 00:49:02 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: 43bd5488 T3: 420132b8
T4: 00000000 T5: 00000000 T6: c48ad7ec
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: be92f9be dad23733 42020000 4202109c 23000000 00023130 4202109c 23000cb6
0x42015790: 5051ca90 774af9f5 cb3071c3 420108c4 f79701e5 884efbfa e700e370 230000ea
0x420157b0: ee086be8 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
Script done on 2024-11-26 09:01:29+08:00 [COMMAND_EXIT_CODE="0"]