mdebug

cortex m series debugger
git clone http://frotz.net/git/mdebug.git
Log | Files | Refs | README | LICENSE

notes.txt (1165B)


      1 Cortex M3
      2 ---------
      3 - All M3 vectors are interwork style and MUST have the low bit set.
      4   Failure to do so will result in hardfaults on reset, etc.
      5 
      6 - You can start debugging from reset by asserting RESET, writing 1 to 
      7   E000EDFC, then releasing RESET
      8 
      9 Linux Generic Serial Driver
     10 ---------------------------
     11 - class/subclass/protocol 0xff,0x00,0x00 (device and interface)
     12 - 1 interface, 1 bulk in, 1 bulk out
     13 - must modprobe usbserial vendor=0x0525 product=0xA4A6
     14 - must rmmod usbserial before modprobing it if it was previously loaded
     15 - publishes as /dev/ttyUSBx
     16 
     17 STM32F1xx
     18 ---------
     19 - clock config at boot:
     20   - HSI (internal 8MHz osc) is on and ready
     21   - SYSCLK = HSI (8MHz)
     22   - AHB = SYSCLK / 1
     23   - PCLK1 = HCLK / 1
     24   - PCLK2 = HCLK / 1
     25   - ADCCLK = PCLK2 / 2 (4MHz)
     26 
     27 LPC1343
     28 -------
     29 - how to trap just before the bootloader jumps to user flash
     30   reset-stop
     31   watch-rw 0
     32   go
     33 
     34 gdb
     35 ---
     36 making the disassembler behave:
     37   set architecture armv4m
     38   set arm fallback-mode thumb
     39 
     40 connecting/disconnecting:
     41   target remote | out/gdb-bridge
     42   disconnect
     43 
     44 turn on tracing for the remote wire protocol
     45   set debug remote 1
     46 
     47 disassemble 4 instructions at pc
     48   x/4i $pc
     49 
     50