-
Working through the book (aside, I didn't have any difficulties obtaining an STM32F4 Discovery board), I too ran into the HardFault exception when running the code for chapter 11. This brings up 2 questions for me...
--wpd |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I haven't looked in to 1 yet but am also interested to find out what's causing it exactly. 2 is sort of simpler. A new version of You're completely right about The best fix for chapter 11 is going to be swapping it to use the newer and maintained |
Beta Was this translation helpful? Give feedback.
I haven't looked in to 1 yet but am also interested to find out what's causing it exactly.
2 is sort of simpler. A new version of
cortex-m
was released (the 0.7 series) which normally wouldn't be used by this code, because it depends on 0.5, and Cargo treats that as "any 0.5.x". However, because it's not allowed to have multiple versions ofcortex-m
in your build tree at once (as it defines a singleton using a unique symbol name to provide once-only access to all the core peripherals),cortex-m
0.5.11 is a dummy crate that depends on, and mostly re-exports,cortex-m
0.6, which is a compatibility hack to allow people using dependencies that require 0.5 to start using 0.6 themselves, since …