Skip to content

Commit 6812299

Browse files
Henrik Schondorffhs-olp
Henrik Schondorff
authored andcommitted
Add STL32L496 support
1 parent 397c051 commit 6812299

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,12 @@ stm32l476xg 32l476rg-nucleo: clean
183183
DEFINES='STM32L4 STM32L476xx USBD_SOF_DISABLED' \
184184
CFLAGS='-mcpu=cortex-m4'
185185

186+
stm32l496xg: clean
187+
@$(MAKE) demo STARTUP='$(CMSISDEV)/ST/STM32L4xx/Source/Templates/gcc/startup_stm32l496xx.s' \
188+
LDSCRIPT='demo/stm32l496xg.ld' \
189+
DEFINES='STM32L4 STM32L496xx USBD_SOF_DISABLED' \
190+
CFLAGS='-mcpu=cortex-m4'
191+
186192
stm32f429xi 32f429zi-nucleo: clean
187193
@$(MAKE) demo STARTUP='$(CMSISDEV)/ST/STM32F4xx/Source/Templates/gcc/startup_stm32f429xx.s' \
188194
LDSCRIPT='demo/stm32f429xi.ld' \

demo/stm32l496xg.ld

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
ENTRY(Reset_Handler)
2+
MEMORY
3+
{
4+
ROM (rx): ORIGIN = 0x08000000, LENGTH = 1024K
5+
BANK0 (rx): ORIGIN = 0x08000000, LENGTH = 512K
6+
BANK1 (rx): ORIGIN = 0x08080000, LENGTH = 512K
7+
RAM (rwx): ORIGIN = 0x20000000, LENGTH = 256K
8+
RAM2 (rwx): ORIGIN = 0x10000000, LENGTH = 64K
9+
SRAM1 (rwx): ORIGIN = 0x20000000, LENGTH = 256K
10+
SRAM2 (rwx): ORIGIN = 0x2001C000, LENGTH = 64K
11+
}
12+
13+
INCLUDE sections.ld

inc/usb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
#endif
7676
#endif
7777

78-
#elif defined(STM32L475xx) || defined(STM32L476xx)
78+
#elif defined(STM32L475xx) || defined(STM32L476xx) || defined(STM32L496xx)
7979

8080
#define USBD_STM32L476
8181

0 commit comments

Comments
 (0)