AnsweredAssumed Answered

I'm getting a linker error when I include the "__cplb_ctrl" variable in a BF609 project.

Question asked by GregFowlerFAE Employee on May 14, 2012
Latest reply on May 15, 2012 by DavidS

Hello there!

 

I'm hoping that I'm missing something here? Are there any issues with using the "__cplb_ctrl" global variable used to configure the CPLBs for the BF60x family with CCES?

 

I've got a simple C program where I need to configure the data CPLBs for the BF609 processor (I'm using external memory and possibly will need to configure the data caches).

 

I've got an Ez-Board with the HPUSB emulator, running an emulator session with the latest version of the CCES tools. When I simply include the line "int __cplb_ctrl = CPLB_ENABLE_DCPLBS;" in my source program (including the <cplb.h> header file as well), the following linker error is generated:

 

cc3089: fatal error: Link failed

make: *** [BF609_Asymmetric_FFT_Core0.dxe] Error 1

 

If I remove the line that declares the "__cplb_ctrl" variable, no linker error is generated. Do you have any idea what is the cause of this??

 

 

Thanks in advance for your cooperation and assistance!

 

 

Best regards,

Greg

Outcomes