This message was posted on behalf of Intel Corporation
The errors that you’re getting (“write registers not compatible”) are related to the architecture being used. I believe the Nucleo board use something similar to the Arduino architecture, I just checked the specifications of some of their boards and it seems like some of them include Arduino parts (taken from their site, “Nucleo-64 include Arduino Uno rev3 & ST morpho connectors, Nucleo-32 include Arduino Nano connectors”). It would be necessary to rearrange all the register calls, along with some other changes. It is not an easy task and it will require a lot of work from your side.