Having an issue flashing my 0x64. Invalid literal for int() with base 16
#1
First, I apologize for posting in the General forum but couldn't find the Ox64 section.

Any ideas on how to remedy this?


Win 10 pro
Dev Cube 1.8.3
Using firmware dated 2 weeks ago
Silicon Labs CP2104 USB to UART Bridge

Following the instructions on the Github page found HERE

Dev Cube MCU page flashing m0 and d0 was successful but then moved to the IOT tab of Dev Cube in order to flash the BL808-firmware.bin to address 0x800000 and received the following error:

TL;DR version



Code:
invalid literal for int() with base 16: ''
Traceback (most recent call last):
File "libs\bflb_eflash_loader.py", line 3568, in efuse_flash_loader_do
ValueError: invalid literal for int() with base 16: ''

Full Log


Code:
[13:23:18.624] - ========= Interface is Uart =========
[13:23:18.624] - eflash loader bin is eflash_loader_auto.bin
[13:23:18.639] - Version: eflash_loader_v2.4.5
[13:23:18.639] - Program Start
[13:23:18.655] - ========= eflash loader cmd arguments =========
[13:23:18.655] - C:\Users\****\Desktop\New folder\chips\bl808\eflash_loader/eflash_loader_cfg.ini
[13:23:18.655] - Config file: C:\Users\****\Desktop\New folder\chips\bl808\eflash_loader/eflash_loader_cfg.ini
[13:23:18.655] - serial port is COM4
[13:23:18.655] - cpu_reset=False
[13:23:18.655] - chiptype: bl808
[13:23:18.655] - ========= Interface is uart =========
[13:23:18.655] - com speed: 2000000
[13:23:18.655] - Bootrom load
[13:23:18.655] - ========= get_boot_info =========
[13:23:18.655] - ========= image get bootinfo =========
[13:23:20.770] - ack is
[13:23:20.770] - Not ack OK
[13:23:20.770] - result:
[13:23:21.051] - tx rx and power off, press the machine!
[13:23:21.051] - cutoff time is 0.05
[13:23:21.113] - power on tx and rx
[13:23:22.110] - reset cnt: 0, reset hold: 0.05, shake hand delay: 0.1
[13:23:22.110] - clean buf
[13:23:22.110] - send sync
[13:23:22.643] - ack is 4f4b
[13:23:22.690] - shake hand success
[13:23:23.191] - data read is b'01000808000000000b14c102991335cf0eb458002ff4fb18'
[13:23:23.191] - ========= ChipID: b40ecf351399 =========
[13:23:23.191] - Get bootinfo time cost(ms): 4535.835205078125
[13:23:23.191] - clock para file: C:\Users\****\Desktop\New folder\chips/bl808/efuse_bootheader/clock_para.bin
[13:23:23.191] - change bdrate: 2000000
[13:23:23.191] - Clock PLL set
[13:23:23.191] - clock para:
[13:23:23.191] - 5043464707040000030103000102000201010001010101010a894b86
[13:23:23.191] - Set clock time cost(ms): 0.0
[13:23:23.347] - Read mac addr
[13:23:23.347] - flash set para
[13:23:23.347] - get flash pin cfg from bootinfo: 0x04
[13:23:23.347] - set flash cfg: 14104
[13:23:23.347] - Set flash config
[13:23:23.347] - Set para time cost(ms): 0.0
[13:23:23.347] - ========= flash read jedec ID =========
[13:23:23.347] - Read flash jedec ID
[13:23:23.347] - flash jedec id: ef601800
[13:23:23.347] - Finished
[13:23:23.363] - Program operation
[13:23:23.363] - Dealing Index 0
[13:23:23.363] - invalid literal for int() with base 16: ''
Traceback (most recent call last):
File "libs\bflb_eflash_loader.py", line 3568, in efuse_flash_loader_do
ValueError: invalid literal for int() with base 16: ''
[13:23:23.378] - Burn Retry
[13:23:23.378] - 0
[13:23:23.378] - Burn return with retry fail
  Reply
#2
While I previously tried different baud rates from 2,000,000 all the way down to 300 I kept reading others who had the same error and lowering the baud rate solved it for them. This morning I thought I would give it another go. I started again at 2,000,000 then went down to 921600, 576000, 460800, etc trying each all the way down. Today 57600 was the magic number and it flashed successfully.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Firmware Update for PinePower Desktop Power Cycling Issue TimothyRodriguez 1 869 05-03-2024, 12:53 AM
Last Post: Pavlos1
  Issue with incoming VoIP calls. HaroldKuhlman 0 644 01-07-2024, 11:05 AM
Last Post: HaroldKuhlman
  0x64 subforum? sfultong 0 1,029 01-29-2023, 03:42 PM
Last Post: sfultong
  VoIP incoming calls issue saddamus 0 820 08-24-2022, 03:59 PM
Last Post: saddamus
  Forum issue: not receiving emails marcih 9 9,308 02-11-2021, 06:36 AM
Last Post: marcih
  Article: Flashing Firmware to PineCone BL602 lupyuen 0 2,217 12-31-2020, 10:07 AM
Last Post: lupyuen

Forum Jump:


Users browsing this thread: 1 Guest(s)