nuttx gdb调试修改
来源:互联网 发布:js级联菜单 编辑:程序博客网 时间:2024/05/16 20:13
nuttx直接使用gdb没有办法调试,需要修改一下地方:
1. stm32_idle.c的
void up_idle(void)
{
#if defined(CONFIG_SUPPRESS_INTERRUPTS) || defined(CONFIG_SUPPRESS_TIMER_INTS)
/* If the system is idle and there are no timer interrupts, then process
* "fake" timer interrupts. Hopefully, something will wake up.
*/
sched_process_timer();
#else
/* Perform IDLE mode power management */
#ifndef CONFIG_DEBUG_SYMBOLS//added by john for eclipse debug
BEGIN_IDLE();
stm32_idlepm();
END_IDLE();
#endif
#endif
1. stm32_idle.c的
void up_idle(void)
{
#if defined(CONFIG_SUPPRESS_INTERRUPTS) || defined(CONFIG_SUPPRESS_TIMER_INTS)
/* If the system is idle and there are no timer interrupts, then process
* "fake" timer interrupts. Hopefully, something will wake up.
*/
sched_process_timer();
#else
/* Perform IDLE mode power management */
#ifndef CONFIG_DEBUG_SYMBOLS//added by john for eclipse debug
BEGIN_IDLE();
stm32_idlepm();
END_IDLE();
#endif
#endif
}
2. stm32_boot.c
void stm32_boardinitialize(void)
{
#ifdef CONFIG_DEBUG_SYMBOLS//added by john for eclipse debug
uint32_t cr = getreg32(STM32_DBGMCU_CR);
cr |= DBGMCU_CR_STANDBY |DBGMCU_CR_STOP |DBGMCU_CR_SLEEP;
putreg32(cr,STM32_DBGMCU_CR);
#endif
#if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2) || defined(CONFIG_STM32_SPI3)
/* Configure SPI chip selects if 1) SPI is not disabled, and 2) the weak function
* stm32_spidev_initialize() has been brought into the link.
*/
if (stm32_spidev_initialize)
{
stm32_spidev_initialize();
}
#endif
阅读全文
0 0
- nuttx gdb调试修改
- 调试nuttx堆栈崩溃问题
- gdb修改寄存器值进行调试
- 修改android系统为可gdb调试
- ATSAMV7Xult板卡调试Nuttx系统----NuttX系统的编译
- ATSAMV7Xult板卡调试Nuttx系统----NuttX系统目录结构简介
- ATSAMV7Xult板卡调试Nuttx系统----NuttX系统初始化流程简介
- NuttX
- ATSAMV7Xult板卡调试Nuttx系统------NuttX模拟器SIM的的编译和调试
- ATSAMV7Xult板卡调试Nuttx系统----NuttX系统以太网卡的调试
- intel dpdk api makefile 编译选项修改 和 gdb 调试
- gdb调试过程中修改变量的值
- intel dpdk api makefile 编译选项修改 和 gdb 调试
- 修改,编译,GDB调试openjdk8源码(docker环境下)
- GDB调试
- gdb 调试
- gdb调试
- gdb 调试
- Android源码解析之Binder守护进程Service Manager
- flash
- Tyvj P4876 近似排列计数
- 定义一个交通工具(Vehicle)的类
- android平台ffmpeg编译流程
- nuttx gdb调试修改
- GDI+图像合并
- Android 获取应用版本号、版本名称
- 阿里云CentOS7中Git和GitHub使用总结
- 关键路径图
- tomcat远程debug
- 页表实现从逻辑地址到物理地址的转换
- FrameLayout加RadioGroup实现底部点击切换
- python多进程变成学习之multiprocessing