You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.
When _object is uninitialized (== NULL), the call() should probably have the OR CORE_UTIL_ASSERT((_membercaller != NULL) || (_object != NULL)); but this would only be caught in debug build.
I noticed hardfault occuring here when user had serial.attach() for RX callback. serial_api.c uart_isr can call TX handler when RX interrupt occurs. Yet if TX function pointer isnt initialized, then hardfault occurs.
The mbed library on developer.mbed.org is skipping function pointer call if the called object is null.
The text was updated successfully, but these errors were encountered:
I am closing this as a duplicate of the mbed-drivers 83 I referenced above. If you consider that a serial should not invoke non attached (Tx in your case) object, it should be reported in the mbed-drivers.
When _object is uninitialized (== NULL), the call() should probably have the OR
CORE_UTIL_ASSERT((_membercaller != NULL) || (_object != NULL));
but this would only be caught in debug build.I noticed hardfault occuring here when user had serial.attach() for RX callback. serial_api.c uart_isr can call TX handler when RX interrupt occurs. Yet if TX function pointer isnt initialized, then hardfault occurs.
The mbed library on developer.mbed.org is skipping function pointer call if the called object is null.
The text was updated successfully, but these errors were encountered: