hardware pin reinitialization on reset() #7804
Unanswered
ponyatov
asked this question in
Porting to new Devices
Replies: 1 comment
-
I believe it's happening in jshResetPeripherals - that's the only place: https://github.com/espruino/Espruino/blob/c39547da361314385d12ae092e7210feafd38702/targets/stm32/jshardware.c#L1151 All you have to do is make sure the It's created here: https://github.com/espruino/Espruino/blob/c39547da361314385d12ae092e7210feafd38702/scripts/build_platform_config.py#L554-L557 so if you have one of OTHER_DEVICES listed in the BOARD.py file and it's got all the pins you use listed under it, the pins won't get reset: You can see we do it in BANGLEJS with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have problems in
reset()
function running on STM32F429-based board with external SDRAM enabled: #7765I found a code point where system deathly halts:
reset() -> jsvReset -> jspSoftInit -> jsiSemiInit
Looking in a hardware debugger, I see that FMC controller gets resetted in this call chain, so the whole jsVar[] memory becomes unavailable.
What points in an Espruino core can make FMC reset (or maybe IO pins reassign) ?
Beta Was this translation helpful? Give feedback.
All reactions