のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

2019-07-17から1日間の記事一覧

Timebase SourceをTIM14に変更

Timebase SourceをTIM14 Timebase SourceをTIM14 Timebase code generation xPortSysTickHandlerが呼ばれるようになった。 void xPortSysTickHandler( void ) { /* The SysTick runs at the lowest interrupt priority, so when this interrupt executes all…

CALL HAL handlerを有効にすると

port.c void xPortSysTickHandler( void ) { /* The SysTick runs at the lowest interrupt priority, so when this interrupt executes all interrupts must be unmasked. There is therefore no need to save and then restore the interrupt mask value a…

listCURRENT_LIST_LENGTH のところから、抜けない

#if ( ( configUSE_PREEMPTION == 1 ) && ( configIDLE_SHOULD_YIELD == 1 ) ) { if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ tskIDLE_PRIORITY ] ) ) > ( UBaseType_t ) 1 ) { taskYIELD(); } else { mtCOVERAGE_TEST_MARKER(); } } #endif /* ( (…

タスクのスタックサイズをわざと、小さくしたとき

Stackをわざと、必要な容量より小さい、128に設定して動作させてみた。 myTask01のスタック領域が壊れている。 HardFaultになった。 StaStack破壊のときの例 必要な容量 タイマタスクのスタックサイズが200のとき、myTask01のTCBが壊れている。 mytask01のス…