Skip to content

Instantly share code, notes, and snippets.

@lupyuen
Last active November 4, 2023 19:13
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lupyuen/7a0c697b89abccda8e38b33dfe5ebaff to your computer and use it in GitHub Desktop.
Save lupyuen/7a0c697b89abccda8e38b33dfe5ebaff to your computer and use it in GitHub Desktop.
Ox64 BL808 Notes by TL Lim

Ox64 Notes by TL Lim

UPDATE 2 Nov 2023: Check out the article...

The First Batch of Ox64 (Oct 2022) won't appear as a USB Serial Port when connected to our computer because...

"The bin file that currently loaded in Ox64 still initialize and not response to UART or USB, however, it will setup the BL808 internal PMU and this is how product team aware that Ox64 board is working. This is the bl808_demo_event.bin file attached here.

"For UART output log file, you can try to flash whole_flash_data.bin file attached here."

"I also attached the guide on using BL808 programmer utility "BouffaloLabDevCube-v1.8.0" software."

"For the BouffaloLabDevCube-v1.8.0.zip, you can download using this link:"

(See reply by Marek "gamiee" Kraus)

@cgulick
Copy link

cgulick commented Dec 27, 2022

What buad rate is used for the demo app. Also is there a description on what the 2 .bin apps do. So far I like the board. I will make some youtube vids on it.

@cgulick
Copy link

cgulick commented Dec 27, 2022

I tried the CP2102 USB to Serial chip. IT works fine. Also the Prolific USB to serial cables work ok. Also I use 115200 baud rate for download.
2000000 does not work for me.

@cgulick
Copy link

cgulick commented Dec 27, 2022

The picture in your flashing guide is wrong. UART for programming is pins 1 and 2.

@cgulick
Copy link

cgulick commented Dec 27, 2022

Is there a way to reset with out doing a power cycle.

@meldundas
Copy link

I flashed whole_flash_data.bin at 115200 with a cp2102 at 115200. OX64 logs data out the UART (pins 1 and 2) at 2000000

@dakhnod
Copy link

dakhnod commented Jan 20, 2023

Does it show up when reset with GPIO39 at 1? The bl808 should support flashing via USB, but I can't get it to show up in flashing mode...

@dchokola
Copy link

dchokola commented Feb 19, 2023

BouffaloLabDevCube-v1.8.0.zip link is dead and Bouffalo Labs' website has been down for several days at least. Is there an alternative way to flash the device or an alternative download link?
EDIT: Bouffalo Labs' website seems to be up. I had an ISP issue. The Box link above is still dead, though.

@elektro-NIK
Copy link

@dchokola yes, you may flash MCU by bflb_mcu_tool like:
bflb-mcu-tool --chipname=bl808 --port=/dev/ttyUSB0 --baudrate=2000000 --firmware="build/build_out/helloworld_bl808_m0.bin"

@dakhnod
Copy link

dakhnod commented Feb 27, 2023

@elektro-NIK how to I get my chil to show up as a serial device?

@elektro-NIK
Copy link

@dakhnod do you mean board must emulate serial device trough USB-C port?
I don't try it yet, but you may use USB ACM example in SDK to do it: https://github.com/bouffalolab/bl_mcu_sdk/tree/master/examples/peripherals/usbdev/usbd_cdc_acm

@dakhnod
Copy link

dakhnod commented Mar 2, 2023

@elektro-NIK AFAIK if you start che MCU in bootloader mode it should pop up as USB, if you believe the datasheet. That is the mode I am trying to reach

@elektro-NIK
Copy link

@dakhnod I think it may be disabled by efuse, but it's only guess.

@SLASH-JEET
Copy link

SLASH-JEET commented Mar 10, 2023

Hey, I am getting the error "ErrorCode: 003D, ErrorMsg: BFLB FLASH MATCH TYPE FAIL" it'd be great if anyone could help me figure out what's wrong. I am able to get the handshake and chip ID but unable to get the JEDEC ID it always shows up as 00000000 and that is leading to this problem.
Also, I am using Dev Cube version 1.8.3

@vishnumaiea
Copy link

@dchokola The software can be downloaded from here - https://dev.bouffalolab.com/download

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment