dektronics / printalyzer-densitometer

Reflection and Transmission Densitometer for Photographic Darkroom Use
19 stars 4 forks source link

Switch MCU to from STM32L072KBU6 to STM32L072KZT6 #21

Closed dkonigsberg closed 2 years ago

dkonigsberg commented 2 years ago

The current MCU has 128k of Flash, 20kb of RAM, and comes in a UFQFPN32 (5x5mm) package.

The replacement MCU has 192kb of Flash, 20kb of RAM, and comes in a LQFP32 (7x7mm) package.

Otherwise, they should be almost equivalent.

This change is being driven entirely by the ongoing semiconductor component shortage. While everything in the STM32L072x product line is basically out of stock with long and/or uncertain lead times, one vendor has admitted to having a large batch of the STM32L072KZT6 part on order and expected to arrive within a couple months. Switching packages will require some PCB layout changes, and switching parts will add a little bit to the BOM cost. However, the price increase is tiny in comparison to the total.

One benefit of the change is more flash, which will make it possible to use less code size optimization in the bootloader, and in the firmware itself, which will make debugging and feature addition a bit easier.