Write/Read ldr file into flash

Hi, 

I am using BF706, series with bf609.

I am looking for a code example to:

- Write and read a ldr file in format of "Boot format; Include, Output width; 32 bit" into a flash.

AND I DON'T MEAN CLDP COMMAND.

Any code example?, or any idea?

Thanks