dektronics / printalyzer-timer

F-Stop enlarging timer and print exposure meter
24 stars 6 forks source link

Upgrade STM32F4 firmware package code from V1.25.2 to V1.26.0 #24

Closed dkonigsberg closed 3 years ago

dkonigsberg commented 3 years ago

ST has upgraded the firmware package distributed with their CubeMX tooling, so we should upgrade the relevant bits of it that have made their way into our codebase. While doing this for the "firmware" and "bootloader" modules are technically separate tasks, right now they can be taken care of under a single issue. (In the future, the "bootloader" will likely be maintained separately and less frequently.)

The most notable change is moving FreeRTOS from v10.2.0 to v10.3.1. In addition, they bumped the USB library and some parts of the HAL. However, the majority of the changes (as far as we're concerned) appear to be general housekeeping on the codebase.

This update will be a good opportunity to update the CubeMX code import script, and to improve documentation of any code changes that have been made from the stock framework. The most notable changes are in the USB library and USB HAL interrupt handler to deal with serial adapter integration issues.

In addition to changes that CubeMX will put into a code re-generate output, there may also be changes (including some minor 'system_stm32f4xx.c' updates) that will not appear automatically. Therefore, some care should be taken to review these.

dkonigsberg commented 3 years ago

It may make sense to take the USB host library off the firmware package release and update to the latest actually posted on Github: https://github.com/STMicroelectronics/stm32_mw_usb_host

This is one point release past what's included in the STM32F4 firmware package, and includes the majority of minor fixes already made in our own code to resolve compiler warnings.