clang assembly causes call to Hardfault Handler

Comments

2 comments

  • Avatar
    Michael Johnson

    I guess that the clang assembler is not marking _start as a thumb symbol in the

    b _start

    I don't know how to specify this, you can replace it with

    ldr r0, =_start
    bx r0

     

    0
    Comment actions Permalink
  • Avatar
    Francesco

    Hello Micheal,

    You are right, this solves the problem. So in the "STM32_Startup.s" file I replaced the code you wrote and everything worked perfectly. Unfortunately this must be replaced with that code for all projects, but that's fine.

    Thank you!

    0
    Comment actions Permalink

Please sign in to leave a comment.