Skip to content
Open
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,12 @@ stm32l476xg 32l476rg-nucleo: clean
DEFINES='STM32L4 STM32L476xx USBD_SOF_DISABLED' \
CFLAGS='-mcpu=cortex-m4'

stm32l496xg: clean
@$(MAKE) demo STARTUP='$(CMSISDEV)/ST/STM32L4xx/Source/Templates/gcc/startup_stm32l496xx.s' \
LDSCRIPT='demo/stm32l496xg.ld' \
DEFINES='STM32L4 STM32L496xx USBD_SOF_DISABLED' \
CFLAGS='-mcpu=cortex-m4'

stm32f429xi 32f429zi-nucleo: clean
@$(MAKE) demo STARTUP='$(CMSISDEV)/ST/STM32F4xx/Source/Templates/gcc/startup_stm32f429xx.s' \
LDSCRIPT='demo/stm32f429xi.ld' \
Expand Down
13 changes: 13 additions & 0 deletions demo/stm32l496xg.ld
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
ENTRY(Reset_Handler)
MEMORY
{
ROM (rx): ORIGIN = 0x08000000, LENGTH = 1024K
BANK0 (rx): ORIGIN = 0x08000000, LENGTH = 512K
BANK1 (rx): ORIGIN = 0x08080000, LENGTH = 512K
RAM (rwx): ORIGIN = 0x20000000, LENGTH = 256K
RAM2 (rwx): ORIGIN = 0x10000000, LENGTH = 64K
SRAM1 (rwx): ORIGIN = 0x20000000, LENGTH = 256K
SRAM2 (rwx): ORIGIN = 0x2001C000, LENGTH = 64K
}

INCLUDE sections.ld
2 changes: 1 addition & 1 deletion inc/usb.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
#endif
#endif

#elif defined(STM32L475xx) || defined(STM32L476xx)
#elif defined(STM32L475xx) || defined(STM32L476xx) || defined(STM32L496xx)

#define USBD_STM32L476

Expand Down