STM32: Code after "SysTick_Config()" isn't executed

Comments

7 comments

  • Avatar
    Michael Johnson

    It may be that the compiler is inlining this function. The breakpoint markers will be on the function if this is the case.

    0
    Comment actions Permalink
  • Avatar
    Johannes Hofmann

    Hello Michael,
    I'm not sure what you mean. 
    In the past I hade a related question to this Config to which you also replied.

    I think I'm also struggling with the setup of my hardware. There is a "SystemInit" command, that can be omitted via preprocessor setting. Would you include or exclude it?

    0
    Comment actions Permalink
  • Avatar
    Michael Johnson

    Does your project have a SystemInit function, if not then the default empty function will be called.

    What does the hw.init() function do?

    0
    Comment actions Permalink
  • Avatar
    Johannes Hofmann

    Hi Michael,
    Today I learned that "SystemInit" by default is just a blank function identifier and if you need it you have to implement it by yourself. Same with "SystemCoreClockUpdate".
    So as I initialize the clocks and the other hardware peripherals inside the hw.init() I don't need SystemInit.
    Also now I know, that the hardware init should be called before the SystickConfig.
    I also realized, that some of my source files have a "modified properties" tag on it. Maybe by accident I modified these files instead of the whole project. Do you know how I can reset these single files?

    0
    Comment actions Permalink
  • Avatar
    Michael Johnson

    Set the Property Explorer Option | Properties Under Node, then you can delete them.

    0
    Comment actions Permalink
  • Avatar
    Johannes Hofmann

    You meant under "Show Properties"?
    This only expanded the project's properties, but I want to revert the settings that I made just for hardware.cpp and main.cpp

    0
    Comment actions Permalink
  • Avatar
    Michael Johnson

    On the dropdown in the project explorer you can set it to display properties. Do this then you can use the project explorer to delete those properties.

    Alternatively you can use Show Properties when the file node is selected in the project explorer and then remove the property.

    0
    Comment actions Permalink

Please sign in to leave a comment.