mirror of https://github.com/ARMmbed/mbed-os.git
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
parent
f2a1804d51
commit
f6a7f6587a
|
@ -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)
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue