Adding hal_init()