osMutexDelete / osSemaphoreDelete result in a HardFault at "SVC 0".

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

osMutexDelete / osSemaphoreDelete result in a HardFault at "SVC 0".

ソリューションへジャンプ
1,153件の閲覧回数
omidontop
Contributor I

Greetings!

I'm running the Texas Instruments SimpleLink driver ( for CC3100 ) which I have ported to the mbed platform on a FRDM-K64F board with a MK64FN1M0VLL12 ARM Cortex-M4F processor. Now at some point the driver which I'm running from my main() function tries to delete the Semaphores and Mutexes which it previously allocated. the problem is that this simple operation results in a HardFault. Now I am certain that these Mutexes and Sepmaphores are actually allocated.

I have stepped through the instructions and I can see that "svc 0" is where the HardFault is triggered.

xhardfault.jpg.pagespeed.ic.b_nxVSTMmZ.webp

Does anyone have any clues as to why this might be happening?? I would appreciate any help.

ラベル(2)
タグ(2)
0 件の賞賛
返信
1 解決策
1,014件の閲覧回数
omidontop
Contributor I

OK, I found the problem! The issue was that the code I was using called a __disable_irq() right before those instructions which I reckon resulted in HardFault exception!

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,015件の閲覧回数
omidontop
Contributor I

OK, I found the problem! The issue was that the code I was using called a __disable_irq() right before those instructions which I reckon resulted in HardFault exception!

0 件の賞賛
返信