Forum : ST7/STM8
Original Post
Post Information | Post |
---|---|
September 27, 2012 - 11:36am
|
Hi, I'm coming to STM8/ST7 from developing on STM32 using Keil and ST's own stdperipheral library as a starting point. I see that ST also provide a stdperipheral library for STM8. However, I have been told that Raisonance IDE/Compiler (which I have never really used before) also comes with its own library that you can download somewhere. I find the Raisonance website a little be counter intuitive (because I'm so used to ST I suppose), so I would be grateful if somebody could confirm the above and link me to the appropriate Firmware Download if it exists. Thanks, CoderTony. |
Hi,
The runtime library somes with the compiler as with all compilers. Just download Ride7 and RKit-STM8 and you'll have both the compiler and the runtime library.
The peripherals library comes from ST as for STM32. Take it from the ST website to be sure that you have the latest version.
You need these two libraries, and there is only one provider for each of them. (Raisonance or ST)
Best Regards,
Vincent
Hi,
Thanks. I am dealing with code written by a previous employee who was unaware of the stdperiphlibrary and just used the raisonance libs to write to chip registers directly.
There is also legacy st7 code. I am wondering if code written for an ST7 can just somehow be recompiled without modification to run on an STM8?
Thanks
Hi,
Unfortunately, the peripherals and their registers are quite different between the ST7 and the STM8. So you'll have quite some work to port ST7 applications to STM8. Probably ST support can help you better than us on this though.
On the positive side, the STM8 is quite close to the STM32 on these aspects. (closer to STM32 than to ST7) And usually simpler when different. So if you are used to using the STM32, the STM8 will be easy. Especially if you are used to the STM32 libs, because the STM8 libs are very similar. (again, simpler)
Best Regards,
Vincent