Download J-Link GDB Server User Guide
Transcript
21 3.4.2.1 Download to flash To enable download to flash, the device needs to be selected and flash download has to be enabled; the license for download (FlashDL) is also required. For more information, please refer to Enabeling flash download and flash breakpoints on page 42 Sample GDB init sequence #************************************************* # # Connect to J-Link and debug application in flash on Cortex-M3 # # Download to flash is performed. # # Connect to the J-Link gdb server target remote localhost:2331 monitor speed 1000 monitor flash device = STM32F103VB monitor flash download = 1 load ST_MB525_FLASH.elf # Initializing PC and stack pointer monitor reg r13 = (0x00000000) monitor reg pc = (0x00000004) 3.4.2.2 Flash breakpoints Most Cortex-M3 devices offer 6 hardware breakpoints. Can be very conveniant for debugging to have more than 6 breakpoints. Flash breakpoints are supported for most popular Cortex-M3 devices. To enable flash breakpoints, the device needs to be selected and flash breakpoints have to be enabled; the license for download (FlashBP) is also required. For more information, please refer to Enabeling flash download and flash breakpoints on page 42. #************************************************* # # Connect to J-Link and debug application in flash on Cortex-M3 # # Download to flash is performed. # # Connect to the J-Link gdb server target remote localhost:2331 monitor speed 1000 monitor flash device = STM32F103VB monitor flash breakpoints = 1 monitor flash download = 1 load ST_MB525_FLASH.elf # Initializing PC and stack pointer monitor reg r13 = (0x00000000) monitor reg pc = (0x00000004) J-Link ARM GDB Server (UM08005) © 2004-2009 SEGGER Microcontroller GmbH & Co. KG