sipeed_wiki icon indicating copy to clipboard operation
sipeed_wiki copied to clipboard

[Gitalk:/hardware/en/tang/common-doc/update_debugger.html] Update debugger - Sipeed Wiki

Open ierturk opened this issue 9 months ago • 15 comments

https://wiki.sipeed.com/hardware/en/tang/common-doc/update_debugger.html#Tutorial

ierturk avatar Feb 16 '25 20:02 ierturk

Hello,

On Linux (Ubuntu), I encountered a problem with the serial console printing garbage characters on the Nano20k. The issue was resolved the latest BL616 firmware (2025012315). I have another Primer 20k board experiencing same problem. Could you please provide an updated firmware for the Primer20k?

Thank you.

ierturk avatar Feb 16 '25 20:02 ierturk

If anyone is intrested to flash this firmware using Linux, there is repo https://github.com/bouffalolab/bouffalo_sdk available.
Clone repo and go to tools/bflb_tools/bouffalo_flash_cube.
Run command line tool (of course you need to edit chipname for different model and file name):
./BLFlashCommand-ubuntu --chipname bl616 --flash --write --file bl616_fpga_partner_NeoDock.bin

mlapaj avatar Feb 19 '25 11:02 mlapaj

Upgraded Tang Nano 20k to latest FW.

But am stuck with just one serial port afterwards and PID/VID are incorrect: ID 349b:6160 Bouffalo Bouffalo CDC DEMO

Any advice?

dalerodgers avatar Mar 04 '25 20:03 dalerodgers

Do sipeed read these comments?

One week on and still no response!

dalerodgers avatar Mar 11 '25 17:03 dalerodgers

@ierturk Hello,

On Linux (Ubuntu), I encountered a problem with the serial console printing garbage characters on the Nano20k. The issue was resolved the latest BL616 firmware (2025012315). I have another Primer 20k board experiencing same problem. Could you please provide an updated firmware for the Primer20k?

Thank you.

Hi, the firmware update for BL702 is in progress.

As it involves SDK migration, it is expected to take about a month to complete.

Please be patient. Thank you for your understanding and support.

kyonmiriam avatar Mar 25 '25 12:03 kyonmiriam

@dalerodgers Upgraded Tang Nano 20k to latest FW.

But am stuck with just one serial port afterwards and PID/VID are incorrect: ID 349b:6160 Bouffalo Bouffalo CDC DEMO

Any advice?

Sorry to just saw your comments now. If you see Bouffalo CDC DEMO, it means that the FW update was not successful, so the BL616 on your board will always be stuck in DFU mode. This should not normally happen.

There is an unlikely situation: the efuse of the BL616 on your board contains something wrong, maybe you should try to get a email support.

kyonmiriam avatar Mar 25 '25 12:03 kyonmiriam

@dalerodgers Upgraded Tang Nano 20k to latest FW.

But am stuck with just one serial port afterwards and PID/VID are incorrect: ID 349b:6160 Bouffalo Bouffalo CDC DEMO

Any advice?

Did they reach out and solve your problem or have you been able to solve it yourself? If so, would you be able to help me solve it too?

I have sent them an email stating the issue over a week ago and had no response.

OnatBulut avatar Jun 10 '25 14:06 OnatBulut

@OnatBulut

@dalerodgers Upgraded Tang Nano 20k to latest FW.

But am stuck with just one serial port afterwards and PID/VID are incorrect: ID 349b:6160 Bouffalo Bouffalo CDC DEMO

Any advice?

Did they reach out and solve your problem or have you been able to solve it yourself? If so, would you be able to help me solve it too?

I have sent them an email stating the issue over a week ago and had no response.

Hello, I am running into the exact same problem. I'm wondering if you or anyone else has made progress on figuring out what is going on.

shantzis62 avatar Jul 27 '25 08:07 shantzis62

In fact, the FW of BL616 is encrypted with AES key. If the system gets stuck in Bouffalo Bouffalo CDC DEMO after updating FW, it means that there is a problem with the AES key stored in efuse. There is no solution to this problem, and there is NO WAY to fix it except replacing BL616.

Since efuse is OTP, there is no possibility of recovery if its content is changed.

Early Tang Nano 20K shipments may contain different efuse keys than the current batch shipments. However, due to some sudden personnel changes, all of this cannot be verified, just a guess.

kyonmiriam avatar Jul 28 '25 08:07 kyonmiriam

@kyonmiriam In fact, the FW of BL616 is encrypted with AES key. If the system gets stuck in Bouffalo Bouffalo CDC DEMO after updating FW, it means that there is a problem with the AES key stored in efuse. There is no solution to this problem, and there is NO WAY to fix it except replacing BL616.

Since efuse is OTP, there is no possibility of recovery if its content is changed.

Early Tang Nano 20K shipments may contain different efuse keys than the current batch shipments. However, due to some sudden personnel changes, all of this cannot be verified, just a guess.

Thanks. So yes, I did try to update a fairly old Tang20k (from 2023 I believe) so perhaps it does have a different AES key. Does this mean that my board is permanently bricked? It would be good if someone from Sipeed confirm this for me.

shantzis62 avatar Jul 28 '25 12:07 shantzis62

@shantzis62 Does this mean that my board is permanently bricked? It would be good if someone from Sipeed confirm this for me.

A statement from Sipeed would be much appreciated at this stage, as my unit is stucked in the Bouffalo CDC DEMO according the my mac system report. Is it permanently bricked?

conversy avatar Aug 16 '25 21:08 conversy

@shantzis62

@OnatBulut

@dalerodgers Upgraded Tang Nano 20k to latest FW.

But am stuck with just one serial port afterwards and PID/VID are incorrect: ID 349b:6160 Bouffalo Bouffalo CDC DEMO

Any advice?

Did they reach out and solve your problem or have you been able to solve it yourself? If so, would you be able to help me solve it too?

I have sent them an email stating the issue over a week ago and had no response.

Hello, I am running into the exact same problem. I'm wondering if you or anyone else has made progress on figuring out what is going on.

it seems that new firmware don't work on older units like yours and mine. I uploaded an older firmware someone gave me on the sipeed telegram group, and my unit is working again.

conversy avatar Aug 16 '25 22:08 conversy

@conversy THis is good news. Could you post this older firmware somewhere so I can unbrick my board. Thanks!

shantzis62 avatar Aug 16 '25 22:08 shantzis62

friend_20k_bl616.txt

unfortunately, I cannot upload it here, presumably because it's a .bin file... So here it is, with a .txt extension, hope it will work...

conversy avatar Aug 16 '25 22:08 conversy

@kyonmiriam

@ierturk Hello, On Linux (Ubuntu), I encountered a problem with the serial console printing garbage characters on the Nano20k. The issue was resolved the latest BL616 firmware (2025012315). I have another Primer 20k board experiencing same problem. Could you please provide an updated firmware for the Primer20k? Thank you.

Hi, the firmware update for BL702 is in progress.

As it involves SDK migration, it is expected to take about a month to complete.

Please be patient. Thank you for your understanding and support.

Hello, seeing as it has been almost 6 months, what is the status of the BL702 firmware update?

mrozy2006 avatar Sep 03 '25 09:09 mrozy2006

Is it possible to get the source code for BL616 ? Or maybe that's the secret of Sipeed !

freetoair avatar Nov 13 '25 00:11 freetoair