Skip to content

Commit

Permalink
Add STL32L496 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Henrik Schondorff authored and hs-olp committed Jan 8, 2025
1 parent 397c051 commit 6812299
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
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

0 comments on commit 6812299

Please sign in to comment.