Fixing the Mbed OS crash reporting and enable green tea test for bare metal.

Added missing mbed_error_initialize function call in bare metal boot code which is used
to retrieve the crash report from RAM in case of any previous abnormal re-boot but this function call is present in RTOS boot code.
pull/12101/head
Rajkumar Kanagaraj 2019-12-11 04:28:42 -08:00
parent f2a1804d51
commit f6a7f6587a
2 changed files with 2 additions and 4 deletions

View File

@ -13,9 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#if !defined(MBED_CONF_RTOS_PRESENT)
#error [NOT_SUPPORTED] crash_reporting test cases require a RTOS to run.
#else
#include "mbed.h"
#include "mbed_error.h"
#include "mbed_crash_data_offsets.h"
@ -83,4 +80,3 @@ int main(void)
}
#endif // !MBED_CONF_PLATFORM_CRASH_CAPTURE_ENABLED
#endif // !defined(MBED_CONF_RTOS_PRESENT)

View File

@ -76,6 +76,7 @@ int $Super$$main(void);
int $Sub$$main(void)
{
mbed_main();
mbed_error_initialize();
return $Super$$main();
}
@ -109,6 +110,7 @@ void software_init_hook(void)
int __wrap_main(void)
{
mbed_main();
mbed_error_initialize();
return __real_main();
}