Created
July 14, 2017 10:13
-
-
Save nickd4/222ea242febde0c6c35b8bffbea9ca75 to your computer and use it in GitHub Desktop.
Improved version showing how writing to 0xE000EF70 DCCIMVAC (Data cache clean and invalidate by address to the PoC=Point of Coherency) makes the correct data accessible
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GNU gdb (GNU Tools for ARM Embedded Processors 6-2017-q2-update) 7.12.1.20170417-git | |
Copyright (C) 2017 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
and "show warranty" for details. | |
This GDB was configured as "--host=x86_64-pc-linux-gnu --target=arm-none-eabi". | |
Type "show configuration" for configuration details. | |
For bug reporting instructions, please see: | |
<http://www.gnu.org/software/gdb/bugs/>. | |
Find the GDB manual and other documentation resources online at: | |
<http://www.gnu.org/software/gdb/documentation/>. | |
For help, type "help". | |
Type "apropos word" to search for commands related to "word"... | |
Reading symbols from Debug/FokliftController.elf...done. | |
MX_GPIO_Init () at ../Src/main.c:476 | |
476 GPIO_InitStruct.Pull = GPIO_NOPULL; | |
Target voltage: 3.3V | |
Available Targets: | |
No. Att Driver | |
1 STM32F7xx | |
A program is being debugged already. Kill it? (y or n) [answered Y; input not from terminal] | |
MX_GPIO_Init () at ../Src/main.c:476 | |
476 GPIO_InitStruct.Pull = GPIO_NOPULL; | |
7BB37DAD:05:85 | |
(gdb) load | |
Loading section .isr_vector, size 0x1f8 lma 0x8000000 | |
Loading section .text, size 0xa374 lma 0x8000200 | |
Loading section .rodata, size 0x884 lma 0x800a574 | |
Loading section .ARM, size 0x8 lma 0x800adf8 | |
Loading section .init_array, size 0x4 lma 0x800ae00 | |
Loading section .fini_array, size 0x4 lma 0x800ae04 | |
Loading section .data, size 0x12c lma 0x800ae08 | |
Start address 0x8000620, load size 44844 | |
Transfer rate: 18 KB/sec, 862 bytes/write. | |
(gdb) break StartDefaultTask | |
Breakpoint 1 at 0x8002210: file ../Src/main.c, line 491. | |
(gdb) run | |
The program being debugged has been started already. | |
Start it from the beginning? (y or n) y | |
Starting program: /home/nick/burtek/FokliftController/Debug/FokliftController.elf | |
Note: automatically using hardware breakpoints for read-only addresses. | |
Breakpoint 1, StartDefaultTask (argument=0x0) at ../Src/main.c:491 | |
491 InitGraphics(&hltdc); | |
(gdb) step | |
InitGraphics (pNewLCD=0x0) at ../Src/Graphics/graphics.c:141 | |
141 pLCD = pNewLCD; | |
(gdb) p/x &pNewLCD | |
$1 = 0x2002be84 | |
(gdb) p/x {int}0x2002be84 | |
$2 = 0x0 | |
(gdb) set {int}0xe000ef70 = 0x2002be84 | |
(gdb) p/x {int}0x2002be84 | |
$3 = 0x2002fa04 | |
(gdb) quit | |
A debugging session is active. | |
Inferior 1 [Remote target] will be killed. | |
Quit anyway? (y or n) y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment