(MacOS) Setup toolchain for compiling uf2 on STM32

May I ask if there is a good reference for setting up the toolchain for compiling sources on STM32?