internal flash on bf512F

hi:

    everybody, I am confused about the internal flash on bf512f . I do not know how to write the drive for it . I find the example in the ADI BF518F examples ,but the .dxe file can not use in the bf512f directly, so I do not know how to change the code  to let it work on bf512f . can everybody give me some tips to change the code? or give me some examples can let me run in the bf512f.

thank you very much

ben