Hardfault and Assert failed

Comments

2 comments

  • Avatar
    Michael Johnson

    If you are using the st library software then increase the stack size. If you aren't then ensure that the GPIOB is enabled (one of the RCC registers). I suspect the simulator doesn't implement those registers....

    0
    Comment actions Permalink
  • Avatar
    Gerry Steyn

    Thanks Michael!

    I went back to the hardware, and also increased the stack to 1024. Now it is working again.

     

    0
    Comment actions Permalink

Please sign in to leave a comment.