From 4ae90aaae6813b6347eef7fd847bda2b8d571399 Mon Sep 17 00:00:00 2001 From: krzysztof-cabaj Date: Fri, 7 Jun 2024 10:14:11 +0200 Subject: [PATCH 1/2] boards/stm32l476g-disco: enable cpy2remed --- boards/stm32l476g-disco/Makefile.include | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/boards/stm32l476g-disco/Makefile.include b/boards/stm32l476g-disco/Makefile.include index a5887aac8388..1c8fd5cbc501 100644 --- a/boards/stm32l476g-disco/Makefile.include +++ b/boards/stm32l476g-disco/Makefile.include @@ -9,5 +9,8 @@ OPENOCD_DEBUG_ADAPTER ?= stlink # use connect_assert_srst to always be able to flash or reset the board. OPENOCD_RESET_USE_CONNECT_ASSERT_SRST ?= 1 -# openocd programmer is supported -PROGRAMMERS_SUPPORTED += openocd +# openocd and cpy2remed programmer is supported +PROGRAMMERS_SUPPORTED += openocd cpy2remed + +#needed by cpy2remed +DIR_NAME_AT_REMED = "DIS_L476VG" From 0082755eaabe52af8dc709a1a4d722863df0f34c Mon Sep 17 00:00:00 2001 From: krzysztof-cabaj Date: Fri, 7 Jun 2024 10:52:22 +0200 Subject: [PATCH 2/2] boards/stm32l476g-disco: add board doc page --- boards/stm32l476g-disco/doc.txt | 60 +++++++++++++++++++++++++ boards/stm32l476g-disco/include/board.h | 3 +- 2 files changed, 61 insertions(+), 2 deletions(-) create mode 100644 boards/stm32l476g-disco/doc.txt diff --git a/boards/stm32l476g-disco/doc.txt b/boards/stm32l476g-disco/doc.txt new file mode 100644 index 000000000000..1d5bbbad67ca --- /dev/null +++ b/boards/stm32l476g-disco/doc.txt @@ -0,0 +1,60 @@ +/** + * @defgroup boards_stm32l476g-disco STM32L476G-DISCO + * @ingroup boards + * @brief Support for the STM32L476G-DISCO board. + +## Overview + +The STM32L476GDISCOVERY is an evaluation board with the ARM Cortex-M4 based +ultra-low power microcontroller STM32L476VGT6 with 128KiB of RAM and 1MiB of +ROM Flash. + +### Hardware + +![STM32L476G-DISCO](https://www.st.com/bin/ecommerce/api/image.PF261635.en.feature-description-include-personalized-no-cpn-medium.jpg) + +### MCU + +| MCU | STM32L476VG | +|:---------- |:------------------ | +| Family | ARM Cortex-M4 | +| Vendor | ST Microelectronics| +| RAM | 128KiB | +| Flash | 1MiB | +| Frequency | up to 80MHz | +| FPU | yes | +| Timers | 16 (2x watchdog, 1 SysTick, 6x 16-bit, 2x 32-bit [TIM2]) | +| ADCs | 1x 12-bit | +| UARTs | 3 (two UARTs and one Low-Power UART) | +| SPIs | 3 | +| I2Cs | 3 | +| RTC | 1 | +| CAN | 1 | +| Vcc | 1.71 V - 3.6V | +| Datasheet | [Datasheet](https://www.st.com/resource/en/datasheet/stm32l476je.pdf) | +| Reference Manual | [Reference Manual](http://www.st.com/content/ccc/resource/technical/document/reference_manual/02/35/09/0c/4f/f7/40/03/DM00083560.pdf/files/DM00083560.pdf/jcr:content/translations/en.DM00083560.pdf) | +| Programming Manual | [Programming Manual](http://www.st.com/content/ccc/resource/technical/document/programming_manual/6c/3a/cb/e7/e4/ea/44/9b/DM00046982.pdf/files/DM00046982.pdf/jcr:content/translations/en.DM00046982.pdf) | +| Board Manual | [Board Manual](https://www.st.com/resource/en/user_manual/um1879-discovery-kit-with-stm32l476vg-mcu-stmicroelectronics.pdf) | + +## Flashing the Board Using ST-LINK Removable Media + +On-board ST-LINK programmer provides via composite USB device removable media. +Copying the HEX file causes reprogramming of the board. This task +could be performed manually; however, the cpy2remed (copy to removable +media) PROGRAMMER script does this automatically. To program board in +this manner, use the command: +``` +make BOARD=stm32l476g-disco PROGRAMMER=cpy2remed flash +``` +@note This PROGRAMMER was tested using ST-LINK firmware 2.37.26. Firmware updates + can be found on [this STM webpage](https://www.st.com/en/development-tools/stsw-link007.html). + +## Accessing RIOT shell + +Default RIOT shell access utilize VCP (Virtual COM Port) via USB interface, +provided by integrated ST-LINK programmer. ST-LINK is connected to the +microcontroller USART2. + +The default baud rate is 115200. + + */ diff --git a/boards/stm32l476g-disco/include/board.h b/boards/stm32l476g-disco/include/board.h index 46e931e63c0f..7736c867f2f1 100644 --- a/boards/stm32l476g-disco/include/board.h +++ b/boards/stm32l476g-disco/include/board.h @@ -7,8 +7,7 @@ */ /** - * @defgroup boards_stm32l476g-disco STM32L476G-DISCO - * @ingroup boards + * @ingroup boards_stm32l476g-disco * @brief Support for the STM32L476G-DISCO board * @{ *