Skip to content
Discussion options

You must be logged in to vote

Ah. I think I understand the misundertanding ;). If you are not familiar with the C language goto statements, it may appear that the stm_main() function ends after the MICROPY_BOARD_BEFORE_SOFT_RESET_LOOP(&state); statement. It does not. The stm_main() function ends at the goto soft_reset; on line 695 (as of current code in master branch).

After the boardctrl_before_soft_reset_loop() function returns, execution will continue to the next line after the soft_reset: label statement (ie. MICROPY_BOARD_TOP_SOFT_RESET_LOOP(&state);) and then continue through the rest of the code in the stm-main() function. The first time through, the soft_reset: statement has no effect. It exists as a target fo…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@glenn20
Comment options

@mong87suk
Comment options

@glenn20
Comment options

Answer selected by mong87suk
@mong87suk
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants