This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Is there a hello world assembly language project for M4 WITHOUT Startup code?

I really want to just write some values to registers but I am really struggling to get the most simple of ASM projects to build

I am coming from PIC background and for an intial lab I want to be able to just show some students how to load a register and add together..Something like this

AREA text, code, readonly
ENTRY
MOV R0, #5
ADD R0, R0, #1
END

I found this code online, however the build is failing saying it "Cannot find arguement _Vectors" I see that vectors is defined in Startup.s but I really don't want to use any other additional files. Is there a way to do a simple ASM file like above without any additional files? and debug it

The board being used is the STM32F401RE  NUCLEO..

Thanks

Parents
  • Hi Alban. Thanks for that I need to try it out when it get back to work on Monday.

    So I should just be able to use that generic startup code on my STM32f4 as long as my code isn't using anything specific to that chip like peripherals. If I just want to edit some register values it should just work?

Reply
  • Hi Alban. Thanks for that I need to try it out when it get back to work on Monday.

    So I should just be able to use that generic startup code on my STM32f4 as long as my code isn't using anything specific to that chip like peripherals. If I just want to edit some register values it should just work?

Children