HardFault_Handler error with FreeRTOS, KL27

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

HardFault_Handler error with FreeRTOS, KL27

1,347件の閲覧回数
gsmgbl
Contributor IV

Hi all,

I am using Kinetis KL27 and running a FreeRTOS 8.2.3 in it. In addition, I am using IAR Workbench for development. My ADC task was running fine previously, but I encountered a hardfault_handler error after I added a new task. But the error was not stuck in the new task, but the ADC reading task.

Anyway, it stucks at the "return pxList->uxNumberOfItems;" statement in the uxListRemove function in FreeRTOS.

I did some research about the hardfault handler, but i could not find any close to or related to my issue.

Please advise. In addition, please let me know what other information to provide more detail about this problem.

Thank you.

Gilbert

ラベル(1)
タグ(3)
0 件の賞賛
返信
2 返答(返信)

1,088件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Hi Gilbert:

Could you please provide more information about your issue, your code snippet or project for further analyzing?

Regards

Daniel

0 件の賞賛
返信

1,088件の閲覧回数
gsmgbl
Contributor IV

Hi Daniel,

I think I found what I did wrong in my program.

The hardfault is causing by my taskdelay in between enter and exit the critical section.

I should aware of doing this critical period short and clean, my hardfault_handler error is gone after I rearranged my process. Thank you for your time.

Regards,

Gilbert

0 件の賞賛
返信