Skip to content

Commit

Permalink
bootloader_v61
Browse files Browse the repository at this point in the history
  • Loading branch information
eh2k committed Nov 26, 2023
1 parent 244ec3a commit 3832801
Show file tree
Hide file tree
Showing 54 changed files with 993 additions and 12,900 deletions.
27 changes: 13 additions & 14 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,21 @@

## Unreleased

### Bug Fixes
### Features

* patchsm: Corrected gate out pin assignment confusion added by (#417) as noted by [apbianco](https://forum.electro-smith.com/u/apbianco) and [tele_player](https://forum.electro-smith.com/u/tele_player)
* bootloader: added `System::BootloaderMode::DAISY` and `System::BootloaderMode::DAISY_SKIP_TIMEOUT` options to `System::ResetToBootloader` method for better firmware updating flexibility

## v5.3.0
### Bug fixes

### Features
* bootloader: pins `D29` and `D30` are no longer stuck when using the Daisy bootloader

* driver: Software SPI transport `SSD130x4WireSoftSpiTransport` added for the OLED Display driver. (#551)
### Migrating

### Bug Fixes
#### Bootloader

* driver: Fixed a compiler error in `Max11300Driver::WriteAnalogPinVolts()`
* driver: Fixed error reading multiple registers at once from the MPC23x17 GPIO expanders (#550)
* seed: Fixed out of range pin definitions for extra GPIO on the Daisy Seed2 DFM (#544)
* patchsm: Fixed issue where updating the audio callback params didn't update control samplerate (#543)
* This version of libDaisy and greater will be compatible with any version of the Daisy bootloader, meaning you won't have to update the bootloader on your product if you want the latest changes to libDaisy.
* However, for newer versions of the bootloader, you must use a compatible version of libDaisy.
* Daisy bootloader v6.0 and up will only be compatible with libDaisy v5.3 and up.

## v5.2.0

Expand Down Expand Up @@ -46,7 +45,7 @@
* bootloader: Working with the bootloader has been simplified. See [the new guide for updates on usage](https://electro-smith.github.io/libDaisy/md_doc_md__a7__getting__started__daisy__bootloader.html)
* usb: `USBHost` class has added support for user callbacks on device connection, disconnection, and when the MSC class becomes active.
* uart: Adds DMA RX and TX modes, similar to how they work on the I2C and SPI.
* uart: Update function names to be more in line with the new DMA / Blocking scheme.
* uart: Update function names to be more in line with the new DMA / Blocking scheme.
* The old methods are wrappers for the new ones to preserve backwards compatibility, but **will be removed in a future version**.
* Affected functions: `PollReceive`, `PollTx`, `StartRx`, `RxActive`, `FlushRx`, `PopRx`, `Readable`

Expand Down Expand Up @@ -91,7 +90,7 @@
* testing: debugging configuration now uses `lldb` debugging extension to support unit test debugging on macOS with Apple Silicon
* driver: oled_ssd130x.h - Add the SpiHandle:Config struct to SSD130x4WireTransport:Config to allow full access to the SPI peripheral configuration.
* hid: fixed issue in `AnalogControl` where computed coeff could be out of range with certain block sizes
* driver: added missing alternate function pin mappings for SPI2, and UART for pins available on the patch_sm hardware
* driver: added missing alternate function pin mappings for SPI2, and UART for pins available on the patch_sm hardware
* usb: fixed issue with MIDI output from USB
* driver: fixed off-by-one error in qspi erase function.

Expand Down Expand Up @@ -240,7 +239,7 @@ max11300driver.ConfigurePinAsAnalogWrite(daisy::MAX11300::PIN_1, daisy::MAX11300

### Other

* switch: Use `System::GetNow()` rather than the update rate to calculate `TimeHeldMs()`.
* switch: Use `System::GetNow()` rather than the update rate to calculate `TimeHeldMs()`.
* This has also been applied to the `Encoder` class (since it uses `Switch` internally).
* usb host: ST Middleware for USB Host support has been added to the Middlewares folder
* fatfs: changed default `FS_LOCK` to 0, allowing for more simultaneously open FIL objects.
Expand Down Expand Up @@ -434,7 +433,7 @@ sdram.Init();

### Other

* test: add unit testing for midi parser.
* test: add unit testing for midi parser.
* tests: add tests for `FIFO`
* docs: Update TODO comment in `uart.h` to reflect most recent uart update.
* ci: add filters to the workflows
Expand Down
39 changes: 38 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,17 @@ hid/audio \
per/gpio \
per/sai \
per/sdmmc \
util/bsp_sd_diskio \
util/hal_map \
util/oled_fonts \
util/sd_diskio \
util/unique_id \
util/usbh_diskio \
sys/system_stm32h7xx \
usbd/usbd_cdc_if \
usbd/usbd_desc \
usbd/usbd_conf \
usbh/usbh_conf

CPP_MODULES = \
daisy_seed \
Expand All @@ -22,6 +29,7 @@ daisy_field \
daisy_versio \
daisy_legio \
daisy_patch_sm \
sys/fatfs \
sys/system \
dev/sr_595 \
dev/codec_ak4556 \
Expand All @@ -36,7 +44,11 @@ hid/led \
hid/parameter \
hid/rgb_led \
hid/switch \
hid/usb \
hid/usb_midi \
hid/wavplayer \
hid/logger \
hid/usb_host \
per/adc \
per/dac \
per/gpio \
Expand All @@ -52,6 +64,7 @@ ui/AbstractMenu \
ui/FullScreenItemMenu \
util/color \
util/MappedValue \
util/WaveTableLoader \

######################################
# building variables
Expand Down Expand Up @@ -186,6 +199,23 @@ Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_usart.c \
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_usb.c \
Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_utils.c

# Middleware sources
C_SOURCES += \
Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Src/usbd_cdc.c \
Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.c \
Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.c \
Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.c \
Middlewares/Third_Party/FatFs/src/diskio.c \
Middlewares/Third_Party/FatFs/src/ff.c \
Middlewares/Third_Party/FatFs/src/ff_gen_drv.c \
Middlewares/ST/STM32_USB_Host_Library/Class/MSC/Src/usbh_msc_bot.c \
Middlewares/ST/STM32_USB_Host_Library/Class/MSC/Src/usbh_msc_scsi.c \
Middlewares/ST/STM32_USB_Host_Library/Class/MSC/Src/usbh_msc.c \
Middlewares/ST/STM32_USB_Host_Library/Core/Src/usbh_core.c \
Middlewares/ST/STM32_USB_Host_Library/Core/Src/usbh_ctlreq.c \
Middlewares/ST/STM32_USB_Host_Library/Core/Src/usbh_ioreq.c \
Middlewares/ST/STM32_USB_Host_Library/Core/Src/usbh_pipes.c

# C++ Source
CPP_SOURCES += $(addsuffix .cpp, $(addprefix $(MODULE_DIR)/, $(CPP_MODULES)))

Expand Down Expand Up @@ -257,13 +287,20 @@ C_DEFS = \
# ^ added for easy startup access


C_INCLUDES += \
C_INCLUDES = \
-I$(MODULE_DIR) \
-I$(MODULE_DIR)/sys \
-I$(MODULE_DIR)/usbd \
-I$(MODULE_DIR)/usbh \
-IDrivers/CMSIS/Include \
-IDrivers/CMSIS/Device/ST/STM32H7xx/Include \
-IDrivers/STM32H7xx_HAL_Driver/Inc \
-IDrivers/STM32H7xx_HAL_Driver/Inc/Legacy \
-IMiddlewares/ST/STM32_USB_Device_Library/Core/Inc \
-IMiddlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc \
-IMiddlewares/ST/STM32_USB_Host_Library/Core/Inc \
-IMiddlewares/ST/STM32_USB_Host_Library/Class/MSC/Inc \
-IMiddlewares/Third_Party/FatFs/src \
-I$(MODULE_DIR) \
-I.

Expand Down
Loading

0 comments on commit 3832801

Please sign in to comment.