Compile error with SDK 1.2

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

I´m trying to compile my sync slave fifo application without modifications on the newest SDK version 1.2 but get the following error from the linker:

   

 

   

 C:\Cypress\EZ-USB FX3 SDK\1.2\\firmware\u3p_firmware\lib\fx3_debug\cyfxapi.a(cyu3usb.o): In function `CyU3PUsbJumpBackToBooter':
(.text+0x65c): undefined reference to `jump'
c:/cypress/ez-usb fx3 sdk/1.2/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/bin/ld.exe: SlaveFifoSync.elf: hidden symbol `jump' isn't defined

   

 

   

How can I fix this? The (new) 1.2 examples compile correctly, but the source from sdk 1.1.1 will not link.

0 Likes
12 Replies
PeWo_291316
Level 1
Level 1

Hi Chris,

   

I had to update the startup script, cyfx_gcc_startup.S in my project from one in the V1.2 examples, which  include the Jump definition

   

"

   

.global jump
jump:
    bx  R0

   

"

0 Likes
Anonymous
Not applicable

Ah, thank you, I will try this tomorrow.

   

Has anyone tested the 32 Bit sync slave FIFO with the 1.2 SDK? Is this bug fixed?

0 Likes
Anonymous
Not applicable

Not fixed. At least I'm unable to run 32-bit mode with example from sdk 1.2.

0 Likes
Anonymous
Not applicable

Guys,

   

Please change the starting piece of code in the main function as shown below:

   

CyU3PIoMatrixConfig_t io_cfg;
    CyU3PReturnStatus_t status = CY_U3P_SUCCESS;
    CyU3PSysClockConfig_t clkCfg = {
            CyTrue,
            2, 2, 2,
            CyFalse,
            CY_U3P_SYS_CLK
    };

    /* Initialize the device */
    status = CyU3PDeviceInit (&clkCfg);
    if (status != CY_U3P_SUCCESS)
    {
        goto handle_fatal_error;
    }

    /* Initialize the caches. Enable instruction cache and keep data cache disabled.
     * The data cache is useful only when there is a large amount of CPU based memory
     * accesses. When used in simple cases, it can decrease performance due to large
     * number of cache flushes and cleans and also it adds to the complexity of the
     * code. */

   

Let me know the result after doing this modification.

   

Thanks,

   

sai kirshna.

0 Likes
Anonymous
Not applicable
        Same problem occurred. Also,many link errors (undefined reference to `CyU3PGpioInit' etc...) happen. How can I build correctly the project from 1.1.1 on 1.2?   
0 Likes
Anonymous
Not applicable

Hi,

   

You have to do the following things:

   

 Try adding this in the linker paths - "${FX3_INSTALL_PATH}\firmware\u3p_firmware\lib\fx3_debug\cyu3lpp.a".

   

I am assuming that you have done the following thing:

   

change your cyfx_gcc_startup.S file according to the latest SDK.

   

Thanks,

   

sai krishna.

0 Likes
Anonymous
Not applicable
        It completely worked! Thank you for the quick response!   
0 Likes
Anonymous
Not applicable

work well with changing on startup.S . Thanks.

0 Likes
lechc_282591
Level 4
Level 4
    Hello, I have the same problem. I have added the linker path     "${FX3_INSTALL_PATH}\firmware\u3p_firmware\lib\fx3_debug\cyu3lpp.a".   
   
    and also the starting code in the main function   
   
     CyU3PReturnStatus_t status = CY_U3P_SUCCESS;   
   
         CyU3PSysClockConfig_t clkCfg = {   
   
                 CyTrue,   
   
                 2, 2, 2,   
   
                 CyFalse,   
   
                 CY_U3P_SYS_CLK   
   
         };   
   
         /* Initialize the device */   
   
     status = CyU3PDeviceInit (&clkCfg);   
   
    But the problem is still there. Some guys suggested modifying the     Jump definition in the cyfx_gcc_startup.S.      How to do that in detail? Thank you.   
0 Likes
Anonymous
Not applicable

Hi,

   

 

   

just add global jump after section text like....

   

 

   

.

   

.

   

.section .text
.code 32

.global jump
jump:
    bx  R0
.

   

.

   

in the cyfx_gxx.startup.S file

   

regards

   

lumpi
 

0 Likes
Anonymous
Not applicable

0 Likes
lechc_282591
Level 4
Level 4

Thank you very much

0 Likes