Hi Francesco,
I'm assuming that you're walking through this 'hello world' example. Please be aware that this application will be compiled to run on the Linux environment. As you can see from this page of supported processors, the BF506 is not supported to run Linux. You will need to use the bfin-elf-gcc compiler in order to build bare-metal applications that will run on your BF506. Finally, be very aware that building a bare metal application will not provide you with any driver support on the your processor.
In light of this, you may want to consider using Visual DSP++ or CCES to develop for your BF506.
Regards,
Andre.