1. What is a Stub function?
Ans: A function without any definition which presents no error when called.
2. Why there are two ld scripts generated by STM32Cube IDE?
Ans: The CubeIDE always presents two different LDscripts on for generating the executable for Debugging which goes to RAM another for normal code upload that goes to flash memory.
3. What is Supervisory Mode/ privileged mode ?
Ans: When you are using a Kernel then there are two modes user mode and privileged mode. In User mode the applications cant have system calls.
4. What is "make -j6" ?
Ans: Make has an argument for number of jobs, so when you add -j6 it will create 6 different compiler instances, so that the systems could use multicore to the fullest. Linux people generally do add "-j $(nproc)" where nproc is a command line which returns number of processors attached.
5. What is weak attribute ?
Ans: Weak attribute used to denote weak symbols which helps linkers to choose one function out of multiple same named symbols, by just choosing strong symbol. Weak symbol could have no implementation, but compilers does not report it as a error.
6. What is the use of syscall.c in STMCubeIDE?
Ans: Syscall.c privides functions for system access. Although those functions could be directly accessed in stand alone modes.
Comments
Post a Comment