Skip to content

Commit 4b38d92

Browse files
committed
FIXME: RPC: IRQ method crashes CM4 core
1 parent a95b7c5 commit 4b38d92

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

libraries/RPC/RPC.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ int RPC::begin() {
107107
return 0;
108108
}
109109

110-
//eventThread = new rtos::Thread(osPriorityNormal);
111-
//eventThread->start(callback(&eventQueue, &events::EventQueue::dispatch_forever));
112-
//ticker.attach(eventQueue.event(&OPENAMP_check_for_message), 0.01f);
110+
eventThread = new rtos::Thread(osPriorityNormal);
111+
eventThread->start(callback(&eventQueue, &events::EventQueue::dispatch_forever));
112+
ticker.attach(eventQueue.event(&OPENAMP_check_for_message), 0.01f);
113113

114114
dispatcherThread = new rtos::Thread(osPriorityNormal);
115115
dispatcherThread->start(mbed::callback(this, &RPC::dispatch));

libraries/openamp_arduino/src/mailbox_hsem_if.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ void HAL_HSEM_FreeCallback(uint32_t SemMask)
8383
HAL_HSEM_ActivateNotification(__HAL_HSEM_SEMID_TO_MASK(HSEM_ID_0));
8484
#endif
8585

86+
#ifdef CORE_CM7
8687
OPENAMP_check_for_message();
88+
#endif
8789
}
8890

8991
/**

0 commit comments

Comments
 (0)