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

Uf2 bootloader for BL616 #229

Closed
marchingband opened this issue Aug 4, 2024 · 6 comments
Closed

Uf2 bootloader for BL616 #229

marchingband opened this issue Aug 4, 2024 · 6 comments

Comments

@marchingband
Copy link

How can I port the UF2 bootloader to BL616 MCU?
Is it primarily just the read/write flash functions that need to be completed?
I am looking at the template file, but it is not obvious to me how to proceed.
thank you!

@sakumisu
Copy link
Collaborator

sakumisu commented Aug 5, 2024

You can implement bootuf2_flash_write api to write your firmware and use bootuf2_is_write_done to check if firmware is writing done and then reboot or jump.

@marchingband
Copy link
Author

The API does not match the version of CherryUsb which the Bouffalo SDK contains.
Looking through the tagged versions of CherryUsb, I notice that demo/bootuf2/ does not exist in the previous releases.
Will it be possible to port? Any tips?

@marchingband
Copy link
Author

I believe I have it working.
Of course it throws an exception_entry as soon as it tries to flush the first chunk to flash, because your repo does not include a bootloader, so it is writing over the running application.
I have put in a request to Cherryuf2 to port it: zhaqian12/Cherryuf2#7
Do I understand this all correctly?
thank you.

@sakumisu
Copy link
Collaborator

sakumisu commented Aug 5, 2024

You can copy bootuf2 to your old cherryusb ,that's easy to port.

@marchingband
Copy link
Author

It was easy to port, but I do not see an example of updating code OTA, or using partition table in the BL SDK.
There are some examples in the bluetooth examples folder, such as oad_client but they are not documented well enough for me to follow.

@sakumisu
Copy link
Collaborator

sakumisu commented Aug 5, 2024

This is example for all mcu not only for one chip like bl.

@sakumisu sakumisu closed this as completed Aug 5, 2024
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

2 participants