Rev | Line | |
---|
[303] | 1 | target remote localhost:3333
|
---|
| 2 | set host-charset CP1252
|
---|
| 3 | set target-charset CP1252
|
---|
| 4 |
|
---|
| 5 | # Reset to known state
|
---|
| 6 | monitor reset
|
---|
| 7 |
|
---|
| 8 | # Load the program executable
|
---|
| 9 | # load
|
---|
| 10 |
|
---|
| 11 | monitor program ./asp.bin verify 0x08000000
|
---|
| 12 |
|
---|
| 13 |
|
---|
| 14 | # Reset the chip to get to a known state. Remove "monitor reset" command
|
---|
| 15 | # if the code is not located at default address and does not run by reset.
|
---|
| 16 | monitor reset halt
|
---|
| 17 | monitor reset init
|
---|
| 18 |
|
---|
| 19 | # Enable Debug connection in low power modes (DBGMCU->CR)
|
---|
| 20 | set *0xE0042004 = (*0xE0042004) | 0x7
|
---|
| 21 |
|
---|
| 22 | #continue
|
---|
Note:
See
TracBrowser
for help on using the repository browser.