Access to TrustZone

Is it possible to write a bootloader that runs in the Trust Zone secure zone ? I want to run custom code in secure mode.