openocd

学习FreeRTOS-01-构建安装环境

北城余情 提交于 2020-02-03 03:37:23
1.安装软件 使用stlink或jlink在Ubuntu调试程序需要预先安装一些软件 make,libusb,openocd,telnet,gcc-arm-none-eabi,STM32CubeMX 2.创建工程 2.1获取ST提供的库 运行STM32CubeMX创建一个工程,就会自动下载对应芯片的库 2.2创建工程模板 工程模板主要包括makefile,ld script,源代码组成 ld script:在ST提供的库里已经有了,选择GCC版本对应你的CPU型号的,也可以参照手册编写或修改 makefile:FreeRTOS工程很小,写一个简单的makefile就可以了,也可以使用附件里的makefile修改一些参数适配你的CPU型号 源代码:需要把ST提供的库中GCC版本的对应你的CPU的源文件和头文件复制出来,可以参考附件里的模板 3.编译,运行,调试 3.1编译和清理 如果使用了附件里的makefile模板只要运行make all即可 3.2运行程序 开发板需要链接到电脑,之后启动openocd 可以在/usr/share/openocd/scripts/interface/看到所有支持的调试工具接口配置文件 可以在/usr/share/openocd/scripts/target/看到所有支持的CPU配置文件 JLINK:sudo openocd -f interface

SCR1(riscv+openocd+jlink+riscv_gdb)的linux环境搭建

旧街凉风 提交于 2020-01-29 00:04:00
scr1源码地址:https://github.com/syntacore/scr1 scr1_SDK地址:https://github.com/syntacore/scr1-sdk syntacore/openocd源码地址:https://github.com/syntacore/openocd riscv/riscv-openocd源码地址:https://github.com/riscv/riscv-openocd openocd官方地址:http://openocd.org/ riscv/riscv-gnu-toolchain源地址:https://github.com/riscv/riscv-gnu-toolchain 一、搭建openocd+jlink 下载linux下的jlink的驱动并安装 jlink驱动 1.SEGGER官网下载最新jlink驱动,网址 https://www.segger.com/downloads/jlink 2.下载完成后,找到下载好的文件,双击JLink_Linux_V614b_i386.deb,会自动在ubuntu software center安装,比压缩文件安装方便多啦。 3.找到路径 /opt/SEGGER/JLink/ ;终端执行JLinkExe,能进入则成功。 下载 syntacore/openocd源码 终端输入git

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

旧街凉风 提交于 2019-12-30 10:06:20
问题 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

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

自古美人都是妖i 提交于 2019-12-29 02:34:07
问题 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

ESP32-S拥有业内极富竞争力的封装尺寸和超低功耗技术,尺寸仅为18.0*25.8*2.8mm 深度睡眠电流仅为6.5uA

断了今生、忘了曾经 提交于 2019-12-27 17:46:12
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> ESP32-S拥有业内极富竞争力的封装尺寸和超低功耗技术,尺寸仅为18.0*25.8*2.8mm 深度睡眠电流仅为6.5uA. ESP32-S颗广泛用于各种物联网场合,适用于家庭自动化,工业无线控制,婴儿监控器,可穿戴电子产品,无线位置感知设备,无线定位系统信号及其它物联网应用,是物联网应用的理想解决方案; ESP32-S采用SMD封装,可通过标准SMT设备实现产品快速生产,为客户提供高客户可靠性的连接方式,特别适合自动化,大规模,低成本的现代化生产方式,方面应用于各种物联网硬件终端场合。 特性 --体积小的802.11b/g/n WI-FI+BT SoC模块; --采用低功耗双核32CPU,可做应用处理器; --主频高达340MHz,运算能力高达600DMIPS; --内置520KB SRAM; --支持UART/SPI/I2C/PWM/ADC/DAC等接口; --采用SMT-38封装,方便焊接与测试; --支持OpenOCD调试接口; --支持多种休眠模式,深度睡眠电流最小达到6uA; --内嵌Lwip和FreeRTOS; --支持STA/AP/STA+AP工作模式; --支持Smart Config/AirKiss 一键配网; --通用AT指令可快速上手; --支持串口本地升级和原厂固件升级(FOTA)

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

我是研究僧i 提交于 2019-12-22 13:06:14
问题 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

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

谁说胖子不能爱 提交于 2019-12-22 13:06:08
问题 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

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

南笙酒味 提交于 2019-12-22 13:06:01
问题 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

Getting extra bytes with semihosting on STM32L4 chip with openocd and gdb

烈酒焚心 提交于 2019-12-13 20:43:40
问题 I try to get some debug output using the SWO pin with openocd version 0.10.0+dev-00512-gfd044600 and gdb-multiarch . I compiled the firmware with the ARMToolchain_8-2018-q4 with the flags --specs=nosys.specs --specs=nano.specs --specs=rdimon.specs , put the function call initialise_monitor_handles(); in the main() . My .gdbinit looks like that: target extended-remote localhost:3333 monitor reset halt monitor arm semihosting enable monitor tpiu config internal ../bin/swo.log load break main I

Cannot find script files with OpenOCD

ぐ巨炮叔叔 提交于 2019-12-12 05:13:24
问题 I'm trying to use OpenOCD together with my ST discovery board, following this tutorial: https://japaric.github.io/discovery/README.html. When verifying the OpenOCD installation I get the following error: I've tried providing absolute paths to all files, it does not work. I also tried using the script files found in the scripts/board folder. They showed similar issues, the files cannot be found. Any pointers on solving this would be great. My host computer is running Windows 10. 回答1: cd to