Skip to content

BluePill Pin Interrupt not executing in this scenario #2178

Closed Answered by danyhm
danyhm asked this question in Q&A
Discussion options

You must be logged in to vote

@fpistm
I finally found the problem. It was really hard to debug and get to the source of it given Arduino's poor debugging resources. but as I guessed this is a library implementation issue. Others have experienced it as well
https://community.st.com/t5/stm32-mcus-products/basepri-setting-after-reset/td-p/589810

after hours of debugging and ARM register checking i finally found out that when I declare the String someName the basepri value is set to 0x50 which should normally not happen. whether this is related to FreeRTOS or not is another story but i found out after declaring the String, at system startup the basepri value is changed to a non-zero value at this line

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

@fpistm
Comment options

@danyhm
Comment options

@fpistm
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by danyhm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2175 on November 11, 2023 17:40.