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

Fix: Shrink SRAM sizes of STM32F0 #2005

Merged
merged 1 commit into from
Dec 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/target/stm32f1.c
Original file line number Diff line number Diff line change
Expand Up @@ -965,35 +965,35 @@ bool stm32f1_probe(target_s *target)

case 0x444U: /* STM32F03 RM0091 Rev. 7, STM32F030x[4|6] RM0360 Rev. 4 */
target->driver = "STM32F03";
ram_size = 0x5000;
ram_size = 0x1000;
flash_size = 0x8000;
block_size = 0x400;
break;

case 0x445U: /* STM32F04 RM0091 Rev. 7, STM32F070x6 RM0360 Rev. 4 */
target->driver = "STM32F04/F070x6";
ram_size = 0x5000;
ram_size = 0x1800;
flash_size = 0x8000;
block_size = 0x400;
break;

case 0x440U: /* STM32F05 RM0091 Rev. 7, STM32F030x8 RM0360 Rev. 4 */
target->driver = "STM32F05/F030x8";
ram_size = 0x5000;
ram_size = 0x2000;
flash_size = 0x10000;
block_size = 0x400;
break;

case 0x448U: /* STM32F07 RM0091 Rev. 7, STM32F070xb RM0360 Rev. 4 */
target->driver = "STM32F07";
ram_size = 0x5000;
ram_size = 0x4000;
flash_size = 0x20000;
block_size = 0x800;
break;

case 0x442U: /* STM32F09 RM0091 Rev. 7, STM32F030xc RM0360 Rev. 4 */
target->driver = "STM32F09/F030xc";
ram_size = 0x5000;
ram_size = 0x8000;
flash_size = 0x40000;
block_size = 0x800;
break;
Expand Down
Loading