2021-03-31 12:49 AM
Hello everyone!
I am trying to call my access point (main) outside the STCube projects, I already created a project that contains the STCube project, but the assembly code doesn't recognize the external project to find the access point, is there any quite tutorial about it?
Thanks in advance
Alan
2021-03-31 02:34 AM
Hello
>>but the assembly code doesn't recognize the external project.
Probably mean the startup file's assembly code. in this case "IMPORT" is the keyword to tell the linker to search for void your_main(void) function
Note that __main function called from reset handler initializes CRT and ZI RW data-variables and subsequently calls int main(void) main function.
2021-03-31 11:58 PM
I don't have this structure in the .s file, but anyway, I solved by included the folder in the project properties, C/C++ General, Paths and Symbols, Source Location with the button "Link Folder".
Thanks for the help!