You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To build this for a specific board, we need to change current directory to its port folder
44
36
45
37
```
@@ -52,6 +44,8 @@ Then compile with `make BOARD=[board_name] all`, for example
52
44
make BOARD=feather_stm32f405_express all
53
45
```
54
46
47
+
The required mcu driver submodule if any will be clone automatically if needed.
48
+
55
49
### Flash
56
50
57
51
`flash` target will use the default on-board debugger (jlink/cmsisdap/stlink/dfu) to flash the binary, please install those support software in advance. Some board use bootloader/DFU via serial which is required to pass to make command
Copy file name to clipboardExpand all lines: ports/esp32s2/README.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# UF2 Bootloader **Application** for ESP32-S2
1
+
# TinyUF2 "Bootloader Application" for ESP32-S2
2
2
3
3
The project is composed of customizing the 2nd stage bootloader from IDF and UF2 factory application as 3rd stage bootloader. **Note**: since IDF is actively developed and change very often, it is included as submodule at `lib/esp-idf`, please run export script there to have your environment setup correctly.
4
4
@@ -68,9 +68,10 @@ There are a few ways to enter UF2 mode:
68
68
69
69
To create your own UF2 file, simply use the [Python conversion script](https://github.com/Microsoft/uf2/blob/master/utils/uf2conv.py) on a .bin file, specifying the family as **0xbfdd4eee**. Note you must specify application address of 0x00 with the -b switch, the bootloader will use it as offset to write to ota partition.
70
70
71
-
To create a UF2 image from a .bin file:
71
+
To create a UF2 image from a .bin file using family option `ESP32S2` or its magic number as followss:
72
72
73
73
```
74
+
uf2conv.py firmware.bin -c -b 0x00 -f ESP32S2
74
75
uf2conv.py firmware.bin -c -b 0x00 -f 0xbfdd4eee
75
76
```
76
77
@@ -94,9 +95,7 @@ NOTE: uf2 bootloader, customized 2nd bootloader and partition table can be overw
94
95
95
96
## Partition
96
97
97
-
The following partition isn't final yet, current build without optimization and lots of debug is around 100 KB. Since IDF requires application type must be 64KB aligned, uf2 is best with size of 64KB, we will try to see if we could fit https://github.com/microsoft/uf2/blob/master/hf2.md and https://github.com/microsoft/uf2/blob/master/cf2.md within 64KB.
98
-
99
-
UF2 only uses `ota_0` user application can change partition table (e.g increase ota_0 size, re-arrange layout/address) but should not overwrite the uf2 part. If an complete re-design partition is required, `uf2_bootloader.bin` and the `modified 2nd_stage_bootloader.bin` should be included as part of user combined binary for flash command.
98
+
Following is typical partition for 4MB flash, check out the `partition-xMB.csv` for details.
TinyUF2 reserved 64KB for compatible with eixisting application e.g ciruitpython, even though TinyUF2 actual binary size is much smaller (less than 32KB). Therefore application should start at `0x08010000`.
4
+
5
+
To create a UF2 image from a .bin file, either use family option `STM32F4` or its magic number as follows:
0 commit comments