Hi,
I'm working on a new projet with nucleo board (NFC). I use Keil uVision with a demo program provided with this nucleo board. But the project runs on a STMF103 and for the needs of my project I will use a low power MCU which is the STM32L0.
Do you know a way to port Keil project in order it compiles with STM32L0 ?
Thanks in advance, Mat
If your F1 project uses the SPL you're likely going to have to do some major refactoring to fit into the HAL model.
Suggest you build a donor/shell project for the L0 using current libraries, flesh out the clocks, peripheral and pin configurations. Fit your abstraction layer to the new libraries, and then merge in your application code starting at the node functions and moving upward. Compile and test elements as you go.
Thank you for your answer. What do you mean by SPL ?
Actually the source code to adapt is the following one for X-NUCLEO-NFC05A (www.st.com/.../x-nucleo-nfc05a1.html)
"SPL" is ST's Standard Peripheral Library - which they have now deprecated, and prefer you to use their HAL.
Note that these are ST things - nothing to do with Keil!
"Actually the source code to adapt is the following one for X-NUCLEO-NFC05A (www.st.com/.../x-nucleo-nfc05a1.html)"
Again, that's ST's code - nothing to do with Keil!
Ok I understand what are SPL now. In this project it seems that there is no SPL, but HAL. In the project tree I cannot see the SPL term, but HAL in some paths and files names.
It is a ST code source which runs on Keil uVision.
Not sure if you're looking for contractors to do this, seems like a porting exercise across fairly similar parts. I don't think there is an effort-less method.
Understand your two platforms/architectures, and where you're using common pins in your designs, and where you're not. Be aware that CM0 parts has less functionality and different IRQ behaviour.
No, it doesn't run on uVision.
It runs on STM32 microcontrollers!
The ST HAL is source code provided by ST which can be built with a number of IDEs - including uVision.
It has nothing specifically to do with Keil.