2023-11-28 02:52 PM
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
2023-11-29 12:21 AM
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
2023-11-29 02:17 PM
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
2023-11-30 12:39 AM
> 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