openocd

STM32CubeF7 BSP LCD attempt

夙愿已清 提交于 2019-12-12 04:57:50
问题 I'm trying to display a string on stm32f769i-disco's LED with BSP libraries from STM32CubeF7. However, nothing happens. Here is the code: #include "stm32f7xx_hal.h" #include "stm32f769i_discovery.h" #include "stm32f769i_discovery_lcd.h" #include "stm32f7xx.h" #include <stdio.h> char str[] = "Hello from BSP LCD demo!"; void LCDInit() { // Initialize the LCD using the BSP_LCD_Init() function. BSP_LCD_Init(); // Select the LCD layer to be used using the BSP_LCD_SelectLayer() function. //BSP_LCD

GDB break commands don't get executed in command files

£可爱£侵袭症+ 提交于 2019-12-11 16:48:04
问题 I have a debugging script that does the following: sets two breakpoints. let's call them start and end breakpoints. after starting, the script continues until start breakpoint is hit. once start breakpoint is hit, I perform single-stepping until end breakpoint is hit. This is my command file: # end breakpoint break 38 commands stop 1 quit end # start breakpoint break 50 commands set logging off set logging file log.txt set logging overwrite on set logging on printf "program counter: $pc" end

OpenOCD debugging multiple devices at once

谁都会走 提交于 2019-12-07 10:05:41
问题 I am trying to debug multiple devices at once with openocd on eclipse. I have 2x STM32F303 discovery borards, I have set the hla_serial flag to a proper board, but still no luck. Separate boards are doing ok, but when trying to debug it's Eclipse saying it'came to error in last sequence. So if anyone had experience with that. Thanks 回答1: We can use hla_serial option within openocd 0.9+ ONLY . I'd recommend to download from GNU ARM Eclipse project or compile yourself. To obtain hla_serial, the

Error in Final Launch Sequence - Eclipse System Workbench Debugging for STM32L476

跟風遠走 提交于 2019-12-06 15:04:49
I'm trying to debug and run simple assembly code for STM32L476. I've set up Eclipse Oxygen, installed the latest version of System Workbench plugin in Eclipse and installed ST-Link drivers. The IDE successfully builds the program without throwing any errors, however when I connect my STM Discovery Board and try to debug, the program throws the following error: Error in Final Launch Sequence - Reset Command not defined for device 'Generic TCP/IP'. , I'm getting this error on both Ubuntu 17.10 and Windows 10 having used the exact same software. Having read a few other posts regarding issues

Eclipse GDB “init” and “run” settings for ARM LPC1768 using OpenOCD?

◇◆丶佛笑我妖孽 提交于 2019-12-01 08:28:54
I finally figured out how to get code running on this LPC1768 mini board , however now I'm trying to get debugging working. The toolchain I'm using is: Yagarto + Eclipse (Indigo) (w/ GDB Hardware Debugger) + OpenOCD . My JTAG interface is: Bus Blaster V2 board. I found one guide that walks through a similar setup, but it's for a different JTAG interface so not very useful. There's also this post regarding an LPC1768 example , but the gdb commands aren't for OpenOCD. At this point the only command I know for sure (for init) is target remote localhost:3333 (for connecting to the OpenOCD gdb

How to use the GDB (Gnu Debugger) and OpenOCD for microcontroller debugging - from the terminal?

泄露秘密 提交于 2019-11-28 15:19:41
The standard (low-cost) way to program ARM microcontrollers is using Eclipse with a complex toolchain plugged into it. Eclipse has definitely its merits, but I'd like to feel independent from this IDE. I'd like to discover what happens behind the scenes when I build (compile - link - flash) my software, and when I run a debug session. To get such deeper understanding, it would be wonderful to run the whole procedure from the command line. Note: I'm using 64-bit Windows 10. But most stuff explained here also applies on Linux systems. Please open all the command terminals with admin rights. This

How to script gdb (with python)? Example add breakpoints, run, what breakpoint did we hit?

给你一囗甜甜゛ 提交于 2019-11-27 11:58:45
问题 I'm trying to create a little unit test with gdb, for a embedded mcu that is controlled by OpenOCD (that gives me control over my target via a gdb server). So I would like to automate this with some scripting of gdb. I would like to write some kind of script for gdb that more or less does this: Add a couple of breakpoints Start the program When we stop, where did it stop (get the frame info) Quit. Any ideas? A example on how to do this in python gdb scripting would be nice. Thanks Johan Note