- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
my code builds and runs fine in "download run" configuration but the "-debug download" configuration is giving a build error.
Moreover, the error seems to be for Ethernet, which I am not even using.
The error happens in the linker so most likely some thing is missing but not sure what.
Has anybody seen this before?
Build Log (I removed the warnings about typecasting, unused variables, etc. which are the same regardless of debug):
12:24:32 **** Build of configuration Default for project 43xxx_Wi-Fi ****
"…43xxx_Wi-Fi\\make.exe" DB2.db2-CYW943907AEVAL1F-debug download
MAKEFILE MAKECMDGOALS=DB2.db2-CYW943907AEVAL1F-debug download OTA2_SUPPORT is disabled
Making config file for first time
+-----------------------------------------------------------------------------------------------------+
| IMPORTANT NOTES |
+-----------------------------------------------------------------------------------------------------+
| Wi-Fi MAC Address |
| The target Wi-Fi MAC address is defined in <WICED-SDK>/generated_mac_address.txt |
| Ensure each target device has a unique address. |
+-----------------------------------------------------------------------------------------------------+
| MCU & Wi-Fi Power Save |
| It is *critical* that applications using WICED Powersave API functions connect an accurate 32kHz |
| reference clock to the sleep clock input pin of the WLAN chip. Please read the WICED Powersave |
| Application Note located in the documentation directory if you plan to use powersave features. |
+-----------------------------------------------------------------------------------------------------+
MAKEFILE MAKECMDGOALS=DB2.db2-CYW943907AEVAL1F-debug download OTA2_SUPPORT is disabled
Building Bootloader waf.bootloader-NoOS-NoNS-CYW943907AEVAL1F-P103-SoC.43909
Building Tiny Bootloader waf.tiny_bootloader-NoOS-NoNS-CYW943907AEVAL1F-P103-SoC.43909
Building Serial Flash Loader App
prgm hdr cnt=3
total_size = 15492, entry_point = 0x696000
Loadsegment_offset = 0xA0 segment_size = 15256, segment_pad = 0
Loadsegment_offset = 0x3C40 segment_size = 32, segment_pad = 0
Loadsegment_offset = 0x3C68 segment_size = 204, segment_pad = 0
Finished Building Bootloader
Processing resources
Finished Building Tiny Bootloader
Creating security credentials
Making DCT image
Compiling apps_DB2_db2
Compiling Platform_CYW943907AEVAL1F_P103_B1
Compiling WICED
Compiling Lib_HTTP_Client
Compiling Lib_SNTP
Compiling Lib_cJSON
Compiling Lib_adc_MAX11615_driver
Compiling Lib_spdif_driver
Compiling WWD_ThreadX_Interface
Compiling WICED_ThreadX_Interface
Finished Building Serial Flash Loader App
Compiling WWD_for_SoC.43909_ThreadX
Compiling Supplicant_BESL
Compiling Lib_DNS
Compiling NetX_Duo
Compiling Lib_Wiced_RO_FS
Compiling MCU_BCM4390x
Compiling Lib_Linked_List
Compiling WICED_Lib_FileX_Interface
Compiling Lib_TLV
Compiling Lib_base64
Compiling Lib_mbedTLS
Compiling Lib_micro_ecc
Compiling WWD_NetX_Duo_Interface
Compiling WICED_NetX_Duo_Interface
Compiling Lib_crc
Compiling Lib_GPIO_button
Compiling common_GCC
Compiling 43909_Peripheral_Drivers
Compiling Lib_Ring_Buffer
Compiling Lib_DHCP_Server
Compiling SPI_Flash_43909_Library_CYW943907AEVAL1F
Compiling Uart_43909_Library_CYW943907AEVAL1F
Compiling Peripherals_Shared_43909_Library_CYW943907AEVAL1F
Compiling Tiny_Crypto_43909_Library_CYW943907AEVAL1F
Compiling SDIO_Host_43909_Library_CYW943907AEVAL1F
Compiling Ethernet_43909_Library_CYW943907AEVAL1F
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/apps_DB2_db2.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Platform_CYW943907AEVAL1F_P103_B1.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/WICED.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Lib_HTTP_Client.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Lib_SNTP.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Lib_cJSON.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Lib_adc_MAX11615_driver.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Lib_spdif_driver.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/WWD_ThreadX_Interface.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/WICED_ThreadX_Interface.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/WWD_for_SoC.43909_ThreadX.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Supplicant_BESL.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Lib_DNS.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/NetX_Duo.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Lib_Wiced_RO_FS.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/MCU_BCM4390x.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Lib_Linked_List.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/WICED_Lib_FileX_Interface.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Lib_TLV.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Lib_mbedTLS.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Lib_base64.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Lib_micro_ecc.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/WWD_NetX_Duo_Interface.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/WICED_NetX_Duo_Interface.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Lib_crc.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Lib_GPIO_button.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/common_GCC.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/43909_Peripheral_Drivers.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Lib_Ring_Buffer.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Lib_DHCP_Server.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/SPI_Flash_43909_Library_CYW943907AEVAL1F.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Uart_43909_Library_CYW943907AEVAL1F.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Peripherals_Shared_43909_Library_CYW943907AEVAL1F.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Tiny_Crypto_43909_Library_CYW943907AEVAL1F.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/SDIO_Host_43909_Library_CYW943907AEVAL1F.a
Making build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Ethernet_43909_Library_CYW943907AEVAL1F.a
Making DB2.db2-CYW943907AEVAL1F-debug.elf
build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Ethernet_43909_Library_CYW943907AEVAL1F.a(etc.o): In function `etc_ioctl':
{project}\Software\Code\43xxx_Wi-Fi/WICED/platform/MCU/BCM4390x/peripherals/ethernet/etc.c:574: undefined reference to `et_dump'
build/DB2.db2-CYW943907AEVAL1F-debug/libraries/Ethernet_43909_Library_CYW943907AEVAL1F.a(etcgmac.o): In function `gmac_mf_add':
{project}\Software\Code\43xxx_Wi-Fi/WICED/platform/MCU/BCM4390x/peripherals/ethernet/etcgmac.c:1304: undefined reference to `bcm_ether_ntoa'
collect2.exe: error: ld returned 1 exit status
tools/makefiles/wiced_elf.mk:315: recipe for target 'build/DB2.db2-CYW943907AEVAL1F-debug/binary/DB2.db2-CYW943907AEVAL1F-debug.elf' failed
- make.exe[1]: *** [build/DB2.db2-CYW943907AEVAL1F-debug/binary/DB2.db2-CYW943907AEVAL1F-debug.elf] Error 1
Makefile:351: recipe for target 'main_app' failed
make: *** [main_app] Error 2
12:26:21 Build Finished (took 1m:49s.219ms)
Solved! Go to Solution.
- Labels:
-
WICED Studio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you defined BCMDBG macro as a part of your application or anywhere? If you don't need ethernet for your application and need to make use of BCMDBG macro, there are plenty of ways to go around this error. For instance, you can use PLATFORM_NO_GMAC=1 in your application makefile.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you defined BCMDBG macro as a part of your application or anywhere? If you don't need ethernet for your application and need to make use of BCMDBG macro, there are plenty of ways to go around this error. For instance, you can use PLATFORM_NO_GMAC=1 in your application makefile.