b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

ucos和freertos_freertos论坛_freertos 8(2)

电脑杂谈  发布时间:2017-02-19 16:33:21  来源:网络整理

在task文件里寻找例如以下行,

PRIVILEGED_DATA static volatile TickType_t xTickCount = ( TickType_t ) 0U;

在以下增加这一行

PRIVILEGED_DATA static unsigned portBASE_TYPE uxTopUsedPriority = tskIDLE_PRIORITY;

在函数xTaskGenericCreate中的例如以下代码

uxTaskNumber;

#if ( configUSE_TRACE_FACILITY == 1 )

{

/* Add a counter into the TCB for tracing only. */

pxNewTCB->uxTCBNumber = uxTaskNumber;

}

#endif /* configUSE_TRACE_FACILITY */

的前面增加

#if ( configUSE_TRACE_FACILITY == 1 )

if( pxNewTCB->uxPriority > uxTopUsedPriority )

{

uxTopUsedPriority = pxNewTCB->uxPriority;

}

#endif /* configUSE_TRACE_FACILITY */

又一次编译FreeRTOS的实例

(原创文章请著名出处)

openocd FreeRTOS 调试

开启gdb server

openocd -f board/stm32ldiscovery.cfg

调试下载代码

arm-none-eabi-gdb stm32l1xx_freertos.elf

load

这时候server端显演示样例如以下信息

Open On-Chip Debugger 0.9.0-dev-00186-g30203b3-dirty (2014-11-05-23:00)

Licensed under GNU GPL v2

For bug reports, read

adapter speed: 300 kHz

adapter_nsrst_delay: 100

Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD

srst_only separate srst_nogate srst_open_drain connect_deassert_srst

Info : clock speed 300 kHz

Info : STLINK v2 JTAG v23 API v2 SWIM v0 VID 0x0483 PID 0x3748

Info : using stlink api v2

Info : Target voltage: 2.918068

Info : stm32l.cpu: hardware has 6 breakpoints, 4 watchpoints

Info : accepting 'gdb' connection on tcp/3333

Info : STM32L flash size is 128kb, base address is 0x8000000

undefined debug reason 7 - target needs reset


本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-33351-2.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    热点图片
    拼命载入中...