Hi, Danilo,
Can you tell me the part number you are using? I do not know why you want to save binary code into external Flash hooked on FlexBus and load code from external flash to internal flash and run in internal flash. Generally, you can download code to internal flash directly and run in internal flash directly, you can connect external flash or RAM, but they are used to save data instead of code.
For your requirement, you can complie your code as a library and treat the library as a binary array, use application code to save the binary code to external flash via FlexBus.
As an alternative, I think you can download code to external flash directly, but it is dependent on the tools you are using.
Hope it can help you.
BR
XiangJun Rong