kopia lustrzana https://github.com/micropython/micropython
Updated Symbolic Debugging for STM32 (markdown)
rodzic
d249875428
commit
31663a1dd6
|
@ -1,4 +1,4 @@
|
|||
#How to on symbolic debugging
|
||||
# How to on symbolic debugging
|
||||
Symbolic debugging needs a wired link to the "SWD" pins on the PYBV10. On the pyboard these are shared with the Red and Green leds so they need to be not used when debugging.
|
||||
|
||||
The steps for symbolic debugging
|
||||
|
@ -7,7 +7,7 @@ The steps for symbolic debugging
|
|||
|
||||
* b) build an image with symbolics and no code optomization (S0)and use an interface that drives the ST-Link (eg openStem32.org's AC6 Eclipse)
|
||||
|
||||
##hardware wires from ST-LINK to pyboard
|
||||
## hardware wires from ST-LINK to pyboard
|
||||
Nucleo-F401RE CN4----PYBV10
|
||||
|
||||
1-open
|
||||
|
@ -33,7 +33,7 @@ The Nucleo-F401RE board also has two "ST-LINK" jumpers that need to be removed t
|
|||
![pyBoard wired to a ST-LINK on a Nucleo-F401RE](http://forum.micropython.org/download/file.php?id=159)
|
||||
|
||||
|
||||
##symbolic debugging
|
||||
## symbolic debugging
|
||||
Symbolic debugging is useful for checking out the interface to hardware - single stepping through each line of code, and looking at the registers/variables. Symbolic debugging often relies on a toolchain that can be difficult to get right - so often its more pain to setup and debug the debugger than it is to use other methods.
|
||||
Retrofitting symbolic debugging to a large project often doesn't work - so it may not work for the main python code but can be very useful for some integration testing. Your mileage may vary.
|
||||
|
||||
|
@ -46,14 +46,14 @@ STM's documents:
|
|||
|
||||
ST TN0072 -Software toolchains and STM32 features
|
||||
|
||||
###OpenSTM32.org
|
||||
### OpenSTM32.org
|
||||
This is an Eclipse Lunar based toolchain for both Linux and Windows.
|
||||
|
||||
I've used it to take a STM32cubeMX example and customize it for the pyboard. As of writing (2015Nov) it doesn't accept the stmhal/build-PYBV10/firmware.ELF.
|
||||
|
||||
Download/install the " [System Workbench for STM32](http://www.openstm32.org/System+Workbench+for+STM32)" -
|
||||
|
||||
###ST-Link Upload
|
||||
### ST-Link Upload
|
||||
The ST-Link can be used to upload to the board, see [Building ST-Flash](https://github.com/micropython/micropython/wiki/Building-st-flash).
|
||||
|
||||
There is also an STM "STM32 ST-Link Utility" (Windows?)that can be used to verify the ST-Link works and to program to memory
|
||||
|
|
Ładowanie…
Reference in New Issue