cancel
Showing results for 
Search instead for 
Did you mean: 

Can translate one code from stm32l1xx to STM32F401?

angeliran
Senior

Hi to all!

I want to know, if is possible, to translate one code from stm32l1xx to STM32F401.

I've attached the main file.


ps: The reason is, i have that ic in hand

3 REPLIES 3
Peter BENSCH
ST Employee

In principle, it is possible to switch from an STM32L1xx to an STM32F401 if the general conditions are right and the peripherals are available. USB is also used in your main.c, for which you should check the clock settings in the F401. However, it will probably not be possible to switch without debugging.

But if you also use EEPROM in the L1xx, which is not visible in main.c, then it becomes a little more difficult because the F401 does not contain a native EEPROM and can only emulate it.

Regards
/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Thx for answer Peter!

Ok, the main don´t use eeprom, i see.

Several years ago, i´ve use keil u5, to made my own code, but this is made in cube.

I know, if i want to move from one to another, i need to study again.

The main question is, if there are an easy way =)

 

Regards

The main question is, if there are an easy way

It always depends on the user's experience whether something is easy, difficult or complex. Generating the main program from an IOC and thus the complex process of configuring the peripherals is done with just a few clicks, the actual work of writing the actual program comes afterwards.

Good luck!
/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.