hi ..
i have an old project with STM32f103c6 .. the Project uses standard peripheral library .. i have created a new project using STM32cubemx & HAL and now i want to add the new project into the old one ... but i have no idea how can i integrate them together ..
any help ??
thank for replying Ralf,
i have tried to do that but what i am doing in the new project is to implement a communication with I2C and i could't do it using SPL but it was so simple using HAL ...
so could it be possible to add the HAL files one by one and include them in the old projct ??
thank u again for your help...
Hello Mohammad, this link "Introduction to STCubeMX" by Keil is offering details and is explaining the required ateps:
www.keil.com/.../index.html
I think that's likely to end up more trouble than it is worth.
IME, it will be much easier to start by creating a basic HAL project, and then importing your functionality into that.
HAL is not designed to mix-and-match with SPL.
You could maybe start by "refactoring" your old project so that your application code is well isolated from the SPL code ... ?
This has nothing to do with Keil.
ok thanx alot ..
Hello Mohammad,
Here is Keil's documentation on the SPL to HAL crossover http://www.keil.com/appnotes/docs/apnt_269.asp
Here are some relevant docs from ST : Application note AN5044: STM32 standard peripheral library to STM32Cube low-layer migration www.st.com/.../dm00405316.pdf