It should be more or less the same MCU. There may be difference in part identification numbers as it contains manufacturer ID.
Also mask numbers should be checked as ST partnumber may have different mask. Consult with reference manuals and errata sheet for both devices.