STM32 gotchas
287. Firmware for demo board not working, due to variants of the boards

ST produces three ranges of demo boards for STM32: the baseline Nucleo boards (of three flavour: 32-pin, 64-pin and 144-pin), which basically just break out the target chip's pins to headers and add a STLink debugger; Discovery (DISCO) boards, which are intended to showcase one or more specialties of given chip/family; and the fully-fledged expensive EVAL boards. For these, ST provides firmware within the given families' Cube bundle, under Projects (note, that also Drivers/BSP contains board-specific software).

Sometimes users complain, that the demo software does not work on given board, or that it works improperly.

These boards are produced for many years, and some of them have seen revisions, which sometimes results in significant changes, especially if obsolete components are replaced for an equivalent part but with slightly different functionality. Firmware is not always adjusted to these changes; and/or the decision is made to support just the current board variant.

The board variants are documented through the published schematics (under CAD Resources in given board's web folder); in some cases (but not always) also in the User Manual for given board. Some examples of such variants include the flipped touchscreen on the Disco-F429 (which in its newest incarnation has a footprint also for a variant touch controller, although that might not have been deployed as of now); and different MEMS accelerometer (LIS3DSH instead of the LIS302DL) which has a different I2C address, on the venerable 'F4 Disco. (reported by user newbrain).