[NUCLEO_xxx] Fix issue with attach_us function