hal is a G0 component but assert may link in the symbols in the newlib component. we'd better not use assert in the hal but use the alternative HAL_ASSERT