2018-03-16 12:36 PM
Hello.
I'm trying to get started with stm8s series with IAR compiler that I'm not very good at.
So for the first project just trying to on and off a single LED to see if everything is ok or not.
I used Keil before this in ARM MCUs, that at first I the compiler asked me if I want to add the startup file or not.
So every time I pushed the yes button and everything was ok.
But IAR does not do this.
So I wanted to know what libraries should I add to the project?
I have to mention that I'm just using the registers and not any standard libraries.
The MCU I'm working with is an STM8S105k4t6.
2018-03-16 01:19 PM
'
So I wanted to know what libraries should I add to the project?'
only add the ones that you need.
2018-03-16 02:59 PM
The problem is that I don't know which libraries are necessary and which are not.
I just know that iostm8s.h is important because it has the register descriptions.
I just wanted to know which are the necessity that without them the MCU will not work appropriately.
2018-03-16 03:26 PM
Include files are not inherently libraries.
The compiler will not get closure if defines are missing.
The linker will not get closure if the source and libraries do not provide code for all the functions which call each other.
2018-03-16 06:45 PM
'
I just wanted to know which are the necessity that without them the MCU will not work appropriately.'
you need absolutely nothing for the mcu to work. libraries are there to help your code but they are by no means 'necessary'.