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

add 'stm32l052dap52' (STM32L052K8 MCU) board target #1588

Merged
merged 1 commit into from
Aug 10, 2022

Conversation

majbthrd
Copy link
Collaborator

@majbthrd majbthrd commented Aug 3, 2022

This adds the ST STM32L052 since I encountered a target with said MCU and didn't find an existing board type in TinyUSB.

I tried to follow the newer TinyUSB convention of "boards" sub-directory for a given "family" (stm32l0). There is an existing "stm32l0538disco" board using the older convention that I left untouched since I don't know the reasons behind it still being in the main bsp directory.

I set the board name to "stm32l052dap52". The reason for the naming suffix is that the target that I encountered is the Olimex LoRa-STM32WL-DevKIT, which uses a STM32L052K8 as a CMSIS-DAP adapter for the board's main target, which is a STM32WLE5-series (no USB capability). 'dap52' using the VID:PID 15ba:0044 appears to be Olimex's name of their (slightly buggy) fork of dap42

Olimex did not do the user any favors. Although there is talk in their github repository about a bootloader, that appears to just be leftover verbiage from the dap42 project. There is a SB1 in the schematic labelled "Bootloader", but it doesn't invoke anything. The only practical way to reprogram the STM32L052K8 is via the SWD pins on CON1 (1x10 IDC header).

'dap52' is Olimex's name of their STM32L052-based fork of 'dap42'
Copy link
Owner

@hathach hathach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you for PR, this is indeed an odd target with dap mcu instead of main mcu. Though I am sure other will find this useful as well, we did have stlink v3 as target as well.

Don't worry about stm32l0538disco, it is added before the family thing, and still haven't got migrated yet. I will do it later on.

@hathach hathach merged commit 7ade0d0 into hathach:master Aug 10, 2022
@majbthrd majbthrd deleted the stm32l052 branch August 11, 2022 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants