-
Notifications
You must be signed in to change notification settings - Fork 3k
Description
Description of defect
Our customer is using STM32F429AIH6 in production device, and recently they tried to upgrade to Mbed-OS 5.15.0 and found that there are pin map errors on some of the pins they are using.
For example, they are using PG_7 to reset the NB-IoT modem (this pin is defined in NUCLEO_F429ZI), and they are seeing assertion error in pin_function:
\mbed-os\targets\TARGET_STM\pinmap.c
void pin_function(PinName pin, int data)
{
MBED_ASSERT(pin != (PinName)NC);
And this was called from gpio_init() -> gpio_set() -> pin_function(...)
Looks like it's because in those pins are not defined in PeripheralPinMaps.h, but somehow the same code worked in Mbed-OS 5.13.x and Mbed-OS 5.14.x with PeripheralPins.c.
Target(s) affected by this defect ?
Nucleo F429ZI
STM32F429AIH
Toolchain(s) (name and version) displaying this defect ?
GCC
What version of Mbed-os are you using (tag or sha) ?
mbed-os-5.15.0
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
mbed-cli 1.10.0
How is this defect reproduced ?
just try to access some pins which are not exposed on the external connectors on the board but directly connects to the MCU, and with Mbed-OS 5.15.0
Note that this happens on a device which is already massively deployed on the field.