Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BLE Audio #183

Open
mrhempman69 opened this issue Nov 7, 2023 · 27 comments
Open

BLE Audio #183

mrhempman69 opened this issue Nov 7, 2023 · 27 comments

Comments

@mrhempman69
Copy link

I was directed here from the examples repo: sipeed/M0S_BL616_example#13

Can you please provide an example of how to set up the device to be used as a BLE Audio acceptor, from a phone connection? And the example can show both how to use I2S on the output, and how to use the DAC on the output too?

Where can i get more information on how to use BLE audio with this chip? I know it will involve using one of the LC3 codec libraries on Github

@sakumisu
Copy link

sakumisu commented Nov 9, 2023

examples/audio/player_bt bt audio here.

@mrhempman69
Copy link
Author

Hello, I have successfully flashed M0S dock with https://github.com/bouffalolab/bouffalo_sdk/tree/master/examples/audio/player_bt

The problem is, that I cannot execute the A2DP start command, because there is no UART terminal available when plugged in over USB, nor when using the boards GND TX RX pins.

@gamelaster
Copy link
Contributor

@mrhempman69 there are headers with GND RXD TXD on PCB of M0s Dock.

@mrhempman69
Copy link
Author

mrhempman69 commented Nov 10, 2023

But which IOs for this example?

I already tried the holes labeled "T" and "R"

It says "uart0" in the main.c file, but "uart0" is also listed as many different pins in bl616 document

@gamelaster
Copy link
Contributor

@mrhempman69 that pins labeled T, R and G are those you need.

@mrhempman69
Copy link
Author

mrhempman69 commented Nov 10, 2023

Thanks. I do not know why it isn't working. The baud rate is supposed to be 2000000 right? And it's not supposed to show a UART interface when connected by USB-C, I tried with both silicon labs CP210x UART bridge (usb adapter), and LTD FT232 Serial Uart (usb adapter), on two separate M0S docks!

I have wired it correctly (T<-->R and R<-->T), tried powering from both USB-C and header-power, The "G" pin is the unlabeled pin near the USB C port, i'm assuming.

Here is the output from the flash log? Perhaps it will help:

[12:08:24.206] - Serial port is COM8
[12:08:24.206] - ==================================================
[12:08:24.226] - FW get address from partiton file C:\Users\mrhem\bouffalo_sdk_setup\bouffalo_sdk\examples\audio\player_bt\./build/build_out\partition.bin
[12:08:24.227] - Address=0x10000
[12:08:24.229] - Program Start
[12:08:24.229] - ========= eflash loader cmd arguments =========
[12:08:24.240] - serial port is COM8
[12:08:24.240] - chiptype: bl616
[12:08:24.241] - cpu_reset=False
[12:08:24.518] - com speed: 2000000
[12:08:24.519] - ========= Interface is uart =========
[12:08:24.520] - Bootrom load
[12:08:24.523] - ========= get_boot_info =========
[12:08:24.524] - ========= image get bootinfo =========
[12:08:24.809] - tx rx and power off, press the machine!
[12:08:24.809] - cutoff time is 0.05
[12:08:24.872] - power on tx and rx
[12:08:25.862] - reset cnt: 0, reset hold: 0.05, shake hand delay: 0.1
[12:08:25.862] - clean buf
[12:08:25.870] - send sync
[12:08:26.095] - ack is b'4f4b'
[12:08:26.098] - shake hand success
[12:08:26.612] - data read is b'010016060000010027928001536336cf0eb417000f758010'
[12:08:26.613] - ========= ChipID: b40ecf366353 =========
[12:08:26.616] - Get bootinfo time cost(ms): 2091.80908203125
[12:08:26.618] - change bdrate: 2000000
[12:08:26.620] - Clock PLL set
[12:08:26.622] - Set clock time cost(ms): 1.00146484375
[12:08:26.751] - Read mac addr
[12:08:26.752] - MACADDR: b40ecf366353
[12:08:26.752] - flash set para
[12:08:26.754] - get flash pin cfg from bootinfo: 0x02
[12:08:26.757] - set flash cfg: 1014102
[12:08:26.759] - Set flash config
[12:08:26.761] - Set para time cost(ms): 1.12890625
[12:08:26.762] - ========= flash read jedec ID =========
[12:08:26.764] - Read flash jedec ID
[12:08:26.765] - readdata:
[12:08:26.766] - b'c8601600'
[12:08:26.767] - Finished
[12:08:26.772] - flash config Not found,use default
[12:08:26.773] - jedec_id:c86016
[12:08:26.774] - capacity_id:22
[12:08:26.776] - capacity:4.0M
[12:08:26.777] - get flash size: 0x00400000
[12:08:26.778] - Program operation
[12:08:26.781] - Dealing Index 0
[12:08:26.781] - ========= programming C:\Users\mrhem\bouffalo_sdk_setup\bouffalo_sdk\examples\audio\player_bt\.\build\build_out\boot2_bl616_isp_release_v8.1.1.bin to 0x000000
[12:08:26.785] - flash para file: C:\Users\mrhem\bouffalo_sdk_setup\bouffalo_sdk\tools\bflb_tools\bouffalo_flash_cube\chips/bl616/efuse_bootheader/flash_para.bin
[12:08:26.788] - Set flash config
[12:08:26.790] - Set para time cost(ms): 2.6806640625
[12:08:26.790] - ========= flash load =========
[12:08:26.793] - ========= flash erase =========
[12:08:26.794] - Erase flash  from 0x0 to 0xb76f
[12:08:27.028] - Erase time cost(ms): 233.175048828125
[12:08:27.074] - decompress flash load 23368
[12:08:27.101] - Load 2048/23368 {"progress":8}
[12:08:27.116] - Load 4096/23368 {"progress":17}
[12:08:27.133] - Load 6144/23368 {"progress":26}
[12:08:27.142] - Load 8192/23368 {"progress":35}
[12:08:27.158] - Load 10240/23368 {"progress":43}
[12:08:27.174] - Load 12288/23368 {"progress":52}
[12:08:27.191] - Load 14336/23368 {"progress":61}
[12:08:27.207] - Load 16384/23368 {"progress":70}
[12:08:27.223] - Load 18432/23368 {"progress":78}
[12:08:27.240] - Load 20480/23368 {"progress":87}
[12:08:27.250] - Load 22528/23368 {"progress":96}
[12:08:27.266] - Load 23368/23368 {"progress":100}
[12:08:27.267] - Load 23368/23368 {"progress":100}
[12:08:27.269] - Write check
[12:08:27.273] - Flash load time cost(ms): 242.020263671875
[12:08:27.273] - Finished
[12:08:27.276] - Sha caled by host: 1d1f24bc7adc9675a60b3ae92ef4280347781db0788c9dcf52498c476fcda615
[12:08:27.277] - xip mode Verify
[12:08:27.319] - Read Sha256/46960
[12:08:27.319] - Flash xip readsha time cost(ms): 39.420166015625
[12:08:27.322] - Finished
[12:08:27.325] - Sha caled by dev: 1d1f24bc7adc9675a60b3ae92ef4280347781db0788c9dcf52498c476fcda615
[12:08:27.325] - Verify success
[12:08:27.329] - Dealing Index 1
[12:08:27.330] - ========= programming C:\Users\mrhem\bouffalo_sdk_setup\bouffalo_sdk\examples\audio\player_bt\.\build\build_out\partition.bin to 0xE000
[12:08:27.332] - flash para file: C:\Users\mrhem\bouffalo_sdk_setup\bouffalo_sdk\tools\bflb_tools\bouffalo_flash_cube\chips/bl616/efuse_bootheader/flash_para.bin
[12:08:27.333] - Set flash config
[12:08:27.337] - Set para time cost(ms): 2.58935546875
[12:08:27.337] - ========= flash load =========
[12:08:27.339] - ========= flash erase =========
[12:08:27.340] - Erase flash  from 0xe000 to 0xe133
[12:08:27.379] - Erase time cost(ms): 37.906982421875
[12:08:27.383] - Load 308/308 {"progress":100}
[12:08:27.383] - Load 308/308 {"progress":100}
[12:08:27.384] - Write check
[12:08:27.388] - Flash load time cost(ms): 6.878173828125
[12:08:27.389] - Finished
[12:08:27.390] - Sha caled by host: 99c055a2a7279c04d989a2a270106d2e2584a2d5773b57e40b3af0d87f623d12
[12:08:27.391] - xip mode Verify
[12:08:27.395] - Read Sha256/308
[12:08:27.396] - Flash xip readsha time cost(ms): 1.993896484375
[12:08:27.398] - Finished
[12:08:27.399] - Sha caled by dev: 99c055a2a7279c04d989a2a270106d2e2584a2d5773b57e40b3af0d87f623d12
[12:08:27.400] - Verify success
[12:08:27.404] - Dealing Index 2
[12:08:27.405] - ========= programming C:\Users\mrhem\bouffalo_sdk_setup\bouffalo_sdk\examples\audio\player_bt\.\build\build_out\player_bt_bl616.bin to 0x10000
[12:08:27.410] - flash para file: C:\Users\mrhem\bouffalo_sdk_setup\bouffalo_sdk\tools\bflb_tools\bouffalo_flash_cube\chips/bl616/efuse_bootheader/flash_para.bin
[12:08:27.410] - Set flash config
[12:08:27.413] - Set para time cost(ms): 1.993896484375
[12:08:27.414] - ========= flash load =========
[12:08:27.418] - ========= flash erase =========
[12:08:27.418] - Erase flash  from 0x10000 to 0x17d50f
[12:08:30.478] - Erase time cost(ms): 3059.501220703125
[12:08:31.255] - decompress flash load 888608
[12:08:31.281] - Load 2048/888608 {"progress":0}
[12:08:31.297] - Load 4096/888608 {"progress":0}
[12:08:31.307] - Load 6144/888608 {"progress":0}
[12:08:31.325] - Load 8192/888608 {"progress":0}
[12:08:31.342] - Load 10240/888608 {"progress":1}
[12:08:31.358] - Load 12288/888608 {"progress":1}
[12:08:31.376] - Load 14336/888608 {"progress":1}
[12:08:31.393] - Load 16384/888608 {"progress":1}
[12:08:31.403] - Load 18432/888608 {"progress":2}
[12:08:31.419] - Load 20480/888608 {"progress":2}
[12:08:31.436] - Load 22528/888608 {"progress":2}
[12:08:31.446] - Load 24576/888608 {"progress":2}
[12:08:31.463] - Load 26624/888608 {"progress":2}
[12:08:31.479] - Load 28672/888608 {"progress":3}
[12:08:31.496] - Load 30720/888608 {"progress":3}
[12:08:31.506] - Load 32768/888608 {"progress":3}
[12:08:31.523] - Load 34816/888608 {"progress":3}
[12:08:31.540] - Load 36864/888608 {"progress":4}
[12:08:31.557] - Load 38912/888608 {"progress":4}
[12:08:31.567] - Load 40960/888608 {"progress":4}
[12:08:31.583] - Load 43008/888608 {"progress":4}
[12:08:31.601] - Load 45056/888608 {"progress":5}
[12:08:31.611] - Load 47104/888608 {"progress":5}
[12:08:31.627] - Load 49152/888608 {"progress":5}
[12:08:31.643] - Load 51200/888608 {"progress":5}
[12:08:31.661] - Load 53248/888608 {"progress":5}
[12:08:31.671] - Load 55296/888608 {"progress":6}
[12:08:31.688] - Load 57344/888608 {"progress":6}
[12:08:31.705] - Load 59392/888608 {"progress":6}
[12:08:31.722] - Load 61440/888608 {"progress":6}
[12:08:31.739] - Load 63488/888608 {"progress":7}
[12:08:31.749] - Load 65536/888608 {"progress":7}
[12:08:31.766] - Load 67584/888608 {"progress":7}
[12:08:31.782] - Load 69632/888608 {"progress":7}
[12:08:31.799] - Load 71680/888608 {"progress":8}
[12:08:31.809] - Load 73728/888608 {"progress":8}
[12:08:31.827] - Load 75776/888608 {"progress":8}
[12:08:31.844] - Load 77824/888608 {"progress":8}
[12:08:31.861] - Load 79872/888608 {"progress":8}
[12:08:31.878] - Load 81920/888608 {"progress":9}
[12:08:31.895] - Load 83968/888608 {"progress":9}
[12:08:31.905] - Load 86016/888608 {"progress":9}
[12:08:31.922] - Load 88064/888608 {"progress":9}
[12:08:31.939] - Load 90112/888608 {"progress":10}
[12:08:31.948] - Load 92160/888608 {"progress":10}
[12:08:31.965] - Load 94208/888608 {"progress":10}
[12:08:31.982] - Load 96256/888608 {"progress":10}
[12:08:31.999] - Load 98304/888608 {"progress":11}
[12:08:32.009] - Load 100352/888608 {"progress":11}
[12:08:32.026] - Load 102400/888608 {"progress":11}
[12:08:32.043] - Load 104448/888608 {"progress":11}
[12:08:32.053] - Load 106496/888608 {"progress":11}
[12:08:32.071] - Load 108544/888608 {"progress":12}
[12:08:32.087] - Load 110592/888608 {"progress":12}
[12:08:32.104] - Load 112640/888608 {"progress":12}
[12:08:32.114] - Load 114688/888608 {"progress":12}
[12:08:32.131] - Load 116736/888608 {"progress":13}
[12:08:32.147] - Load 118784/888608 {"progress":13}
[12:08:32.158] - Load 120832/888608 {"progress":13}
[12:08:32.174] - Load 122880/888608 {"progress":13}
[12:08:32.191] - Load 124928/888608 {"progress":14}
[12:08:32.201] - Load 126976/888608 {"progress":14}
[12:08:32.218] - Load 129024/888608 {"progress":14}
[12:08:32.235] - Load 131072/888608 {"progress":14}
[12:08:32.251] - Load 133120/888608 {"progress":14}
[12:08:32.262] - Load 135168/888608 {"progress":15}
[12:08:32.279] - Load 137216/888608 {"progress":15}
[12:08:32.296] - Load 139264/888608 {"progress":15}
[12:08:32.313] - Load 141312/888608 {"progress":15}
[12:08:32.323] - Load 143360/888608 {"progress":16}
[12:08:32.340] - Load 145408/888608 {"progress":16}
[12:08:32.356] - Load 147456/888608 {"progress":16}
[12:08:32.367] - Load 149504/888608 {"progress":16}
[12:08:32.383] - Load 151552/888608 {"progress":17}
[12:08:32.400] - Load 153600/888608 {"progress":17}
[12:08:32.416] - Load 155648/888608 {"progress":17}
[12:08:32.427] - Load 157696/888608 {"progress":17}
[12:08:32.443] - Load 159744/888608 {"progress":17}
[12:08:32.460] - Load 161792/888608 {"progress":18}
[12:08:32.471] - Load 163840/888608 {"progress":18}
[12:08:32.489] - Load 165888/888608 {"progress":18}
[12:08:32.506] - Load 167936/888608 {"progress":18}
[12:08:32.522] - Load 169984/888608 {"progress":19}
[12:08:32.533] - Load 172032/888608 {"progress":19}
[12:08:32.551] - Load 174080/888608 {"progress":19}
[12:08:32.568] - Load 176128/888608 {"progress":19}
[12:08:32.585] - Load 178176/888608 {"progress":20}
[12:08:32.595] - Load 180224/888608 {"progress":20}
[12:08:32.612] - Load 182272/888608 {"progress":20}
[12:08:32.629] - Load 184320/888608 {"progress":20}
[12:08:32.646] - Load 186368/888608 {"progress":20}
[12:08:32.656] - Load 188416/888608 {"progress":21}
[12:08:32.673] - Load 190464/888608 {"progress":21}
[12:08:32.689] - Load 192512/888608 {"progress":21}
[12:08:32.706] - Load 194560/888608 {"progress":21}
[12:08:32.716] - Load 196608/888608 {"progress":22}
[12:08:32.733] - Load 198656/888608 {"progress":22}
[12:08:32.750] - Load 200704/888608 {"progress":22}
[12:08:32.767] - Load 202752/888608 {"progress":22}
[12:08:32.777] - Load 204800/888608 {"progress":23}
[12:08:32.794] - Load 206848/888608 {"progress":23}
[12:08:32.811] - Load 208896/888608 {"progress":23}
[12:08:32.827] - Load 210944/888608 {"progress":23}
[12:08:32.838] - Load 212992/888608 {"progress":23}
[12:08:32.855] - Load 215040/888608 {"progress":24}
[12:08:32.872] - Load 217088/888608 {"progress":24}
[12:08:32.882] - Load 219136/888608 {"progress":24}
[12:08:32.899] - Load 221184/888608 {"progress":24}
[12:08:32.916] - Load 223232/888608 {"progress":25}
[12:08:32.933] - Load 225280/888608 {"progress":25}
[12:08:32.943] - Load 227328/888608 {"progress":25}
[12:08:32.960] - Load 229376/888608 {"progress":25}
[12:08:32.977] - Load 231424/888608 {"progress":26}
[12:08:32.994] - Load 233472/888608 {"progress":26}
[12:08:33.011] - Load 235520/888608 {"progress":26}
[12:08:33.028] - Load 237568/888608 {"progress":26}
[12:08:33.045] - Load 239616/888608 {"progress":26}
[12:08:33.054] - Load 241664/888608 {"progress":27}
[12:08:33.071] - Load 243712/888608 {"progress":27}
[12:08:33.088] - Load 245760/888608 {"progress":27}
[12:08:33.105] - Load 247808/888608 {"progress":27}
[12:08:33.115] - Load 249856/888608 {"progress":28}
[12:08:33.131] - Load 251904/888608 {"progress":28}
[12:08:33.148] - Load 253952/888608 {"progress":28}
[12:08:33.166] - Load 256000/888608 {"progress":28}
[12:08:33.183] - Load 258048/888608 {"progress":29}
[12:08:33.200] - Load 260096/888608 {"progress":29}
[12:08:33.210] - Load 262144/888608 {"progress":29}
[12:08:33.227] - Load 264192/888608 {"progress":29}
[12:08:33.244] - Load 266240/888608 {"progress":29}
[12:08:33.261] - Load 268288/888608 {"progress":30}
[12:08:33.277] - Load 270336/888608 {"progress":30}
[12:08:33.288] - Load 272384/888608 {"progress":30}
[12:08:33.305] - Load 274432/888608 {"progress":30}
[12:08:33.321] - Load 276480/888608 {"progress":31}
[12:08:33.339] - Load 278528/888608 {"progress":31}
[12:08:33.355] - Load 280576/888608 {"progress":31}
[12:08:33.365] - Load 282624/888608 {"progress":31}
[12:08:33.382] - Load 284672/888608 {"progress":32}
[12:08:33.399] - Load 286720/888608 {"progress":32}
[12:08:33.416] - Load 288768/888608 {"progress":32}
[12:08:33.433] - Load 290816/888608 {"progress":32}
[12:08:33.450] - Load 292864/888608 {"progress":32}
[12:08:33.467] - Load 294912/888608 {"progress":33}
[12:08:33.485] - Load 296960/888608 {"progress":33}
[12:08:33.496] - Load 299008/888608 {"progress":33}
[12:08:33.513] - Load 301056/888608 {"progress":33}
[12:08:33.529] - Load 303104/888608 {"progress":34}
[12:08:33.547] - Load 305152/888608 {"progress":34}
[12:08:33.563] - Load 307200/888608 {"progress":34}
[12:08:33.573] - Load 309248/888608 {"progress":34}
[12:08:33.590] - Load 311296/888608 {"progress":35}
[12:08:33.608] - Load 313344/888608 {"progress":35}
[12:08:33.624] - Load 315392/888608 {"progress":35}
[12:08:33.641] - Load 317440/888608 {"progress":35}
[12:08:33.652] - Load 319488/888608 {"progress":35}
[12:08:33.669] - Load 321536/888608 {"progress":36}
[12:08:33.685] - Load 323584/888608 {"progress":36}
[12:08:33.703] - Load 325632/888608 {"progress":36}
[12:08:33.713] - Load 327680/888608 {"progress":36}
[12:08:33.730] - Load 329728/888608 {"progress":37}
[12:08:33.747] - Load 331776/888608 {"progress":37}
[12:08:33.764] - Load 333824/888608 {"progress":37}
[12:08:33.780] - Load 335872/888608 {"progress":37}
[12:08:33.790] - Load 337920/888608 {"progress":38}
[12:08:33.807] - Load 339968/888608 {"progress":38}
[12:08:33.825] - Load 342016/888608 {"progress":38}
[12:08:33.842] - Load 344064/888608 {"progress":38}
[12:08:33.859] - Load 346112/888608 {"progress":38}
[12:08:33.876] - Load 348160/888608 {"progress":39}
[12:08:33.894] - Load 350208/888608 {"progress":39}
[12:08:33.911] - Load 352256/888608 {"progress":39}
[12:08:33.929] - Load 354304/888608 {"progress":39}
[12:08:33.946] - Load 356352/888608 {"progress":40}
[12:08:33.964] - Load 358400/888608 {"progress":40}
[12:08:33.981] - Load 360448/888608 {"progress":40}
[12:08:33.998] - Load 362496/888608 {"progress":40}
[12:08:34.016] - Load 364544/888608 {"progress":41}
[12:08:34.033] - Load 366592/888608 {"progress":41}
[12:08:34.050] - Load 368640/888608 {"progress":41}
[12:08:34.067] - Load 370688/888608 {"progress":41}
[12:08:34.077] - Load 372736/888608 {"progress":41}
[12:08:34.093] - Load 374784/888608 {"progress":42}
[12:08:34.111] - Load 376832/888608 {"progress":42}
[12:08:34.121] - Load 378880/888608 {"progress":42}
[12:08:34.138] - Load 380928/888608 {"progress":42}
[12:08:34.155] - Load 382976/888608 {"progress":43}
[12:08:34.171] - Load 385024/888608 {"progress":43}
[12:08:34.188] - Load 387072/888608 {"progress":43}
[12:08:34.199] - Load 389120/888608 {"progress":43}
[12:08:34.215] - Load 391168/888608 {"progress":44}
[12:08:34.232] - Load 393216/888608 {"progress":44}
[12:08:34.249] - Load 395264/888608 {"progress":44}
[12:08:34.267] - Load 397312/888608 {"progress":44}
[12:08:34.284] - Load 399360/888608 {"progress":44}
[12:08:34.301] - Load 401408/888608 {"progress":45}
[12:08:34.312] - Load 403456/888608 {"progress":45}
[12:08:34.330] - Load 405504/888608 {"progress":45}
[12:08:34.347] - Load 407552/888608 {"progress":45}
[12:08:34.365] - Load 409600/888608 {"progress":46}
[12:08:34.382] - Load 411648/888608 {"progress":46}
[12:08:34.399] - Load 413696/888608 {"progress":46}
[12:08:34.416] - Load 415744/888608 {"progress":46}
[12:08:34.432] - Load 417792/888608 {"progress":47}
[12:08:34.443] - Load 419840/888608 {"progress":47}
[12:08:34.460] - Load 421888/888608 {"progress":47}
[12:08:34.476] - Load 423936/888608 {"progress":47}
[12:08:34.494] - Load 425984/888608 {"progress":47}
[12:08:34.511] - Load 428032/888608 {"progress":48}
[12:08:34.521] - Load 430080/888608 {"progress":48}
[12:08:34.537] - Load 432128/888608 {"progress":48}
[12:08:34.554] - Load 434176/888608 {"progress":48}
[12:08:34.571] - Load 436224/888608 {"progress":49}
[12:08:34.581] - Load 438272/888608 {"progress":49}
[12:08:34.599] - Load 440320/888608 {"progress":49}
[12:08:34.616] - Load 442368/888608 {"progress":49}
[12:08:34.632] - Load 444416/888608 {"progress":50}
[12:08:34.650] - Load 446464/888608 {"progress":50}
[12:08:34.667] - Load 448512/888608 {"progress":50}
[12:08:34.676] - Load 450560/888608 {"progress":50}
[12:08:34.693] - Load 452608/888608 {"progress":50}
[12:08:34.710] - Load 454656/888608 {"progress":51}
[12:08:34.720] - Load 456704/888608 {"progress":51}
[12:08:34.737] - Load 458752/888608 {"progress":51}
[12:08:34.753] - Load 460800/888608 {"progress":51}
[12:08:34.771] - Load 462848/888608 {"progress":52}
[12:08:34.781] - Load 464896/888608 {"progress":52}
[12:08:34.799] - Load 466944/888608 {"progress":52}
[12:08:34.816] - Load 468992/888608 {"progress":52}
[12:08:34.832] - Load 471040/888608 {"progress":53}
[12:08:34.850] - Load 473088/888608 {"progress":53}
[12:08:34.867] - Load 475136/888608 {"progress":53}
[12:08:34.877] - Load 477184/888608 {"progress":53}
[12:08:34.895] - Load 479232/888608 {"progress":53}
[12:08:34.912] - Load 481280/888608 {"progress":54}
[12:08:34.929] - Load 483328/888608 {"progress":54}
[12:08:34.946] - Load 485376/888608 {"progress":54}
[12:08:34.964] - Load 487424/888608 {"progress":54}
[12:08:34.974] - Load 489472/888608 {"progress":55}
[12:08:34.991] - Load 491520/888608 {"progress":55}
[12:08:35.008] - Load 493568/888608 {"progress":55}
[12:08:35.025] - Load 495616/888608 {"progress":55}
[12:08:35.042] - Load 497664/888608 {"progress":56}
[12:08:35.059] - Load 499712/888608 {"progress":56}
[12:08:35.077] - Load 501760/888608 {"progress":56}
[12:08:35.086] - Load 503808/888608 {"progress":56}
[12:08:35.104] - Load 505856/888608 {"progress":56}
[12:08:35.121] - Load 507904/888608 {"progress":57}
[12:08:35.139] - Load 509952/888608 {"progress":57}
[12:08:35.156] - Load 512000/888608 {"progress":57}
[12:08:35.174] - Load 514048/888608 {"progress":57}
[12:08:35.191] - Load 516096/888608 {"progress":58}
[12:08:35.208] - Load 518144/888608 {"progress":58}
[12:08:35.225] - Load 520192/888608 {"progress":58}
[12:08:35.242] - Load 522240/888608 {"progress":58}
[12:08:35.252] - Load 524288/888608 {"progress":59}
[12:08:35.270] - Load 526336/888608 {"progress":59}
[12:08:35.287] - Load 528384/888608 {"progress":59}
[12:08:35.303] - Load 530432/888608 {"progress":59}
[12:08:35.320] - Load 532480/888608 {"progress":59}
[12:08:35.329] - Load 534528/888608 {"progress":60}
[12:08:35.348] - Load 536576/888608 {"progress":60}
[12:08:35.364] - Load 538624/888608 {"progress":60}
[12:08:35.381] - Load 540672/888608 {"progress":60}
[12:08:35.398] - Load 542720/888608 {"progress":61}
[12:08:35.416] - Load 544768/888608 {"progress":61}
[12:08:35.433] - Load 546816/888608 {"progress":61}
[12:08:35.450] - Load 548864/888608 {"progress":61}
[12:08:35.467] - Load 550912/888608 {"progress":61}
[12:08:35.478] - Load 552960/888608 {"progress":62}
[12:08:35.495] - Load 555008/888608 {"progress":62}
[12:08:35.511] - Load 557056/888608 {"progress":62}
[12:08:35.528] - Load 559104/888608 {"progress":62}
[12:08:35.538] - Load 561152/888608 {"progress":63}
[12:08:35.555] - Load 563200/888608 {"progress":63}
[12:08:35.572] - Load 565248/888608 {"progress":63}
[12:08:35.589] - Load 567296/888608 {"progress":63}
[12:08:35.606] - Load 569344/888608 {"progress":64}
[12:08:35.616] - Load 571392/888608 {"progress":64}
[12:08:35.633] - Load 573440/888608 {"progress":64}
[12:08:35.650] - Load 575488/888608 {"progress":64}
[12:08:35.667] - Load 577536/888608 {"progress":64}
[12:08:35.677] - Load 579584/888608 {"progress":65}
[12:08:35.694] - Load 581632/888608 {"progress":65}
[12:08:35.711] - Load 583680/888608 {"progress":65}
[12:08:35.728] - Load 585728/888608 {"progress":65}
[12:08:35.745] - Load 587776/888608 {"progress":66}
[12:08:35.755] - Load 589824/888608 {"progress":66}
[12:08:35.772] - Load 591872/888608 {"progress":66}
[12:08:35.789] - Load 593920/888608 {"progress":66}
[12:08:35.806] - Load 595968/888608 {"progress":67}
[12:08:35.823] - Load 598016/888608 {"progress":67}
[12:08:35.841] - Load 600064/888608 {"progress":67}
[12:08:35.851] - Load 602112/888608 {"progress":67}
[12:08:35.867] - Load 604160/888608 {"progress":67}
[12:08:35.884] - Load 606208/888608 {"progress":68}
[12:08:35.902] - Load 608256/888608 {"progress":68}
[12:08:35.919] - Load 610304/888608 {"progress":68}
[12:08:35.929] - Load 612352/888608 {"progress":68}
[12:08:35.946] - Load 614400/888608 {"progress":69}
[12:08:35.962] - Load 616448/888608 {"progress":69}
[12:08:35.980] - Load 618496/888608 {"progress":69}
[12:08:35.997] - Load 620544/888608 {"progress":69}
[12:08:36.007] - Load 622592/888608 {"progress":70}
[12:08:36.024] - Load 624640/888608 {"progress":70}
[12:08:36.041] - Load 626688/888608 {"progress":70}
[12:08:36.058] - Load 628736/888608 {"progress":70}
[12:08:36.075] - Load 630784/888608 {"progress":70}
[12:08:36.084] - Load 632832/888608 {"progress":71}
[12:08:36.102] - Load 634880/888608 {"progress":71}
[12:08:36.120] - Load 636928/888608 {"progress":71}
[12:08:36.136] - Load 638976/888608 {"progress":71}
[12:08:36.146] - Load 641024/888608 {"progress":72}
[12:08:36.164] - Load 643072/888608 {"progress":72}
[12:08:36.181] - Load 645120/888608 {"progress":72}
[12:08:36.198] - Load 647168/888608 {"progress":72}
[12:08:36.215] - Load 649216/888608 {"progress":73}
[12:08:36.232] - Load 651264/888608 {"progress":73}
[12:08:36.242] - Load 653312/888608 {"progress":73}
[12:08:36.259] - Load 655360/888608 {"progress":73}
[12:08:36.276] - Load 657408/888608 {"progress":73}
[12:08:36.293] - Load 659456/888608 {"progress":74}
[12:08:36.310] - Load 661504/888608 {"progress":74}
[12:08:36.327] - Load 663552/888608 {"progress":74}
[12:08:36.338] - Load 665600/888608 {"progress":74}
[12:08:36.354] - Load 667648/888608 {"progress":75}
[12:08:36.372] - Load 669696/888608 {"progress":75}
[12:08:36.389] - Load 671744/888608 {"progress":75}
[12:08:36.398] - Load 673792/888608 {"progress":75}
[12:08:36.416] - Load 675840/888608 {"progress":76}
[12:08:36.433] - Load 677888/888608 {"progress":76}
[12:08:36.450] - Load 679936/888608 {"progress":76}
[12:08:36.468] - Load 681984/888608 {"progress":76}
[12:08:36.485] - Load 684032/888608 {"progress":76}
[12:08:36.503] - Load 686080/888608 {"progress":77}
[12:08:36.520] - Load 688128/888608 {"progress":77}
[12:08:36.537] - Load 690176/888608 {"progress":77}
[12:08:36.553] - Load 692224/888608 {"progress":77}
[12:08:36.570] - Load 694272/888608 {"progress":78}
[12:08:36.588] - Load 696320/888608 {"progress":78}
[12:08:36.598] - Load 698368/888608 {"progress":78}
[12:08:36.615] - Load 700416/888608 {"progress":78}
[12:08:36.632] - Load 702464/888608 {"progress":79}
[12:08:36.649] - Load 704512/888608 {"progress":79}
[12:08:36.666] - Load 706560/888608 {"progress":79}
[12:08:36.683] - Load 708608/888608 {"progress":79}
[12:08:36.693] - Load 710656/888608 {"progress":79}
[12:08:36.710] - Load 712704/888608 {"progress":80}
[12:08:36.726] - Load 714752/888608 {"progress":80}
[12:08:36.744] - Load 716800/888608 {"progress":80}
[12:08:36.754] - Load 718848/888608 {"progress":80}
[12:08:36.771] - Load 720896/888608 {"progress":81}
[12:08:36.789] - Load 722944/888608 {"progress":81}
[12:08:36.806] - Load 724992/888608 {"progress":81}
[12:08:36.823] - Load 727040/888608 {"progress":81}
[12:08:36.852] - Load 729088/888608 {"progress":82}
[12:08:36.868] - Load 731136/888608 {"progress":82}
[12:08:36.876] - Load 733184/888608 {"progress":82}
[12:08:36.893] - Load 735232/888608 {"progress":82}
[12:08:36.909] - Load 737280/888608 {"progress":82}
[12:08:36.918] - Load 739328/888608 {"progress":83}
[12:08:36.934] - Load 741376/888608 {"progress":83}
[12:08:36.944] - Load 743424/888608 {"progress":83}
[12:08:36.961] - Load 745472/888608 {"progress":83}
[12:08:36.978] - Load 747520/888608 {"progress":84}
[12:08:36.989] - Load 749568/888608 {"progress":84}
[12:08:37.007] - Load 751616/888608 {"progress":84}
[12:08:37.018] - Load 753664/888608 {"progress":84}
[12:08:37.035] - Load 755712/888608 {"progress":85}
[12:08:37.052] - Load 757760/888608 {"progress":85}
[12:08:37.071] - Load 759808/888608 {"progress":85}
[12:08:37.080] - Load 761856/888608 {"progress":85}
[12:08:37.097] - Load 763904/888608 {"progress":85}
[12:08:37.107] - Load 765952/888608 {"progress":86}
[12:08:37.125] - Load 768000/888608 {"progress":86}
[12:08:37.144] - Load 770048/888608 {"progress":86}
[12:08:37.161] - Load 772096/888608 {"progress":86}
[12:08:37.172] - Load 774144/888608 {"progress":87}
[12:08:37.192] - Load 776192/888608 {"progress":87}
[12:08:37.210] - Load 778240/888608 {"progress":87}
[12:08:37.236] - Load 780288/888608 {"progress":87}
[12:08:37.247] - Load 782336/888608 {"progress":88}
[12:08:37.264] - Load 784384/888608 {"progress":88}
[12:08:37.282] - Load 786432/888608 {"progress":88}
[12:08:37.291] - Load 788480/888608 {"progress":88}
[12:08:37.308] - Load 790528/888608 {"progress":88}
[12:08:37.325] - Load 792576/888608 {"progress":89}
[12:08:37.342] - Load 794624/888608 {"progress":89}
[12:08:37.360] - Load 796672/888608 {"progress":89}
[12:08:37.378] - Load 798720/888608 {"progress":89}
[12:08:37.395] - Load 800768/888608 {"progress":90}
[12:08:37.411] - Load 802816/888608 {"progress":90}
[12:08:37.422] - Load 804864/888608 {"progress":90}
[12:08:37.440] - Load 806912/888608 {"progress":90}
[12:08:37.456] - Load 808960/888608 {"progress":91}
[12:08:37.474] - Load 811008/888608 {"progress":91}
[12:08:37.483] - Load 813056/888608 {"progress":91}
[12:08:37.499] - Load 815104/888608 {"progress":91}
[12:08:37.509] - Load 817152/888608 {"progress":91}
[12:08:37.526] - Load 819200/888608 {"progress":92}
[12:08:37.543] - Load 821248/888608 {"progress":92}
[12:08:37.561] - Load 823296/888608 {"progress":92}
[12:08:37.571] - Load 825344/888608 {"progress":92}
[12:08:37.588] - Load 827392/888608 {"progress":93}
[12:08:37.605] - Load 829440/888608 {"progress":93}
[12:08:37.625] - Load 831488/888608 {"progress":93}
[12:08:37.644] - Load 833536/888608 {"progress":93}
[12:08:37.671] - Load 835584/888608 {"progress":94}
[12:08:37.725] - Load 837632/888608 {"progress":94}
[12:08:37.743] - Load 839680/888608 {"progress":94}
[12:08:37.762] - Load 841728/888608 {"progress":94}
[12:08:37.780] - Load 843776/888608 {"progress":94}
[12:08:37.799] - Load 845824/888608 {"progress":95}
[12:08:37.815] - Load 847872/888608 {"progress":95}
[12:08:37.834] - Load 849920/888608 {"progress":95}
[12:08:37.859] - Load 851968/888608 {"progress":95}
[12:08:37.876] - Load 854016/888608 {"progress":96}
[12:08:37.902] - Load 856064/888608 {"progress":96}
[12:08:37.920] - Load 858112/888608 {"progress":96}
[12:08:37.937] - Load 860160/888608 {"progress":96}
[12:08:37.962] - Load 862208/888608 {"progress":97}
[12:08:37.981] - Load 864256/888608 {"progress":97}
[12:08:37.998] - Load 866304/888608 {"progress":97}
[12:08:38.017] - Load 868352/888608 {"progress":97}
[12:08:38.044] - Load 870400/888608 {"progress":97}
[12:08:38.063] - Load 872448/888608 {"progress":98}
[12:08:38.089] - Load 874496/888608 {"progress":98}
[12:08:38.115] - Load 876544/888608 {"progress":98}
[12:08:38.135] - Load 878592/888608 {"progress":98}
[12:08:38.159] - Load 880640/888608 {"progress":99}
[12:08:38.177] - Load 882688/888608 {"progress":99}
[12:08:38.186] - Load 884736/888608 {"progress":99}
[12:08:38.202] - Load 886784/888608 {"progress":99}
[12:08:38.230] - Load 888608/888608 {"progress":100}
[12:08:38.230] - Load 888608/888608 {"progress":100}
[12:08:38.233] - Write check
[12:08:38.238] - Flash load time cost(ms): 7756.065185546875
[12:08:38.238] - Finished
[12:08:38.268] - Sha caled by host: 2084c0b16898a7de5804c60d3d0c5ced2b77e92b7dcd44c9ceace7fa73c57f88
[12:08:38.268] - xip mode Verify
[12:08:39.509] - Read Sha256/1496336
[12:08:39.509] - Flash xip readsha time cost(ms): 1237.662353515625
[12:08:39.514] - Finished
[12:08:39.516] - Sha caled by dev: 2084c0b16898a7de5804c60d3d0c5ced2b77e92b7dcd44c9ceace7fa73c57f88
[12:08:39.517] - Verify success
[12:08:39.522] - Program Finished
[12:08:39.523] - All time cost(ms): 15293.658203125
[12:08:39.658] - close interface
[12:08:39.658] - [All Success]

@mrhempman69
Copy link
Author

mrhempman69 commented Nov 10, 2023

Is there a line that I can change in the code to automatically enable a2dp broadcast? Without needing uart.

Also the Bluetooth name if possible. So that i can flash it with those settings and not use UART

@mrhempman69
Copy link
Author

mrhempman69 commented Nov 11, 2023

This is a problem specific to the player_bt example. Because, I can run helloworld example and get proper UART output.

I do get these warnings on build:

C:\Users\mrhem\bouffalo_sdk_setup\bouffalo_sdk\examples\audio\player_bt\main.c:31:13: warning: implicit declaration of function 'bflb_device_get_by_name' [-Wimplicit-function-declaration]
   31 |     uart0 = bflb_device_get_by_name("uart0");
      |             ^~~~~~~~~~~~~~~~~~~~~~~
C:\Users\mrhem\bouffalo_sdk_setup\bouffalo_sdk\examples\audio\player_bt\main.c:31:11: warning: assignment to 'struct bflb_device_s *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   31 |     uart0 = bflb_device_get_by_name("uart0");

@mrhempman69
Copy link
Author

mrhempman69 commented Nov 11, 2023

So the helloworld example works. But the examples/audio/player_bt one does not. Even when I change its main.c to be more like helloworld, still no logging output.

I think it has to do with bflb_device_get_by_name function...

Please try examples/audio/player_bt and see if you get output or input over UART....

/*
 * Copyright (C) 2017-2022 Bouffalolab Group Holding Limited
 * Change Logs:
 *   Date        Author       Notes
 *   2019-03-25  MSP          the first version
 */

#include "shell.h"
#include <FreeRTOS.h>
#include "task.h"
#include "bflb_mtimer.h"
#include "bflb_core.h"
#include "board.h"
#define DBG_TAG "MAIN"
#include "log.h"

#define APP_MAIN_STACK_SIZE          (4*1024)
#define APP_MAIN_TASK_PRIORITY       (1)

static struct bflb_device_s *uart0;

extern void shell_init_with_task(struct bflb_device_s *shell);
extern void app_main_entry(void *arg);

int main(void)
{
    TaskHandle_t xHandle;
    board_init();

    // configASSERT((configMAX_PRIORITIES > 4));

    uart0 = bflb_device_get_by_name("uart0");
    shell_init_with_task(uart0);

    xTaskCreate(app_main_entry, (char *)"app_main", APP_MAIN_STACK_SIZE, NULL, APP_MAIN_TASK_PRIORITY, &xHandle);

    vTaskStartScheduler();

   // No output in this example, but works in helloworld:
    while (1) {
        LOG_F("player_bt hello world fatal\r\n");
        LOG_E("player_bt hello world error\r\n");
        LOG_W("player_bt hello world warning\r\n");
        LOG_I("player_bt hello world information\r\n");
        LOG_D("player_bt hello world debug\r\n");
        LOG_T("player_bt hello world trace\r\n");
        LOG_RF("player_bt hello world fatal raw\r\n");
        LOG_RE("player_bt hello world error raw\r\n");
        LOG_RW("player_bt hello world warning raw\r\n");
        LOG_RI("player_bt hello world information raw\r\n");
        LOG_RD("player_bt hello world debug raw\r\n");
        LOG_RT("player_bt hello world trace raw\r\n");
        bflb_mtimer_delay_ms(3000);
    }
}

@sakumisu
Copy link

sakumisu commented Nov 12, 2023

M0s have no psram, stop using these demos( must enable psram), so there is no log because psram enables failed.

@gamelaster
Copy link
Contributor

@mrhempman69 as @sakumisu says, those examples needs pSRAM, so they can work properly. I can recommend AI-Thinker M61 series boards: https://www.aliexpress.com/i/1005005407935386.html

@mrhempman69
Copy link
Author

mrhempman69 commented Nov 12, 2023

Thanks... it has to be "p"SRAM? Would like this chip from Adafruit would work? https://www.digikey.com/en/products/filter/memory/memory/774?s=N4IgjCBcoKwOwAYqgMZQGYEMA2BnApgDQgD2UA2iAMwCcCAbAEwAsIAusQA4AuUIAytwBOASwB2AcxABfYmEY0I0EGkhY8RUhRALmCBSGK64MGIZ01mNRvXO6aMRuZgJEADlZHLNOLa8uYNzsHBk8LF3ozDhAePkFRSRliAFonZVVhAFdNMkhKKOlZEFtlEQATPmSwBAguXkgQcwBHbgBPPmrzNs58PkxcNEKgA

8 x 8MB memory
2.7-3.6 operating voltage
8-SOIC
SPI interface
133 MHz clock

It's $1.75 though, while SRAM chips have more options and are cheaper....

@gamelaster
Copy link
Contributor

No, this will not work. You need the pSRAM integrated directly in the chip, afaik, BL616 doesn't expose controller on GPIOs for external pSRAM usage.

@sakumisu
Copy link

psram is chip built-in, you should use bl618

@mrhempman69
Copy link
Author

mrhempman69 commented Nov 12, 2023

@madushan1000
Copy link

There is a bl618 module from Ai-Thinker(AI-M61-32S). Also some shops on aliexpress sells bl618 chips too. just search for "bl618"

@gamelaster
Copy link
Contributor

As @madushan1000 says, there are modules from Ai-Thinker. And as I mentioned, mounting custom pSRAM to BL616 is not possible. Use BL618 instead.

@mrhempman69
Copy link
Author

mrhempman69 commented Nov 13, 2023

Thank you, madushan1000, gamelaster !!! And sakumisu!!

@mrhempman69
Copy link
Author

mrhempman69 commented Nov 24, 2023

Okay??? I bought the AI-Thinker-M61 board that was suggested. I get this error when connecting to UART after flash of the player_bt example. (Has anyone actually tried the player_bt example??)

[15:00:22.162] - Open COM4 Success
[15:00:23.486] -   ____               __  __      _       _       _
[15:00:23.494] -  |  _ \             / _|/ _|    | |     | |     | |
[15:00:23.501] -  | |_) | ___  _   _| |_| |_ __ _| | ___ | | __ _| |__
[15:00:23.505] -  |  _ < / _ \| | | |  _|  _/ _` | |/ _ \| |/ _` | '_ \
[15:00:23.509] -  | |_) | (_) | |_| | | | || (_| | | (_) | | (_| | |_) |
[15:00:23.513] -  |____/ \___/ \__,_|_| |_| \__,_|_|\___/|_|\__,_|_.__/
[15:00:23.515] - Build:11:39:57,Nov 10 2023
[15:00:23.518] - Copyright (c) 2022 Bouffalolab team
[15:00:23.519] - ======== flash cfg ========
[15:00:23.522] - flash size 0x00800000
[15:00:23.523] - jedec id     0x5E4017
[15:00:23.525] - mid              0x5E
[15:00:23.526] - iomode           0x04
[15:00:23.529] - clk delay        0x01
[15:00:23.530] - clk invert       0x01
[15:00:23.532] - read reg cmd0    0x05
[15:00:23.533] - read reg cmd1    0x35
[15:00:23.535] - write reg cmd0   0x01
[15:00:23.535] - write reg cmd1   0x31
[15:00:23.536] - qe write len     0x01
[15:00:23.538] - cread support    0x01
[15:00:23.539] - cread code       0x20
[15:00:23.541] - burst wrap cmd   0x77
[15:00:23.542] - ===========================
[15:00:23.547] - dynamic memory init success, ocram heap size = 234 Kbyte, psram heap size = 4096 Kbyte
[15:00:23.547] - sig1:ffffffff
[15:00:23.549] - sig2:0000f32f
[15:00:23.550] - cgen1:9ffffffd
[15:00:23.552] - �[0mbouffalolab />�[0mexception_entry
[15:00:23.553] - mcause=38000005
[15:00:23.553] - mepc:a00d9846
[15:00:23.555] - mtval:00000001
[15:00:23.556] - Load access fault

I am using BL618 now, still the repo is broken. Still the repo readme suggests using BL616, why don't you update it? This conversation was two weeks ago, still nobody has updated the documentation.

@mrhempman69
Copy link
Author

@sakumisu @sakumisue

@sakumisu
Copy link

These demos can work both bl616 or bl618, just modify some config, but i should say these demos are for customer with special board. From mine, it work. You can ask ai-thinker for supporting these, thanks.

@mrhempman69
Copy link
Author

mrhempman69 commented Nov 29, 2023

I wish you had said that earlier. I have BL616 breakout for weeks now. I suggested using external PSRAM and you said "psram is chip built-in". So how can Bl616 work in your development kit, but I am unable to add external components to make bl616 work?

I have made a Bl618 breakout board too now. So I can re-create "special board" but what I should do to make it like the "special board"? What is the special board? Where is its schematic?

And also where are the config settings are that I need to change, and for what reasons?

@gamelaster
Copy link
Contributor

This is correct command. @sakumisu uses probably the official devkit. Best would be to attach JTAG and check out why it crashes.

@mrhempman69
Copy link
Author

mrhempman69 commented Nov 30, 2023

@gamelaster Can you please recommend me the CKLink Debugger or the jtag tool that you're using to debug these kinds of boards? The CKLink Debugger described by bouffalo labs does not appear to be an available product.

Edit: I think I did this once before, with an Rpi-like thing, and I can use OpenOCD right

@gamelaster
Copy link
Contributor

gamelaster commented Dec 1, 2023

Sipeed BL616 board is supposed to be CK-Link debugger 😁

@mrhempman69
Copy link
Author

mrhempman69 commented Dec 1, 2023

You mean this M0S dock? How do you flash and wire that as a debugger?
image

Edit: I choose to move the convo for debugging here: sipeed/M0S_BL616_example#12

@O2C14
Copy link

O2C14 commented Feb 25, 2024

Okay??? I bought the AI-Thinker-M61 board that was suggested. I get this error when connecting to UART after flash of the player_bt example. (Has anyone actually tried the player_bt example??)

[15:00:22.162] - Open COM4 Success
[15:00:23.486] -   ____               __  __      _       _       _
[15:00:23.494] -  |  _ \             / _|/ _|    | |     | |     | |
[15:00:23.501] -  | |_) | ___  _   _| |_| |_ __ _| | ___ | | __ _| |__
[15:00:23.505] -  |  _ < / _ \| | | |  _|  _/ _` | |/ _ \| |/ _` | '_ \
[15:00:23.509] -  | |_) | (_) | |_| | | | || (_| | | (_) | | (_| | |_) |
[15:00:23.513] -  |____/ \___/ \__,_|_| |_| \__,_|_|\___/|_|\__,_|_.__/
[15:00:23.515] - Build:11:39:57,Nov 10 2023
[15:00:23.518] - Copyright (c) 2022 Bouffalolab team
[15:00:23.519] - ======== flash cfg ========
[15:00:23.522] - flash size 0x00800000
[15:00:23.523] - jedec id     0x5E4017
[15:00:23.525] - mid              0x5E
[15:00:23.526] - iomode           0x04
[15:00:23.529] - clk delay        0x01
[15:00:23.530] - clk invert       0x01
[15:00:23.532] - read reg cmd0    0x05
[15:00:23.533] - read reg cmd1    0x35
[15:00:23.535] - write reg cmd0   0x01
[15:00:23.535] - write reg cmd1   0x31
[15:00:23.536] - qe write len     0x01
[15:00:23.538] - cread support    0x01
[15:00:23.539] - cread code       0x20
[15:00:23.541] - burst wrap cmd   0x77
[15:00:23.542] - ===========================
[15:00:23.547] - dynamic memory init success, ocram heap size = 234 Kbyte, psram heap size = 4096 Kbyte
[15:00:23.547] - sig1:ffffffff
[15:00:23.549] - sig2:0000f32f
[15:00:23.550] - cgen1:9ffffffd
[15:00:23.552] - �[0mbouffalolab />�[0mexception_entry
[15:00:23.553] - mcause=38000005
[15:00:23.553] - mepc:a00d9846
[15:00:23.555] - mtval:00000001
[15:00:23.556] - Load access fault

I am using BL618 now, still the repo is broken. Still the repo readme suggests using BL616, why don't you update it? This conversation was two weeks ago, still nobody has updated the documentation.

The occurrence of this phenomenon is due to compiling in the Windows environment. Please try compiling in the Linux environment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants