Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
micropython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
card10
micropython
Commits
0bb6b63e
Commit
0bb6b63e
authored
5 years ago
by
Damien George
Browse files
Options
Downloads
Patches
Plain Diff
stm32/mboot/README: Fix some typos, describe bootloader and fwupdate.py.
parent
66bcb559
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ports/stm32/mboot/README.md
+9
-2
9 additions, 2 deletions
ports/stm32/mboot/README.md
with
9 additions
and
2 deletions
ports/stm32/mboot/README.md
+
9
−
2
View file @
0bb6b63e
...
...
@@ -46,14 +46,14 @@ How to use
This assumes that the board declares and defines the relevant SPI flash
configuration structs, eg in the board-specific bdev.c file. The
`MBOOT_SPIFLASH
2
_LAYOUT`
string will be seen by the USB DFU utility and
`MBOOT_SPIFLASH_LAYOUT`
string will be seen by the USB DFU utility and
must describe the SPI flash layout. Note that the number of pages in
this layout description (the
`64`
above) cannot be larger than 99 (it
must fit in two digits) so the reported page size (the
`32Kg`
above)
must be made large enough so the number of pages fits in two digits.
Alternatively the layout can specify multiple sections like
`32*16Kg,32*16Kg`
, in which case
`MBOOT_SPIFLASH_ERASE_BLOCKS_PER_PAGE`
must be changed to
`16 / 4`
to match th
o
`16Kg`
value.
must be changed to
`16 / 4`
to match th
e
`16Kg`
value.
Mboot supports up to two external SPI flash devices. To configure the
second one use the same configuration names as above but with
...
...
@@ -115,6 +115,10 @@ The last element in the data sequence must be the end element:
*
END: type=1, len=0
Note: MicroPython's
`machine.bootloader()`
function performs steps 1-4
above, and also accepts an optional bytes argument as additional data to
pass through to Mboot.
Loading firmware from a filesystem
----------------------------------
...
...
@@ -130,6 +134,9 @@ are located and what filename to program. The elements to use are:
The firmware to load must be a gzip'd DfuSe file (.dfu.gz).
The provided fwupdate.py script contains helper functions to call into Mboot
with the correct data, and also to update Mboot itself.
Example: Mboot on PYBv1.x
-------------------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment