22 Commits

Author SHA1 Message Date
Marc Kleine-Budde
a876208913 cmake: rename STM32G0B1XK -> STM32G0B1xx
According to DS13560 Rev 4, 7 Ordering information, there is no
STM32G0B1XK "K" model. Rename each occurrence of STM32G0B1XK to
STM32G0B1xx

Fixes: e8d82ef7ae01 ("Add the CMake files to support the STM32G0")
Closes: https://github.com/candle-usb/candleLight_fw/issues/174
2024-06-06 09:56:12 +02:00
Jonas Martin
dffacdeafa stm32g0xx: usb: fix stall on high load USB endpoints
Having two writes to clean and set COUNTn_RX and NUM_BLOCK results in
a small windows in which COUNTn_RX and NUM_BLOCK are zero.

This results in a stall as the buffer is empty (ready to receive) but
also has no space to receive the package into.

Signed-off-by: Jonas Martin <j.martin@pengutronix.de>
2023-02-13 09:20:32 +01:00
Eya
b6d102871e stm32g0xx: usb: Use correct macro to clear RXBD register block numbers
Cherry-picked from upstream commit Fixes: e289146768cf ("[LL][USB] Use
correct macro to clear RXBD register block numbers")

https://github.com/STMicroelectronics/stm32g0xx_hal_driver.git
2023-02-13 09:20:32 +01:00
Ryan Edwards
e8d82ef7ae Add the CMake files to support the STM32G0
Add the STM32G0 to the CMake setup.  This CMake is specific to the STM32G0B1xK device.  Also included the linker file that is required for the make.

Currently G0 targets are disabled by default to keep project buildable
as-is.
2022-11-14 09:15:58 -05:00
Ryan Edwards
d0cd8cf0d9 Add STM HAL libraries for the STM32G0xx
Add the STM32 library files to support the STM32G0 products. The chipset files included support the STM32G0B1xK which supports 1 Full Speed USB and 2 CANFD channels.

This also includes a version bump for some of the common files (CMSIS,
etc)
2022-11-14 09:15:57 -05:00
fenugrec
c189c45c78 CMake : HAL CMakeLists doesn't need hal_include.h
probably accidentally added with F4 support commit
2022-01-06 17:40:55 -05:00
fenugrec
6b451da2f0 CMake: clean up -mcpu=XYZ compile flags
also remove duplicate link options for F072 targets
2022-01-06 17:38:41 -05:00
Ricky Lopez
d306798923 Add STM32F4 support
Specifically, the STM32F407VE.
Even more specifically, [this](https://stm32-base.org/boards/STM32F407VET6-STM32-F4VE-V2.0.html) dev board
2022-01-06 12:31:05 -05:00
fenugrec
e6b972441b Update USB stack to 1.11.2 (HAL + middleware)
Also remove some useless math/DSP headers.
The USB code really needed updating, considering the following entries from ST's
release notes (
https://raw.github.com/STMicroelectronics/STM32CubeF0/master/Release_Notes.html
) :

-Bug fix: USB_ReadPMA() and USB_WritePMA() by ensuring 16-bits access to
USB PMA memory
-Bug fix: correct USB RX count calculation
-Fix USB Bulk transfer double buffer mode
2021-04-25 19:43:55 -04:00
Hubert Denkmair
b94a26f016 move all usb descriptors to ROM
copy to USBD_DescBuf when requested
(serving from ROM seemingly not supported?)
2020-12-06 12:51:46 -05:00
Hubert Denkmair
f380b5eafd rename USBD_StrDesc to USBD_DescBuf
(will reuse not only for strings)
2020-12-06 12:51:46 -05:00
Hubert Denkmair
c3efe48018 shink usb descriptor string buffer to save some RAM 2020-12-06 12:51:46 -05:00
Hubert Denkmair
0aa13404d8 since Reset_Handler is now part of the main executable, no need for a OBJECT library any more 2020-12-06 12:51:46 -05:00
Hubert Denkmair
338a0e22a0 add all header files to HAL cmake SOURCES 2020-12-06 12:51:46 -05:00
Hubert Denkmair
fef1d397b5 use startup files and linker scripts from LibreUCpp 2020-12-06 12:51:46 -05:00
Hubert Denkmair
ed6152f1a2 upgrade HAL to STM32CubeF0-1.11.0 2020-12-06 12:51:46 -05:00
Hubert Denkmair
f3d86a7e73 update usb device library to STM32CubeF0-1.11.0 2020-12-06 12:51:46 -05:00
Jeroen Hofstee
7618128cf6 fix whitespace
The project uses tabs with a length of 4 spaces, and spaces for
continuation, so lets use that for the whole project. There are
many trailing whitespaces and empty lines here and there; get
rid of them as well.
2019-11-04 19:04:54 -05:00
Jeroen Hofstee
cd31acce28 use unix line endings
Some files have Windows line endings which is annoying, since pathes
won't apply, diffs looks ugly etc. So do convert the few files which
have Windows line endings to use Unix line endings as well.
2019-11-04 19:04:45 -05:00
Hubert Denkmair
423e0f53bd add -Wno-deprecated to HAL builds to allow compile with gcc9 2019-10-30 20:32:13 +01:00
Hubert Denkmair
0b5f226d8f fix chip compile definition for STM32F042 devices 2019-10-30 20:30:22 +01:00
Hubert Denkmair
23ebdb8a78 convert to cmake 2019-10-26 16:53:43 +02:00