Build Error -1073741790

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

cross mob
doch_3739346
Level 4
Level 4

Hi,

When first time run "Build Project", it reports: cs-make: *** [cyfxslfifosync.o] Error -1073741790, but if click "Build Project" again, it can generate img without error. How to solve this issue?

Project source files are imported from example SlaveFifoSync, nothing changed except cyfxgpif2config.h. It's using customized gpif config.

Thanks!

First run log:

09:23:45 **** Build of configuration Debug for project SlaveFifoSync ****

cs-make all

'Building file: ../cyfx_gcc_startup.S'

'Invoking: ARM Sourcery Windows GCC Assembler'

arm-none-eabi-gcc -x assembler-with-cpp -I"C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\\firmware\u3p_firmware\inc" -Wall -Wa,-adhlns="cyfx_gcc_startup.o.lst" -c -fmessage-length=0 -MMD -MP -MF"cyfx_gcc_startup.d" -MT"cyfx_gcc_startup.d" -mcpu=arm926ej-s -mthumb-interwork -g -gdwarf-2 -o "cyfx_gcc_startup.o" "../cyfx_gcc_startup.S"

'Finished building: ../cyfx_gcc_startup.S'

' '

'Building file: ../cyfxslfifosync.c'

'Invoking: ARM Sourcery Windows GCC C Compiler'

arm-none-eabi-gcc -D__CYU3P_TX__=1 -I"C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\\firmware\u3p_firmware\inc" -I"..\." -O0 -Wall -Wa,-adhlns="cyfxslfifosync.o.lst" -c -fmessage-length=0 -MMD -MP -MF"cyfxslfifosync.d" -MT"cyfxslfifosync.d" -mcpu=arm926ej-s -mthumb-interwork -g -gdwarf-2 -o "cyfxslfifosync.o" "../cyfxslfifosync.c"

cs-make: *** [cyfxslfifosync.o] Error -1073741790

09:23:49 Build Finished (took 3s.625ms)

Second run log:

09:24:38 **** Incremental Build of configuration Debug for project SlaveFifoSync ****

cs-make all

'Building file: ../cyfxslfifosync.c'

'Invoking: ARM Sourcery Windows GCC C Compiler'

arm-none-eabi-gcc -D__CYU3P_TX__=1 -I"C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\\firmware\u3p_firmware\inc" -I"..\." -O0 -Wall -Wa,-adhlns="cyfxslfifosync.o.lst" -c -fmessage-length=0 -MMD -MP -MF"cyfxslfifosync.d" -MT"cyfxslfifosync.d" -mcpu=arm926ej-s -mthumb-interwork -g -gdwarf-2 -o "cyfxslfifosync.o" "../cyfxslfifosync.c"

../cyfxslfifosync.c: In function 'CyFxSlFifoUtoPDmaCallback':

../cyfxslfifosync.c:175:13: warning: implicit declaration of function 'CyU3PDebugPrint' [-Wimplicit-function-declaration]

...

'Finished building target: SlaveFifoSync.elf'

' '

cs-make --no-print-directory post-build

'Converting ELF to image (.img) format'

"C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\\util\elf2img\elf2img.exe" -i SlaveFifoSync.elf -o SlaveFifoSync.img

Note: 256 bytes of interrupt vector code have been removed from the image.

      Use the "-vectorload yes" option to retain this code.

' '

'Invoking: ARM Sourcery Windows GNU Create Listing'

arm-none-eabi-objdump -h -S SlaveFifoSync.elf > "SlaveFifoSync.lst"

'Finished building: SlaveFifoSync.lst'

' '

'Invoking: ARM Sourcery Windows GNU Print Size'

arm-none-eabi-size  --format=berkeley SlaveFifoSync.elf

   text        data         bss         dec         hex     filename

156332        1176        6292 163800       27fd8     SlaveFifoSync.elf

'Finished building: SlaveFifoSync.siz'

' '

09:24:58 Build Finished (took 19s.224ms)

0 Likes
1 Solution

I don't face any problem. This project could be compiled normally. Please check the below output.

20:37:26 **** Clean-only build of configuration Debug for project SlaveFifoSync ****

cs-make clean

cs-rm -rf  SlaveFifoSync.siz  ./cyfx_gcc_startup.o ./cyfxslfifosync.o ./cyfxslfifousbdscr.o ./cyfxtx.o  ./cyfxslfifosync.d ./cyfxslfifousbdscr.d ./cyfxtx.d  SlaveFifoSync.lst  ./cyfx_gcc_startup.d  SlaveFifoSync.elf

' '

20:37:28 Build Finished (took 1s.132ms)

20:37:29 **** Build of configuration Debug for project SlaveFifoSync ****

cs-make all

'Building file: ../cyfx_gcc_startup.S'

'Invoking: ARM Sourcery Windows GCC Assembler'

arm-none-eabi-gcc -x assembler-with-cpp -I"E:\D\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\\firmware\u3p_firmware\inc" -Wall -Wa,-adhlns="cyfx_gcc_startup.o.lst" -c -fmessage-length=0 -MMD -MP -MF"cyfx_gcc_startup.d" -MT"cyfx_gcc_startup.d" -mcpu=arm926ej-s -mthumb-interwork -g -gdwarf-2 -o "cyfx_gcc_startup.o" "../cyfx_gcc_startup.S"

'Finished building: ../cyfx_gcc_startup.S'

' '

'Building file: ../cyfxslfifosync.c'

'Invoking: ARM Sourcery Windows GCC C Compiler'

arm-none-eabi-gcc -D__CYU3P_TX__=1 -I"E:\D\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\\firmware\u3p_firmware\inc" -I"..\." -O0 -Wall -Wa,-adhlns="cyfxslfifosync.o.lst" -c -fmessage-length=0 -MMD -MP -MF"cyfxslfifosync.d" -MT"cyfxslfifosync.d" -mcpu=arm926ej-s -mthumb-interwork -g -gdwarf-2 -o "cyfxslfifosync.o" "../cyfxslfifosync.c"

In file included from ../cyfxslfifosync.c:80:0:

../cyfxgpif2config.h:88:7: warning: extra tokens at end of #else directive [enabled by default]

#else if (CY_FX_SLFIFO_GPIF_16_32BIT_CONF_SELECT ==1)

       ^

../cyfxslfifosync.c: In function 'CyFxSlFifoApplnInit':

../cyfxslfifosync.c:684:5: warning: passing argument 2 of 'CyU3PUsbSetDesc' makes integer from pointer without a cast [enabled by default]

     apiRetStatus = CyU3PUsbSetDesc(CY_U3P_USB_SET_SS_DEVICE_DESCR, NULL, (uint8_t *)CyFxUSB30DeviceDscr);

     ^

In file included from ../cyfxslfifosync.c:68:0:

E:\D\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\\firmware\u3p_firmware\inc/cyu3usb.h:698:1: note: expected 'uint8_t' but argument is of type 'void *'

CyU3PUsbSetDesc (

^

../cyfxslfifosync.c:692:5: warning: passing argument 2 of 'CyU3PUsbSetDesc' makes integer from pointer without a cast [enabled by default]

     apiRetStatus = CyU3PUsbSetDesc(CY_U3P_USB_SET_HS_DEVICE_DESCR, NULL, (uint8_t *)CyFxUSB20DeviceDscr);

     ^

In file included from ../cyfxslfifosync.c:68:0:

E:\D\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\\firmware\u3p_firmware\inc/cyu3usb.h:698:1: note: expected 'uint8_t' but argument is of type 'void *'

CyU3PUsbSetDesc (

^

../cyfxslfifosync.c:700:5: warning: passing argument 2 of 'CyU3PUsbSetDesc' makes integer from pointer without a cast [enabled by default]

     apiRetStatus = CyU3PUsbSetDesc(CY_U3P_USB_SET_SS_BOS_DESCR, NULL, (uint8_t *)CyFxUSBBOSDscr);

     ^

In file included from ../cyfxslfifosync.c:68:0:

E:\D\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\\firmware\u3p_firmware\inc/cyu3usb.h:698:1: note: expected 'uint8_t' but argument is of type 'void *'

CyU3PUsbSetDesc (

^

../cyfxslfifosync.c:708:5: warning: passing argument 2 of 'CyU3PUsbSetDesc' makes integer from pointer without a cast [enabled by default]

     apiRetStatus = CyU3PUsbSetDesc(CY_U3P_USB_SET_DEVQUAL_DESCR, NULL, (uint8_t *)CyFxUSBDeviceQualDscr);

     ^

In file included from ../cyfxslfifosync.c:68:0:

E:\D\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\\firmware\u3p_firmware\inc/cyu3usb.h:698:1: note: expected 'uint8_t' but argument is of type 'void *'

CyU3PUsbSetDesc (

^

../cyfxslfifosync.c:716:5: warning: passing argument 2 of 'CyU3PUsbSetDesc' makes integer from pointer without a cast [enabled by default]

     apiRetStatus = CyU3PUsbSetDesc(CY_U3P_USB_SET_SS_CONFIG_DESCR, NULL, (uint8_t *)CyFxUSBSSConfigDscr);

     ^

In file included from ../cyfxslfifosync.c:68:0:

E:\D\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\\firmware\u3p_firmware\inc/cyu3usb.h:698:1: note: expected 'uint8_t' but argument is of type 'void *'

CyU3PUsbSetDesc (

^

../cyfxslfifosync.c:724:5: warning: passing argument 2 of 'CyU3PUsbSetDesc' makes integer from pointer without a cast [enabled by default]

     apiRetStatus = CyU3PUsbSetDesc(CY_U3P_USB_SET_HS_CONFIG_DESCR, NULL, (uint8_t *)CyFxUSBHSConfigDscr);

     ^

In file included from ../cyfxslfifosync.c:68:0:

E:\D\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\\firmware\u3p_firmware\inc/cyu3usb.h:698:1: note: expected 'uint8_t' but argument is of type 'void *'

CyU3PUsbSetDesc (

^

../cyfxslfifosync.c:732:5: warning: passing argument 2 of 'CyU3PUsbSetDesc' makes integer from pointer without a cast [enabled by default]

     apiRetStatus = CyU3PUsbSetDesc(CY_U3P_USB_SET_FS_CONFIG_DESCR, NULL, (uint8_t *)CyFxUSBFSConfigDscr);

     ^

In file included from ../cyfxslfifosync.c:68:0:

E:\D\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\\firmware\u3p_firmware\inc/cyu3usb.h:698:1: note: expected 'uint8_t' but argument is of type 'void *'

CyU3PUsbSetDesc (

^

'Finished building: ../cyfxslfifosync.c'

' '

'Building file: ../cyfxslfifousbdscr.c'

'Invoking: ARM Sourcery Windows GCC C Compiler'

arm-none-eabi-gcc -D__CYU3P_TX__=1 -I"E:\D\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\\firmware\u3p_firmware\inc" -I"..\." -O0 -Wall -Wa,-adhlns="cyfxslfifousbdscr.o.lst" -c -fmessage-length=0 -MMD -MP -MF"cyfxslfifousbdscr.d" -MT"cyfxslfifousbdscr.d" -mcpu=arm926ej-s -mthumb-interwork -g -gdwarf-2 -o "cyfxslfifousbdscr.o" "../cyfxslfifousbdscr.c"

'Finished building: ../cyfxslfifousbdscr.c'

' '

'Building file: ../cyfxtx.c'

'Invoking: ARM Sourcery Windows GCC C Compiler'

arm-none-eabi-gcc -D__CYU3P_TX__=1 -I"E:\D\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\\firmware\u3p_firmware\inc" -I"..\." -O0 -Wall -Wa,-adhlns="cyfxtx.o.lst" -c -fmessage-length=0 -MMD -MP -MF"cyfxtx.d" -MT"cyfxtx.d" -mcpu=arm926ej-s -mthumb-interwork -g -gdwarf-2 -o "cyfxtx.o" "../cyfxtx.c"

'Finished building: ../cyfxtx.c'

' '

'Building target: SlaveFifoSync.elf'

'Invoking: ARM Sourcery Windows GCC C Linker'

arm-none-eabi-gcc  ./cyfx_gcc_startup.o ./cyfxslfifosync.o ./cyfxslfifousbdscr.o ./cyfxtx.o    -T"E:\D\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\/firmware/common/fx3.ld" -nostartfiles -Wl,-Map,SlaveFifoSync.map -Wl,-d -Wl,--no-wchar-size-warning -Wl,--entry,CyU3PFirmwareEntry "E:\D\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\\firmware\u3p_firmware\lib\fx3_debug\cyfxapi.a" "E:\D\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\\firmware\u3p_firmware\lib\fx3_debug\cyu3lpp.a" "E:\D\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\\firmware\u3p_firmware\lib\fx3_debug\cyu3threadx.a"  "E:\D\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\ARM GCC\\arm-none-eabi\lib\libc.a" "E:\D\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\ARM GCC\\lib\gcc\arm-none-eabi\4.8.1\libgcc.a" -mcpu=arm926ej-s -mthumb-interwork -g -gdwarf-2 -o"SlaveFifoSync.elf"

'Finished building target: SlaveFifoSync.elf'

' '

cs-make --no-print-directory post-build

'Converting ELF to image (.img) format'

"E:\D\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\\util\elf2img\elf2img.exe" -i SlaveFifoSync.elf -o SlaveFifoSync.img

Note: 256 bytes of interrupt vector code have been removed from the image.

      Use the "-vectorload yes" option to retain this code.

' '

'Invoking: ARM Sourcery Windows GNU Create Listing'

arm-none-eabi-objdump -h -S SlaveFifoSync.elf > "SlaveFifoSync.lst"

'Finished building: SlaveFifoSync.lst'

' '

'Invoking: ARM Sourcery Windows GNU Print Size'

arm-none-eabi-size  --format=berkeley SlaveFifoSync.elf

   text    data     bss     dec     hex filename

150764    1420    6132 158316   26a6c SlaveFifoSync.elf

'Finished building: SlaveFifoSync.siz'

' '

20:37:42 Build Finished (took 13s.41ms)

View solution in original post

0 Likes
8 Replies