By default cortex-m uses critical-section-single-core which is unsafe because it disables interrumpts. If I want to use just the HAL without the SDK. This should be safe because I'm not using interrumpts but in the case of using the SDK I think it's needed