Skip to content

Releases: lupyuen/nuttx-bl602

upstream-2024-09-20

20 Sep 00:49
c68b9c8
Compare
Choose a tag to compare

Error: SX1262 is NOT OK. Check the SPI connection
Error: SX1262 is NOT OK. Check the SPI connection

Script started on 2024-09-20 08:56:57+08:00 [TERM="xterm-256color" TTY="/dev/pts/0" COLUMNS="100" LINES="157"]

+ '[' '' == '' ']'
+ export BUILD_PREFIX=upstream
+ BUILD_PREFIX=upstream
+ '[' '' == '' ']'
++ date +%Y-%m-%d
+ export BUILD_DATE=2024-09-20
+ BUILD_DATE=2024-09-20
+ '[' /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-09-20
+ wget -q https://github.com/lupyuen/incubator-nuttx/releases/download/upstream-2024-09-20/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/e627850442cf135bfe7c4a484ac255bf78b53977
NuttX Apps: https://github.com/apache/nuttx-apps/tree/b1c4e392057657638d9eaed83eb43a8b88b864df
----- 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 625.687µ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.01KiB/s 2s  
  ##################################>---------------------------- 15.62KiB/28.58KiB 11.02KiB/s 1s  
  ###########################################>------------------- 19.53KiB/28.58KiB 11.02KiB/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.566783872s 11.14KiB/s
[TRACE blflash::flasher] 5ms send count 500
[TRACE blflash::flasher] handshake sent elapsed 5.184456ms
[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: 138640
[INFO  blflash::flasher] Program flash... cc472e078e182d8e2abf1160c3dc5cb2717d73dd738e4e8a057fe6050a33f3dd
  #>------------------------------------------------------------- 3.91KiB/135.39KiB 82.12KiB/s 2s  
  #####>-------------------------------------------------------- 11.72KiB/135.39KiB 81.97KiB/s 2s  
  ########>----------------------------------------------------- 19.53KiB/135.39KiB 81.96KiB/s 2s  
  ############>------------------------------------------------- 27.34KiB/135.39KiB 81.97KiB/s 2s  
  ################>--------------------------------------------- 35.16KiB/135.39KiB 81.99KiB/s 1s  
  ###################>------------------------------------------ 42.97KiB/135.39KiB 82.00KiB/s 1s  
  #######################>-------------------------------------- 50.78KiB/135.39KiB 82.02KiB/s 1s  
  ##########################>----------------------------------- 58.59KiB/135.39KiB 82.03KiB/s 1s  
  ##############################>------------------------------- 66.41KiB/135.39KiB 82.03KiB/s 1s  
  #################################>---------------------------- 74.22KiB/135.39KiB 82.06KiB/s 1s  
  #####################################>------------------------ 82.03KiB/135.39KiB 82.09KiB/s 1s  
  #########################################>-------------------- 89.84KiB/135.39KiB 82.11KiB/s 1s  
  ############################################>----------------- 97.66KiB/135.39KiB 82.13KiB/s 1s  
  ###############################################>------------- 105.47KiB/135.39KiB 82.14KiB/s 1s  
  ###################################################>--------- 113.28KiB/135.39KiB 82.15KiB/s 1s  
  ######################################################>------ 121.09KiB/135.39KiB 82.16KiB/s 0s  
  ##########################################################>-- 128.91KiB/135.39KiB 82.16KiB/s 0s  
  ############################################################# 135.39KiB/135.39KiB 82.17KiB/s 0s  
[INFO  blflash::flasher] Program done 1.648780731s 82.15KiB/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...
�Registering /dev/gpio0
Registering /dev/gpio1
Disable the interrupt
Registering /dev/gpio2
frequency=400000, actual=0
nbits=8
mode=0

NuttShell (NSH) NuttX-12.6.0-RC1
nsh> uname -a
NuttX 12.6.0-RC1 e627850442 Sep 20 2024 00:48:35 risc-v bl602evb
nsh> ls /dev
/dev:
 console
 gpio0
 gpio1
 gpio2
 i2c0
 spi0
 timer0
 zero
nsh> spi_test2
nsh> 
===== 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-09-20 == '' ']'
+ '[' /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...
�Registering /dev/gpio0
Registering /dev/gpio1
Disable the interrupt
Registering /dev/gpio2
frequency=400000, actual=0
nbits=8
mode=0

NuttShell (NSH) NuttX-12.6.0-RC1
nsh> uname -a
NuttX 12.6.0-RC1 e627850442 Sep 20 2024 00:48:35 risc-v bl602evb
nsh> ls /dev
/dev:
 console
 gpio0
 gpio1
 gpio2
 i2c0
 spi0
 timer0
 zero
nsh> spi_test2
nsh> 
===== Error: SX1262 is NOT OK. Check the SPI connection


Script done on 2024-09-20 08:57:40+08:00 [COMMAND_EXIT_CODE="0"]

upstream-2024-09-19

19 Sep 00:49
c68b9c8
Compare
Choose a tag to compare

Error: SX1262 is NOT OK. Check the SPI connection
Error: SX1262 is NOT OK. Check the SPI connection

Script started on 2024-09-19 08:53:56+08:00 [TERM="xterm-256color" TTY="/dev/pts/0" COLUMNS="100" LINES="157"]

+ '[' '' == '' ']'
+ export BUILD_PREFIX=upstream
+ BUILD_PREFIX=upstream
+ '[' '' == '' ']'
++ date +%Y-%m-%d
+ export BUILD_DATE=2024-09-19
+ BUILD_DATE=2024-09-19
+ '[' /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-09-19
+ wget -q https://github.com/lupyuen/incubator-nuttx/releases/download/upstream-2024-09-19/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/1d3dd328dd9b153ee6dcdc18b9946de88e217bc6
NuttX Apps: https://github.com/apache/nuttx-apps/tree/9a1a8d3ca3520a61821d8be4a6508d773d431a59
----- 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 391.344µ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.02KiB/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.04KiB/s 0s  
  ##############################################################> 28.39KiB/28.58KiB 11.04KiB/s 0s  
[INFO  blflash::flasher] Finished 2.566824102s 11.14KiB/s
[TRACE blflash::flasher] 5ms send count 500
[TRACE blflash::flasher] handshake sent elapsed 5.202896ms
[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: 138640
[INFO  blflash::flasher] Program flash... bd47a078f511bc95739b484d906f92396f3f7451b2b6af882f03f27db8427bbf
  #>------------------------------------------------------------- 3.91KiB/135.39KiB 81.74KiB/s 2s  
  #####>-------------------------------------------------------- 11.72KiB/135.39KiB 81.59KiB/s 2s  
  ########>----------------------------------------------------- 19.53KiB/135.39KiB 81.64KiB/s 2s  
  ############>------------------------------------------------- 27.34KiB/135.39KiB 81.70KiB/s 2s  
  ################>--------------------------------------------- 35.16KiB/135.39KiB 81.75KiB/s 1s  
  ###################>------------------------------------------ 42.97KiB/135.39KiB 81.80KiB/s 1s  
  #######################>-------------------------------------- 50.78KiB/135.39KiB 81.83KiB/s 1s  
  ##########################>----------------------------------- 58.59KiB/135.39KiB 81.86KiB/s 1s  
  ##############################>------------------------------- 66.41KiB/135.39KiB 81.88KiB/s 1s  
  #################################>---------------------------- 74.22KiB/135.39KiB 81.95KiB/s 1s  
  #####################################>------------------------ 82.03KiB/135.39KiB 82.01KiB/s 1s  
  #########################################>-------------------- 89.84KiB/135.39KiB 82.04KiB/s 1s  
  ############################################>----------------- 97.66KiB/135.39KiB 82.06KiB/s 1s  
  ###############################################>------------- 105.47KiB/135.39KiB 82.08KiB/s 1s  
  ###################################################>--------- 113.28KiB/135.39KiB 82.09KiB/s 1s  
  ######################################################>------ 121.09KiB/135.39KiB 82.11KiB/s 0s  
  ##########################################################>-- 128.91KiB/135.39KiB 82.11KiB/s 0s  
  ############################################################# 135.39KiB/135.39KiB 82.12KiB/s 0s  
[INFO  blflash::flasher] Program done 1.649740258s 82.10KiB/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...
�Registering /dev/gpio0
Registering /dev/gpio1
Disable the interrupt
Registering /dev/gpio2
frequency=400000, actual=0
nbits=8
mode=0

NuttShell (NSH) NuttX-12.6.0-RC1
nsh> uname -a
NuttX 12.6.0-RC1 1d3dd328dd Sep 19 2024 00:48:31 risc-v bl602evb
nsh> ls /dev
/dev:
 console
 gpio0
 gpio1
 gpio2
 i2c0
 spi0
 timer0
 zero
nsh> spi_test2
nsh> 
===== 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-09-19 == '' ']'
+ '[' /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...
�Registering /dev/gpio0
Registering /dev/gpio1
Disable the interrupt
Registering /dev/gpio2
frequency=400000, actual=0
nbits=8
mode=0

NuttShell (NSH) NuttX-12.6.0-RC1
nsh> uname -a
NuttX 12.6.0-RC1 1d3dd328dd Sep 19 2024 00:48:31 risc-v bl602evb
nsh> ls /dev
/dev:
 console
 gpio0
 gpio1
 gpio2
 i2c0
 spi0
 timer0
 zero
nsh> spi_test2
nsh> 
===== Error: SX1262 is NOT OK. Check the SPI connection


Script done on 2024-09-19 08:54:37+08:00 [COMMAND_EXIT_CODE="0"]

upstream-2024-09-18

18 Sep 00:49
c68b9c8
Compare
Choose a tag to compare

Error: SX1262 is NOT OK. Check the SPI connection
Error: SX1262 is NOT OK. Check the SPI connection

Script started on 2024-09-18 09:00:49+08:00 [TERM="xterm-256color" TTY="/dev/pts/0" COLUMNS="100" LINES="157"]

+ '[' '' == '' ']'
+ export BUILD_PREFIX=upstream
+ BUILD_PREFIX=upstream
+ '[' '' == '' ']'
++ date +%Y-%m-%d
+ export BUILD_DATE=2024-09-18
+ BUILD_DATE=2024-09-18
+ '[' /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-09-18
+ wget -q https://github.com/lupyuen/incubator-nuttx/releases/download/upstream-2024-09-18/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/67ffe7974cfc42c4368bc1b58ca3b2918e0ea66f
NuttX Apps: https://github.com/apache/nuttx-apps/tree/140647cf8ca7ccff8c2e02814f81c7e70ab979c2
----- 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 293.586µ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.15KiB/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.04KiB/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.564372547s 11.15KiB/s
[TRACE blflash::flasher] 5ms send count 500
[TRACE blflash::flasher] handshake sent elapsed 5.172384ms
[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: 138640
[INFO  blflash::flasher] Program flash... 0c81e96f0be4fdb6249a97d1dbd41b5854cc45a66a4006cb36669ae765509a9f
  #>------------------------------------------------------------- 3.91KiB/135.39KiB 81.68KiB/s 2s  
  #####>-------------------------------------------------------- 11.72KiB/135.39KiB 81.31KiB/s 2s  
  ########>----------------------------------------------------- 19.53KiB/135.39KiB 81.25KiB/s 2s  
  ############>------------------------------------------------- 27.34KiB/135.39KiB 81.31KiB/s 2s  
  ################>--------------------------------------------- 35.16KiB/135.39KiB 81.37KiB/s 1s  
  ###################>------------------------------------------ 42.97KiB/135.39KiB 81.44KiB/s 1s  
  #######################>-------------------------------------- 50.78KiB/135.39KiB 81.49KiB/s 1s  
  ##########################>----------------------------------- 58.59KiB/135.39KiB 81.54KiB/s 1s  
  ##############################>------------------------------- 66.41KiB/135.39KiB 81.55KiB/s 1s  
  #################################>---------------------------- 74.22KiB/135.39KiB 81.66KiB/s 1s  
  #####################################>------------------------ 82.03KiB/135.39KiB 81.76KiB/s 1s  
  #########################################>-------------------- 89.84KiB/135.39KiB 81.84KiB/s 1s  
  ############################################>----------------- 97.66KiB/135.39KiB 81.88KiB/s 1s  
  ###############################################>------------- 105.47KiB/135.39KiB 81.92KiB/s 1s  
  ###################################################>--------- 113.28KiB/135.39KiB 81.95KiB/s 1s  
  ######################################################>------ 121.09KiB/135.39KiB 81.98KiB/s 0s  
  ##########################################################>-- 128.91KiB/135.39KiB 81.99KiB/s 0s  
  ############################################################# 135.39KiB/135.39KiB 82.00KiB/s 0s  
[INFO  blflash::flasher] Program done 1.651195725s 82.00KiB/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...
�Registering /dev/gpio0
Registering /dev/gpio1
Disable the interrupt
Registering /dev/gpio2
frequency=400000, actual=0
nbits=8
mode=0

NuttShell (NSH) NuttX-12.6.0-RC1
nsh> uname -a
NuttX 12.6.0-RC1 67ffe7974c Sep 18 2024 00:49:01 risc-v bl602evb
nsh> ls /dev
/dev:
 console
 gpio0
 gpio1
 gpio2
 i2c0
 spi0
 timer0
 zero
nsh> spi_test2
nsh> 
===== 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-09-18 == '' ']'
+ '[' /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...
�Registering /dev/gpio0
Registering /dev/gpio1
Disable the interrupt
Registering /dev/gpio2
frequency=400000, actual=0
nbits=8
mode=0

NuttShell (NSH) NuttX-12.6.0-RC1
nsh> uname -a
NuttX 12.6.0-RC1 67ffe7974c Sep 18 2024 00:49:01 risc-v bl602evb
nsh> ls /dev
/dev:
 console
 gpio0
 gpio1
 gpio2
 i2c0
 spi0
 timer0
 zero
nsh> spi_test2
nsh> 
===== Error: SX1262 is NOT OK. Check the SPI connection


Script done on 2024-09-18 09:01:31+08:00 [COMMAND_EXIT_CODE="0"]

upstream-2024-09-17

17 Sep 00:48
c68b9c8
Compare
Choose a tag to compare

Error: SX1262 is NOT OK. Check the SPI connection
Error: SX1262 is NOT OK. Check the SPI connection

Script started on 2024-09-17 08:57:46+08:00 [TERM="xterm-256color" TTY="/dev/pts/0" COLUMNS="100" LINES="157"]

+ '[' '' == '' ']'
+ export BUILD_PREFIX=upstream
+ BUILD_PREFIX=upstream
+ '[' '' == '' ']'
++ date +%Y-%m-%d
+ export BUILD_DATE=2024-09-17
+ BUILD_DATE=2024-09-17
+ '[' /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-09-17
+ wget -q https://github.com/lupyuen/incubator-nuttx/releases/download/upstream-2024-09-17/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/92cbb63fc80daa498dc572d86fe7d03e1869eabb
NuttX Apps: https://github.com/apache/nuttx-apps/tree/140647cf8ca7ccff8c2e02814f81c7e70ab979c2
----- 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 236.245µ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.04KiB/s 1s  
  ############################################################>-- 27.34KiB/28.58KiB 11.04KiB/s 0s  
  ##############################################################> 28.39KiB/28.58KiB 11.04KiB/s 0s  
[INFO  blflash::flasher] Finished 2.565880312s 11.14KiB/s
[TRACE blflash::flasher] 5ms send count 500
[TRACE blflash::flasher] handshake sent elapsed 5.175671ms
[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: 138608
[INFO  blflash::flasher] Program flash... 5f5945cc3ab4ef959d308ff72877733b98ab64f451e4e709466405aadc7910bb
  #>------------------------------------------------------------- 3.91KiB/135.36KiB 82.08KiB/s 2s  
  #####>-------------------------------------------------------- 11.72KiB/135.36KiB 81.82KiB/s 2s  
  ########>----------------------------------------------------- 19.53KiB/135.36KiB 81.85KiB/s 2s  
  ############>------------------------------------------------- 27.34KiB/135.36KiB 81.88KiB/s 2s  
  ################>--------------------------------------------- 35.16KiB/135.36KiB 81.91KiB/s 1s  
  ###################>------------------------------------------ 42.97KiB/135.36KiB 81.95KiB/s 1s  
  #######################>-------------------------------------- 50.78KiB/135.36KiB 81.97KiB/s 1s  
  ##########################>----------------------------------- 58.59KiB/135.36KiB 81.99KiB/s 1s  
  ##############################>------------------------------- 66.41KiB/135.36KiB 82.00KiB/s 1s  
  #################################>---------------------------- 74.22KiB/135.36KiB 82.06KiB/s 1s  
  #####################################>------------------------ 82.03KiB/135.36KiB 82.10KiB/s 1s  
  #########################################>-------------------- 89.84KiB/135.36KiB 82.13KiB/s 1s  
  ############################################>----------------- 97.66KiB/135.36KiB 82.15KiB/s 1s  
  ###############################################>------------- 105.47KiB/135.36KiB 82.16KiB/s 1s  
  ###################################################>--------- 113.28KiB/135.36KiB 82.17KiB/s 1s  
  ######################################################>------ 121.09KiB/135.36KiB 82.18KiB/s 0s  
  ##########################################################>-- 128.91KiB/135.36KiB 82.18KiB/s 0s  
  ############################################################# 135.36KiB/135.36KiB 82.18KiB/s 0s  
[INFO  blflash::flasher] Program done 1.648294589s 82.13KiB/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...
�Registering /dev/gpio0
Registering /dev/gpio1
Disable the interrupt
Registering /dev/gpio2
frequency=400000, actual=0
nbits=8
mode=0

NuttShell (NSH) NuttX-12.6.0-RC1
nsh> uname -a
NuttX 12.6.0-RC1 92cbb63fc Sep 17 2024 00:48:01 risc-v bl602evb
nsh> ls /dev
/dev:
 console
 gpio0
 gpio1
 gpio2
 i2c0
 spi0
 timer0
 zero
nsh> spi_test2
nsh> 
===== 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-09-17 == '' ']'
+ '[' /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...
�Registering /dev/gpio0
Registering /dev/gpio1
Disable the interrupt
Registering /dev/gpio2
frequency=400000, actual=0
nbits=8
mode=0

NuttShell (NSH) NuttX-12.6.0-RC1
nsh> uname -a
NuttX 12.6.0-RC1 92cbb63fc8 Sep 17 2024 00:48:01 risc-v bl602evb
nsh> ls /dev
/dev:
 console
 gpio0
 gpio1
 gpio2
 i2c0
 spi0
 timer0
 zero
nsh> spi_test2
nsh> 
===== Error: SX1262 is NOT OK. Check the SPI connection


Script done on 2024-09-17 08:58:28+08:00 [COMMAND_EXIT_CODE="0"]

upstream-2024-09-16

16 Sep 00:49
c68b9c8
Compare
Choose a tag to compare

Error: SX1262 is NOT OK. Check the SPI connection
Error: SX1262 is NOT OK. Check the SPI connection

Script started on 2024-09-16 08:54:43+08:00 [TERM="xterm-256color" TTY="/dev/pts/0" COLUMNS="100" LINES="157"]

+ '[' '' == '' ']'
+ export BUILD_PREFIX=upstream
+ BUILD_PREFIX=upstream
+ '[' '' == '' ']'
++ date +%Y-%m-%d
+ export BUILD_DATE=2024-09-16
+ BUILD_DATE=2024-09-16
+ '[' /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-09-16
+ wget -q https://github.com/lupyuen/incubator-nuttx/releases/download/upstream-2024-09-16/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/97d684847b6f1dd654af11f26dd56ea76180b35b
NuttX Apps: https://github.com/apache/nuttx-apps/tree/140647cf8ca7ccff8c2e02814f81c7e70ab979c2
----- 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 426.513µ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.03KiB/s 1s  
  ###########################################>------------------- 19.53KiB/28.58KiB 11.03KiB/s 1s  
  ###################################################>----------- 23.44KiB/28.58KiB 11.04KiB/s 1s  
  ############################################################>-- 27.34KiB/28.58KiB 11.04KiB/s 0s  
  ##############################################################> 28.39KiB/28.58KiB 11.05KiB/s 0s  
[INFO  blflash::flasher] Finished 2.56520461s 11.14KiB/s
[TRACE blflash::flasher] 5ms send count 500
[TRACE blflash::flasher] handshake sent elapsed 5.199241ms
[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: 138592
[INFO  blflash::flasher] Program flash... 8a3f3443e7b9fbc02148b561d08022e80cbe0996a4a0a0b0a0167c3ed281fff7
  #>------------------------------------------------------------- 3.91KiB/135.34KiB 82.15KiB/s 2s  
  #####>-------------------------------------------------------- 11.72KiB/135.34KiB 81.97KiB/s 2s  
  ########>----------------------------------------------------- 19.53KiB/135.34KiB 81.98KiB/s 2s  
  ############>------------------------------------------------- 27.34KiB/135.34KiB 82.02KiB/s 2s  
  ################>--------------------------------------------- 35.16KiB/135.34KiB 82.04KiB/s 1s  
  ###################>------------------------------------------ 42.97KiB/135.34KiB 82.06KiB/s 1s  
  #######################>-------------------------------------- 50.78KiB/135.34KiB 82.07KiB/s 1s  
  ##########################>----------------------------------- 58.59KiB/135.34KiB 82.08KiB/s 1s  
  ##############################>------------------------------- 66.41KiB/135.34KiB 82.08KiB/s 1s  
  #################################>---------------------------- 74.22KiB/135.34KiB 82.12KiB/s 1s  
  #####################################>------------------------ 82.03KiB/135.34KiB 82.15KiB/s 1s  
  #########################################>-------------------- 89.84KiB/135.34KiB 82.15KiB/s 1s  
  ############################################>----------------- 97.66KiB/135.34KiB 82.16KiB/s 1s  
  ###############################################>------------- 105.47KiB/135.34KiB 82.16KiB/s 1s  
  ###################################################>--------- 113.28KiB/135.34KiB 82.17KiB/s 1s  
  ######################################################>------ 121.09KiB/135.34KiB 82.17KiB/s 0s  
  ##########################################################>-- 128.91KiB/135.34KiB 82.18KiB/s 0s  
  ############################################################# 135.34KiB/135.34KiB 82.18KiB/s 0s  
[INFO  blflash::flasher] Program done 1.647758214s 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...
�Registering /dev/gpio0
Registering /dev/gpio1
Disable the interrupt
Registering /dev/gpio2
frequency=400000, actual=0
nbits=8
mode=0

NuttShell (NSH) NuttX-12.6.0-RC1
nsh> uname -a
NuttX 12.6.0-RC1 97d684847b Sep 16 2024 00:49:08 risc-v bl602evb
nsh> ls /dev
/dev:
 console
 gpio0
 gpio1
 gpio2
 i2c0
 spi0
 timer0
 zero
nsh> spi_test2
nsh> 
===== 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-09-16 == '' ']'
+ '[' /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...
�Registering /dev/gpio0
Registering /dev/gpio1
Disable the interrupt
Registering /dev/gpio2
frequency=400000, actual=0
nbits=8
mode=0

NuttShell (NSH) NuttX-12.6.0-RC1
nsh> uname -a
NuttX 12.6.0-RC1 97d684847b Sep 16 2024 00:49:08 risc-v bl602evb
nsh> ls /dev
/dev:
 console
 gpio0
 gpio1
 gpio2
 i2c0
 spi0
 timer0
 zero
nsh> spi_test2
nsh> 
===== Error: SX1262 is NOT OK. Check the SPI connection


Script done on 2024-09-16 08:55:26+08:00 [COMMAND_EXIT_CODE="0"]

upstream-2024-09-15

15 Sep 00:50
c68b9c8
Compare
Choose a tag to compare

Error: SX1262 is NOT OK. Check the SPI connection
Error: SX1262 is NOT OK. Check the SPI connection
Error: SX1262 is NOT OK. Check the SPI connection
Error: SX1262 is NOT OK. Check the SPI connection
Error: SX1262 is NOT OK. Check the SPI connection
Error: SX1262 is NOT OK. Check the SPI connection

Script started on 2024-09-15 13:01:45+08:00 [TERM="xterm-256color" TTY="/dev/pts/0" COLUMNS="100" LINES="157"]

+ '[' '' == '' ']'
+ export BUILD_PREFIX=upstream
+ BUILD_PREFIX=upstream
+ '[' '' == '' ']'
++ date +%Y-%m-%d
+ export BUILD_DATE=2024-09-15
+ BUILD_DATE=2024-09-15
+ '[' /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-09-15
+ wget -q https://github.com/lupyuen/incubator-nuttx/releases/download/upstream-2024-09-15/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/51909ed59fe67c7c96613908223b3754ef253d18
NuttX Apps: https://github.com/apache/nuttx-apps/tree/140647cf8ca7ccff8c2e02814f81c7e70ab979c2
----- 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 561.638µ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.15KiB/s 2s  
  #################>---------------------------------------------- 7.81KiB/28.58KiB 11.04KiB/s 2s  
  #########################>------------------------------------- 11.72KiB/28.58KiB 11.03KiB/s 2s  
  ##################################>---------------------------- 15.62KiB/28.58KiB 11.04KiB/s 1s  
  ###########################################>------------------- 19.53KiB/28.58KiB 11.04KiB/s 1s  
  ###################################################>----------- 23.44KiB/28.58KiB 11.05KiB/s 1s  
  ############################################################>-- 27.34KiB/28.58KiB 11.05KiB/s 0s  
  ##############################################################> 28.39KiB/28.58KiB 11.06KiB/s 0s  
[INFO  blflash::flasher] Finished 2.563221784s 11.15KiB/s
[TRACE blflash::flasher] 5ms send count 500
[TRACE blflash::flasher] handshake sent elapsed 5.195846ms
[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] Skip segment addr: 10000 size: 138384 sha256 matches
[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...
�Registering /dev/gpio0
Registering /dev/gpio1
Disable the interrupt
Registering /dev/gpio2
frequency=400000, actual=0
nbits=8
mode=0

NuttShell (NSH) NuttX-12.6.0-RC1
nsh> uname -a
NuttX 12.6.0-RC1 51909ed59f Sep 15 2024 00:49:30 risc-v bl602evb
nsh> ls /dev
/dev:
 console
 gpio0
 gpio1
 gpio2
 i2c0
 spi0
 timer0
 zero
nsh> spi_test2
nsh> 
===== 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-09-15 == '' ']'
+ '[' /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...
�Registering /dev/gpio0
Registering /dev/gpio1
Disable the interrupt
Registering /dev/gpio2
frequency=400000, actual=0
nbits=8
mode=0

NuttShell (NSH) NuttX-12.6.0-RC1
nsh> uname -a
NuttX 12.6.0-RC1 51909ed59f Sp 15 2024 00:49:30 risc-v bl602evb
nsh> ls /dev
/dev:
 console
 gpio0
 gpio1
 gpio2
 i2c0
 spi0
 timer0
 zero
nsh> spi_test2
nsh> 
===== Error: SX1262 is NOT OK. Check the SPI connection


Script done on 2024-09-15 13:02:25+08:00 [COMMAND_EXIT_CODE="0"]

upstream-2024-09-14

14 Sep 00:49
c68b9c8
Compare
Choose a tag to compare

Error: SX1262 is NOT OK. Check the SPI connection
Error: SX1262 is NOT OK. Check the SPI connection

Script started on 2024-09-14 08:55:30+08:00 [TERM="xterm-256color" TTY="/dev/pts/0" COLUMNS="63" LINES="157"]

+ '[' '' == '' ']'
+ export BUILD_PREFIX=upstream
+ BUILD_PREFIX=upstream
+ '[' '' == '' ']'
++ date +%Y-%m-%d
+ export BUILD_DATE=2024-09-14
+ BUILD_DATE=2024-09-14
+ '[' /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-09-14
+ wget -q https://github.com/lupyuen/incubator-nuttx/releases/download/upstream-2024-09-14/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/7a495fabb6ae5cf98d48289e0ab6c63529d745ba
NuttX Apps: https://github.com/apache/nuttx-apps/tree/f96461c3856f5cb98354a9280d2d2aa630457cdb
----- 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 355.859µ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.02KiB/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.563733996s 11.15KiB/s
[TRACE blflash::flasher] 5ms send count 500
[TRACE blflash::flasher] handshake sent elapsed 5.198638ms
[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: 138368
[INFO  blflash::flasher] Program flash... 9e67dbfb81a7511d8b4a49fe884290a45aaa12d61b3fb426b2fbfcb032c2f75b
  >------------------------- 3.91KiB/135.12KiB 81.82KiB/s 2s  
  ##>---------------------- 11.72KiB/135.12KiB 81.23KiB/s 2s  
  ###>--------------------- 19.53KiB/135.12KiB 81.22KiB/s 2s  
  #####>------------------- 27.34KiB/135.12KiB 81.28KiB/s 2s  
  ######>------------------ 35.16KiB/135.12KiB 81.33KiB/s 1s  
  #######>----------------- 42.97KiB/135.12KiB 81.37KiB/s 1s  
  #########>--------------- 50.78KiB/135.12KiB 81.41KiB/s 1s  
  ##########>-------------- 58.59KiB/135.12KiB 81.45KiB/s 1s  
  ############>------------ 66.41KiB/135.12KiB 81.45KiB/s 1s  
  #############>----------- 74.22KiB/135.12KiB 81.56KiB/s 1s  
  ###############>--------- 82.03KiB/135.12KiB 81.63KiB/s 1s  
  ################>-------- 89.84KiB/135.12KiB 81.68KiB/s 1s  
  ##################>------ 97.66KiB/135.12KiB 81.73KiB/s 1s  
  ##################>----- 105.47KiB/135.12KiB 81.75KiB/s 1s  
  ####################>--- 113.28KiB/135.12KiB 81.78KiB/s 1s  
  #####################>-- 121.09KiB/135.12KiB 81.81KiB/s 0s  
  ######################>- 128.91KiB/135.12KiB 81.82KiB/s 0s  
  ######################## 135.12KiB/135.12KiB 81.83KiB/s 0s  
[INFO  blflash::flasher] Program done 1.652458578s 81.79KiB/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...
�Registering /dev/gpio0
Registering /dev/gpio1
Disable the interrupt
Registering /dev/gpio2
frequency=400000, actual=0
nbits=8
mode=0

NuttShell (NSH) NuttX-12.6.0-RC1
nsh> uname -a
NuttX 12.6.0-RC1 7a495fabb6 Sep 14 2024 00:48:34 risc-v bl602evb
nsh> ls /dev
/dev:
 console
 gpio0
 gpio1
 gpio2
 i2c0
 spi0
 timer0
 zero
nsh> spi_test2
nsh> 
===== 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-09-14 == '' ']'
+ '[' /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...
�Registering /dev/gpio0
Registering /dev/gpio1
Disable the interrupt
Registering /dev/gpio2
frequency=400000, actual=0
nbits=8
mode=0

NuttShell (NSH) NuttX-12.6.0-RC1
nsh> uname -a
NuttX 12.6.0-RC1 7a495fabb6 Sep 14 2024 00:48:34 risc-v bl602evb
nsh> ls /dev
/dev:
 console
 gpio0
 gpio1
 gpio2
 i2c0
 spi0
 timer0
 zero
nsh> spi_test2
nsh> 
===== Error: SX1262 is NOT OK. Check the SPI connection


Script done on 2024-09-14 08:56:13+08:00 [COMMAND_EXIT_CODE="0"]

upstream-2024-09-13

13 Sep 00:49
c68b9c8
Compare
Choose a tag to compare

Error: SX1262 is NOT OK. Check the SPI connection
Error: SX1262 is NOT OK. Check the SPI connection

Script started on 2024-09-13 08:52:31+08:00 [TERM="xterm-256color" TTY="/dev/pts/0" COLUMNS="63" LINES="157"]

+ '[' '' == '' ']'
+ export BUILD_PREFIX=upstream
+ BUILD_PREFIX=upstream
+ '[' '' == '' ']'
++ date +%Y-%m-%d
+ export BUILD_DATE=2024-09-13
+ BUILD_DATE=2024-09-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-09-13
+ wget -q https://github.com/lupyuen/incubator-nuttx/releases/download/upstream-2024-09-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/101c2f04213a7d29530f06ea18012262c0792e3b
NuttX Apps: https://github.com/apache/nuttx-apps/tree/1f51bfe64dfa931d97137b0c7561c053e1d6078d
----- 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 265.365µ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.02KiB/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.565827928s 11.14KiB/s
[TRACE blflash::flasher] 5ms send count 500
[TRACE blflash::flasher] handshake sent elapsed 5.183673ms
[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: 138464
[INFO  blflash::flasher] Program flash... d2e2feb468859a2ffe2582bf504c01226e5b208dd229ca040d6e6616416b0b79
  >------------------------- 3.91KiB/135.22KiB 80.91KiB/s 2s  
  ##>---------------------- 11.72KiB/135.22KiB 81.18KiB/s 2s  
  ###>--------------------- 19.53KiB/135.22KiB 81.39KiB/s 2s  
  #####>------------------- 27.34KiB/135.22KiB 81.53KiB/s 2s  
  ######>------------------ 35.16KiB/135.22KiB 81.62KiB/s 1s  
  #######>----------------- 42.97KiB/135.22KiB 81.69KiB/s 1s  
  #########>--------------- 50.78KiB/135.22KiB 81.74KiB/s 1s  
  ##########>-------------- 58.59KiB/135.22KiB 81.78KiB/s 1s  
  ############>------------ 66.41KiB/135.22KiB 81.86KiB/s 1s  
  #############>----------- 74.22KiB/135.22KiB 81.96KiB/s 1s  
  ###############>--------- 82.03KiB/135.22KiB 82.01KiB/s 1s  
  ################>-------- 89.84KiB/135.22KiB 82.04KiB/s 1s  
  ##################>------ 97.66KiB/135.22KiB 82.06KiB/s 1s  
  ##################>----- 105.47KiB/135.22KiB 82.08KiB/s 1s  
  ####################>--- 113.28KiB/135.22KiB 82.08KiB/s 1s  
  #####################>-- 121.09KiB/135.22KiB 82.08KiB/s 0s  
  ######################>- 128.91KiB/135.22KiB 82.08KiB/s 0s  
  ######################## 135.22KiB/135.22KiB 82.08KiB/s 0s  
[INFO  blflash::flasher] Program done 1.648591976s 82.05KiB/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...
�Registering /dev/gpio0
Registering /dev/gpio1
Disable the interrupt
Registering /dev/gpio2
frequency=400000, actual=0
nbits=8
mode=0

NuttShell (NSH) NuttX-12.6.0-RC1
nsh> uname -a
NuttX 12.6.0-RC1 101c2f0421 Sep 13 202400:48:44 risc-v bl602evb
nsh> ls /dev
/dev:
 console
 gpio0
 gpio1
 gpio2
 i2c0
 spi0
 timer0
 zero
nsh> spi_test2
nsh> 
===== 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-09-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...
�Registering /dev/gpio0
Registering /dev/gpio1
Disable the interrupt
Registering /dev/gpio2
frequency=400000, actual=0
nbits=8
mode=0

NuttShell (NSH) NuttX-12.6.0-RC1
nsh> uname -a
NuttX 12.6.0-RC1 101c2f0421 Sep 13 2024 00:48:44 risc-v bl602evb
nsh> ls /dev
/dev:
 console
 gpio0
 gpio1
 gpio2
 i2c0
 spi0
 timer0
 zero
nsh> spi_test2
nsh> 
===== Error: SX1262 is NOT OK. Check the SPI connection


Script done on 2024-09-13 08:53:13+08:00 [COMMAND_EXIT_CODE="0"]

upstream-2024-09-12

12 Sep 00:49
c68b9c8
Compare
Choose a tag to compare

Error: SX1262 is NOT OK. Check the SPI connection
Error: SX1262 is NOT OK. Check the SPI connection

Script started on 2024-09-12 08:59:30+08:00 [TERM="xterm-256color" TTY="/dev/pts/0" COLUMNS="63" LINES="157"]

+ '[' '' == '' ']'
+ export BUILD_PREFIX=upstream
+ BUILD_PREFIX=upstream
+ '[' '' == '' ']'
++ date +%Y-%m-%d
+ export BUILD_DATE=2024-09-12
+ BUILD_DATE=2024-09-12
+ '[' /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-09-12
+ wget -q https://github.com/lupyuen/incubator-nuttx/releases/download/upstream-2024-09-12/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/75ed9a45399be461b1d7e7e8fa8b2853dd233119
NuttX Apps: https://github.com/apache/nuttx-apps/tree/002e31c56d7632bcab32bac00a6bd1e1fafaa7b1
----- 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 418.913µ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.01KiB/s 2s  
  ##############>----------- 15.62KiB/28.58KiB 11.01KiB/s 1s  
  #################>-------- 19.53KiB/28.58KiB 11.01KiB/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.567320202s 11.13KiB/s
[TRACE blflash::flasher] 5ms send count 500
[TRACE blflash::flasher] handshake sent elapsed 5.2218ms
[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: 139616
[INFO  blflash::flasher] Program flash... 76d43e8fe9b647b2b62b1b6fa32f23cb2ffef8064b8ffa3ef5f7a9ad3f07656d
  >------------------------- 3.91KiB/136.34KiB 82.07KiB/s 2s  
  ##>---------------------- 11.72KiB/136.34KiB 81.96KiB/s 2s  
  ###>--------------------- 19.53KiB/136.34KiB 82.01KiB/s 2s  
  #####>------------------- 27.34KiB/136.34KiB 82.04KiB/s 2s  
  ######>------------------ 35.16KiB/136.34KiB 82.06KiB/s 1s  
  #######>----------------- 42.97KiB/136.34KiB 82.08KiB/s 1s  
  #########>--------------- 50.78KiB/136.34KiB 82.09KiB/s 1s  
  ##########>-------------- 58.59KiB/136.34KiB 82.10KiB/s 1s  
  ############>------------ 66.41KiB/136.34KiB 82.11KiB/s 1s  
  #############>----------- 74.22KiB/136.34KiB 82.14KiB/s 1s  
  ###############>--------- 82.03KiB/136.34KiB 82.15KiB/s 1s  
  ################>-------- 89.84KiB/136.34KiB 82.16KiB/s 1s  
  #################>------- 97.66KiB/136.34KiB 82.16KiB/s 1s  
  ##################>----- 105.47KiB/136.34KiB 82.17KiB/s 1s  
  ###################>---- 113.28KiB/136.34KiB 82.17KiB/s 1s  
  #####################>-- 121.09KiB/136.34KiB 82.17KiB/s 0s  
  ######################>- 128.91KiB/136.34KiB 82.18KiB/s 0s  
  ######################## 136.34KiB/136.34KiB 82.18KiB/s 0s  
[INFO  blflash::flasher] Program done 1.659475363s 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...
�Registering /dev/gpio0
Registering /dev/gpio1
Disable the interrupt
Registering /dev/gpio2
frequency=400000, actual=0
nbits=8
mode=0

NuttShell (NSH) NuttX-12.6.0-RC1
nsh> uname -a
NuttX 12.6.0-RC1 75ed9a4539 Sep 12 2024 00:48:36 risc-v bl602evb
nsh> ls /dev
/dev:
 console
 gpio0
 gpio1
 gpio2
 i2c0
 spi0
 timer0
 zero
nsh> spi_test2
nsh> 
===== 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-09-12 == '' ']'
+ '[' /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...
�Registering /dev/gpio0
Registering /dev/gpio1
Disable the interrupt
Registering /dev/gpio2
frequency=400000, actual=0
nbits=8
mode=0

NuttShell (NSH) NuttX-12.6.0-RC1
nsh> uname -a
NuttX 12.6.0-RC1 75ed9a4539 Sep 12 2024 00:48:36 risc-v bl602evb
nsh> ls /dev
/dev:
 console
 gpio0
 gpio1
 gpio2
 i2c0
 spi0
 timer0
 zero
nsh> spi_test2
nsh> 
===== Error: SX1262 is NOT OK. Check the SPI connection


Script done on 2024-09-12 09:00:12+08:00 [COMMAND_EXIT_CODE="0"]

upstream-2024-09-11

11 Sep 00:49
c68b9c8
Compare
Choose a tag to compare

Error: SX1262 is NOT OK. Check the SPI connection
Error: SX1262 is NOT OK. Check the SPI connection

Script started on 2024-09-11 08:56:26+08:00 [TERM="xterm-256color" TTY="/dev/pts/0" COLUMNS="63" LINES="157"]

+ '[' '' == '' ']'
+ export BUILD_PREFIX=upstream
+ BUILD_PREFIX=upstream
+ '[' '' == '' ']'
++ date +%Y-%m-%d
+ export BUILD_DATE=2024-09-11
+ BUILD_DATE=2024-09-11
+ '[' /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-09-11
+ wget -q https://github.com/lupyuen/incubator-nuttx/releases/download/upstream-2024-09-11/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/4fe1458a433d538c89ff4ebf83c299667d33f27a
NuttX Apps: https://github.com/apache/nuttx-apps/tree/2e01a7c7af38db442c0dbeabd50b5cb7f0809795
----- 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 483.349µ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.15KiB/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.04KiB/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.564870483s 11.15KiB/s
[TRACE blflash::flasher] 5ms send count 500
[TRACE blflash::flasher] handshake sent elapsed 5.215643ms
[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: 139616
[INFO  blflash::flasher] Program flash... 73e35ff79a0e93641f7a46bbf8bcc29bcb1aad615a365e672f4e508051b6617e
  >------------------------- 3.91KiB/136.34KiB 81.97KiB/s 2s  
  ##>---------------------- 11.72KiB/136.34KiB 81.86KiB/s 2s  
  ###>--------------------- 19.53KiB/136.34KiB 81.88KiB/s 2s  
  #####>------------------- 27.34KiB/136.34KiB 81.92KiB/s 2s  
  ######>------------------ 35.16KiB/136.34KiB 81.95KiB/s 1s  
  #######>----------------- 42.97KiB/136.34KiB 81.99KiB/s 1s  
  #########>--------------- 50.78KiB/136.34KiB 82.02KiB/s 1s  
  ##########>-------------- 58.59KiB/136.34KiB 82.04KiB/s 1s  
  ############>------------ 66.41KiB/136.34KiB 82.05KiB/s 1s  
  #############>----------- 74.22KiB/136.34KiB 82.10KiB/s 1s  
  ###############>--------- 82.03KiB/136.34KiB 82.14KiB/s 1s  
  ################>-------- 89.84KiB/136.34KiB 82.17KiB/s 1s  
  #################>------- 97.66KiB/136.34KiB 82.19KiB/s 1s  
  ##################>----- 105.47KiB/136.34KiB 82.20KiB/s 1s  
  ###################>---- 113.28KiB/136.34KiB 82.22KiB/s 1s  
  #####################>-- 121.09KiB/136.34KiB 82.22KiB/s 0s  
  ######################>- 128.91KiB/136.34KiB 82.23KiB/s 0s  
  ######################## 136.34KiB/136.34KiB 82.24KiB/s 0s  
[INFO  blflash::flasher] Program done 1.658425684s 82.23KiB/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...
�Registering /dev/gpio0
Registering /dev/gpio1
Disable the interrupt
Registering /dev/gpio2
frequency=400000, actual=0
nbits=8
mode=0

NuttShell (NSH) NuttX-12.6.0-RC1
nsh> uname -a
NuttX 12.6.0-RC1 4fe1458a43 Sep 11 2024 00:48:55 risc-v bl602evb
nsh> ls /dev
/dev:
 console
 gpio0
 gpio1
 gpio2
 i2c0
 spi0
 timer0
 zero
nsh> spi_test2
nsh> 
===== 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-09-11 == '' ']'
+ '[' /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...
�Registering /dev/gpio0
Registering /dev/gpio1
Disable the interrupt
Registering /dev/gpio2
frequency=400000, actual=0
nbits=8
mode=0

NuttShell (NSH) NuttX-12.6.0-RC1
nsh> uname -a
NuttX 12.6.0-RC1 4fe1458a43 Sep 11 2024 00:48:55 risc-v bl602evb
nsh> ls /dev
/dev:
 console
 gpio0
 gpio1
 gpio2
 i2c0
 spi0
 timer0
 zero
nsh> spi_test2
nsh> 
===== Error: SX1262 is NOT OK. Check the SPI connection


Script done on 2024-09-11 08:57:08+08:00 [COMMAND_EXIT_CODE="0"]