Please refer to the circuits below constructing a buck regulator as a negative supply. Please pay attention to the grounding, current limit, and voltage rating. The voltage rating needs to be well above Vin-(Vout).
This example uses MP1461 buck regulator.
3.3V input to -9V output without using enable signal.
3.3V input to -9V output with enable signal.