Fix more sources to use HAL
Enable str functions
Update MP branch
Update write image example