Skip to content

Conversation

@snooka2197
Copy link
Contributor

@snooka2197 snooka2197 commented Oct 8, 2025

Implement Fast Programming Mode (half page programming) for STM32L0_FlashController

Enabled in ProgramEraseControl.FPRG register

Example log output:
Line 79420: 15:08:43.3472 [DEBUG] flashController: Setting fast program mode (FPRG) to True
Line 79421: 15:08:43.3472 [DEBUG] flashController: Fast programmed flash word 0 (at 0x00016b00) with 0x2045b2c9
Line 79422: 15:08:43.3472 [DEBUG] flashController: Fast programmed flash word 1 (at 0x00016b04) with 0xffa8f7fe
Line 79423: 15:08:43.3472 [DEBUG] flashController: Fast programmed flash word 2 (at 0x00016b08) with 0xb510bd01
Line 79424: 15:08:43.3472 [DEBUG] flashController: Fast programmed flash word 3 (at 0x00016b0c) with 0x20020004
Line 79425: 15:08:43.3472 [DEBUG] flashController: Fast programmed flash word 4 (at 0x00016b10) with 0xfc5ff009
Line 79426: 15:08:43.3472 [DEBUG] flashController: Fast programmed flash word 5 (at 0x00016b14) with 0x616068c0
Line 79427: 15:08:43.3472 [DEBUG] flashController: Fast programmed flash word 6 (at 0x00016b18) with 0xd1022801
Line 79428: 15:08:43.3472 [DEBUG] flashController: Fast programmed flash word 7 (at 0x00016b1c) with 0x74202000
Line 79429: 15:08:43.3472 [DEBUG] flashController: Fast programmed flash word 8 (at 0x00016b20) with 0x2802bd10
Line 79430: 15:08:43.3472 [DEBUG] flashController: Fast programmed flash word 9 (at 0x00016b24) with 0x2001d102
Line 79431: 15:08:43.3472 [DEBUG] flashController: Fast programmed flash word 10 (at 0x00016b28) with 0xbd107420
Line 79432: 15:08:43.3472 [DEBUG] flashController: Fast programmed flash word 11 (at 0x00016b2c) with 0xfea7f009
Line 79433: 15:08:43.3472 [DEBUG] flashController: Fast programmed flash word 12 (at 0x00016b30) with 0x22406841
Line 79434: 15:08:43.3472 [DEBUG] flashController: Fast programmed flash word 13 (at 0x00016b34) with 0x6042430a
Line 79435: 15:08:43.3472 [DEBUG] flashController: Fast programmed flash word 14 (at 0x00016b38) with 0x74202003
Line 79436: 15:08:43.3472 [DEBUG] flashController: Fast programmed flash word 15 (at 0x00016b3c) with 0xb538bd10
Line 79437: 15:08:43.3472 [DEBUG] flashController: Setting fast program mode (FPRG) to False

also add spacings from autoformatter

@snooka2197 snooka2197 changed the title implement fast programming STM32L0_FlashController implement fast programming Oct 8, 2025
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

Successfully merging this pull request may close these issues.

1 participant