STM32MP1 support available in SW4STM32

   With System Workbench for Linux, Embedded Linux on the STM32MP1 family of MPUs from ST was never as simple to build and maintain, even for newcomers in the Linux world.
And, if you install System Workbench for Linux in System Workbench for STM32 you can seamlessly develop and debug asymmetric applications running partly on Linux, partly on the Cortex-M4; you can download a short video showcasing this on the ac6-tools website (registration required).

System Workbench for STM32

You are viewing a reply to Programming in pure assembler  

Programming in pure assembler



For this you should pass options to the linker (in the linker options miscellaneous tab):

  • -nostdlib will avoid linking standard libraries and startup files; it combines two options:
    • -nostartfiles which avoids the startup files
    • -nodefaultlibs which bypasses the standard libraries (including the C library)
  • However, if ever you link compiled C code, you may need to explicitly add the following option:
    • -lgcc to link the libgcc.a compiler helper library

Note that not using the default startup files mean you will have to replace them by suitable code and, at least, provide the vector table. Note you may have also to edit or replace the link editor script file (the .ld file placed at the root of your project).

Anyway, as you will be tweaking the compiler toolchain, I advise you look at the GCC, AS and LD documentation (there are links to these in the “Documentation ” section fo the wb site).

Hope this helps,

Bernard (Ac6)