Skip to main content
MBour.2
Associate II
April 7, 2021
Solved

How to port a project from a STM32L476RG to a STM32L072CZYx

  • April 7, 2021
  • 3 replies
  • 976 views

Hello,

I'm working on a BLE project on a STM32L072CZYx MCU and there is an example of a profile that suits my need but it is on another MCU, the STM32L476RG. I want to port the code from that MCU to mine but I don't really know how to do so... I've checked a tutorial on porting code but they use CubeMX and more specifically the .ioc file of the MCU I want to port the code from. The problem is I don't have the .ioc file...

So I have 2 questions regarding this :

  • Is it possible to port the code withour using CubeMX?
  • Is it possible to generate the .ioc file from the code?

Thanks for your help

This topic has been closed for replies.
Best answer by Imen.D

Hello @MBour.2​ ,

It is not possible to generate the .ioc file from your code, but you can port your project without using CubeMX tool.

For that, you can follow the required steps to migrate your existing project between STM32L4 and STM32L0 Series, by following tthis AN4809 Application note Migrating between STM32L0 Series and STM32L4 Series / STM32L4+ Series microcontrollers.

For migration, you should take into consideration the following aspects: the hardware migration, the peripheral migration and the firmware migration.

Imen

3 replies

Imen.DBest answer
ST Technical Moderator
April 7, 2021

Hello @MBour.2​ ,

It is not possible to generate the .ioc file from your code, but you can port your project without using CubeMX tool.

For that, you can follow the required steps to migrate your existing project between STM32L4 and STM32L0 Series, by following tthis AN4809 Application note Migrating between STM32L0 Series and STM32L4 Series / STM32L4+ Series microcontrollers.

For migration, you should take into consideration the following aspects: the hardware migration, the peripheral migration and the firmware migration.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
MBour.2
MBour.2Author
Associate II
April 7, 2021

Hello Imen,

Thanks a lot for your answer! I'm going to look into that note.

Sincerly,

Mohamed

ST Technical Moderator
April 8, 2021

You are welcome :)

Please mark my answer as best by clicking on the "Select as Best" button if it helped :) This can be very helpful for Community users to find this solution more quickly.

If you still need help, feel free to ask your question in more detail.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks