Failing to build


#1

I’m new to the WICED Studio 4.0 and could use some help.

I’ve followed all of the instructions from the site:
https://github.com/redbear/WICED-SDK

However, when I try to build the blink project for example I get the following errors:
12:55:02 **** Build of configuration Default for project 43xxx_Wi-Fi **** /Users/cranshark/Documents/WICED/WICED-Studio-4.0/43xxx_Wi-Fi/make redbear.blink-RB_DUO JTAG=RBLINK download run MAKEFILE MAKECMDGOALS=redbear.blink-RB_DUO download run OTA2_SUPPORT is disabled Building Bootloader platforms/RB_DUO/platform.c:254:7: error: unknown type name 'platform_i2s_t' const platform_i2s_t platform_i2s_peripherals[] = ^ platforms/RB_DUO/platform.c:257:5: warning: braces around scalar initializer { ^ platforms/RB_DUO/platform.c:257:5: warning: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:258:9: error: field name not in record or union initializer .spi = SPI3, ^ platforms/RB_DUO/platform.c:258:9: error: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:258:9: warning: initialization makes integer from pointer without a cast platforms/RB_DUO/platform.c:258:9: warning: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:260:9: error: field name not in record or union initializer .is_master = 0, ^ platforms/RB_DUO/platform.c:260:9: error: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:260:9: warning: excess elements in scalar initializer platforms/RB_DUO/platform.c:260:9: warning: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:261:9: error: field name not in record or union initializer .enable_mclk = 0, ^ platforms/RB_DUO/platform.c:261:9: error: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:261:9: warning: excess elements in scalar initializer platforms/RB_DUO/platform.c:261:9: warning: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:266:9: error: field name not in record or union initializer .gpio_af = GPIO_AF_SPI3, ^ platforms/RB_DUO/platform.c:266:9: error: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:266:9: warning: excess elements in scalar initializer platforms/RB_DUO/platform.c:266:9: warning: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:267:9: error: field name not in record or union initializer .peripheral_clock = RCC_APB1Periph_SPI3, ^ platforms/RB_DUO/platform.c:267:9: error: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:267:9: warning: excess elements in scalar initializer platforms/RB_DUO/platform.c:267:9: warning: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:268:9: error: field name not in record or union initializer .peripheral_clock_func = RCC_APB1PeriphClockCmd, ^ platforms/RB_DUO/platform.c:268:9: error: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:268:9: warning: excess elements in scalar initializer platforms/RB_DUO/platform.c:268:9: warning: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:269:9: error: field name not in record or union initializer .pin_ck = &platform_gpio_pins[WICED_GPIO_5], // Fake pins for temporary ^ platforms/RB_DUO/platform.c:269:9: error: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:269:9: warning: excess elements in scalar initializer platforms/RB_DUO/platform.c:269:9: warning: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:270:9: error: field name not in record or union initializer .pin_sd = &platform_gpio_pins[WICED_GPIO_3], ^ platforms/RB_DUO/platform.c:270:9: error: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:270:9: warning: excess elements in scalar initializer platforms/RB_DUO/platform.c:270:9: warning: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:271:9: error: field name not in record or union initializer .pin_ws = &platform_gpio_pins[WICED_GPIO_6], ^ platforms/RB_DUO/platform.c:271:9: error: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:271:9: warning: excess elements in scalar initializer platforms/RB_DUO/platform.c:271:9: warning: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:272:9: error: field name not in record or union initializer .pin_mclk = &platform_gpio_pins[WICED_GPIO_MAX], ^ platforms/RB_DUO/platform.c:272:9: error: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:272:9: warning: excess elements in scalar initializer platforms/RB_DUO/platform.c:272:9: warning: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:273:9: error: field name not in record or union initializer .tx_dma.dma_register = DMA1, ^ platforms/RB_DUO/platform.c:273:9: error: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:273:9: warning: excess elements in scalar initializer platforms/RB_DUO/platform.c:273:9: warning: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:274:9: error: field name not in record or union initializer .tx_dma.stream = DMA1_Stream7, ^ platforms/RB_DUO/platform.c:274:9: error: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:274:9: warning: excess elements in scalar initializer platforms/RB_DUO/platform.c:274:9: warning: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:275:9: error: field name not in record or union initializer .tx_dma.channel = DMA_Channel_0, ^ platforms/RB_DUO/platform.c:275:9: error: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:275:9: warning: excess elements in scalar initializer platforms/RB_DUO/platform.c:275:9: warning: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:276:9: error: field name not in record or union initializer .tx_dma.peripheral_clock = RCC_AHB1Periph_DMA1, ^ platforms/RB_DUO/platform.c:276:9: error: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:276:9: warning: excess elements in scalar initializer platforms/RB_DUO/platform.c:276:9: warning: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:277:9: error: field name not in record or union initializer .tx_dma.peripheral_clock_func = RCC_AHB1PeriphClockCmd, ^ platforms/RB_DUO/platform.c:277:9: error: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:277:9: warning: excess elements in scalar initializer platforms/RB_DUO/platform.c:277:9: warning: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:278:9: error: field name not in record or union initializer .tx_dma.irq = DMA1_Stream7_IRQn, ^ platforms/RB_DUO/platform.c:278:9: error: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:278:9: warning: excess elements in scalar initializer platforms/RB_DUO/platform.c:278:9: warning: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:279:9: error: field name not in record or union initializer .rx_dma.dma_register = DMA1, ^ platforms/RB_DUO/platform.c:279:9: error: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:279:9: warning: excess elements in scalar initializer platforms/RB_DUO/platform.c:279:9: warning: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:280:9: error: field name not in record or union initializer .rx_dma.stream = DMA1_Stream2, ^ platforms/RB_DUO/platform.c:280:9: error: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:280:9: warning: excess elements in scalar initializer platforms/RB_DUO/platform.c:280:9: warning: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:281:9: error: field name not in record or union initializer .rx_dma.channel = DMA_Channel_0, ^ platforms/RB_DUO/platform.c:281:9: error: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:281:9: warning: excess elements in scalar initializer platforms/RB_DUO/platform.c:281:9: warning: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:282:9: error: field name not in record or union initializer .rx_dma.peripheral_clock = RCC_AHB1Periph_DMA1, ^ platforms/RB_DUO/platform.c:282:9: error: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:282:9: warning: excess elements in scalar initializer platforms/RB_DUO/platform.c:282:9: warning: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:283:9: error: field name not in record or union initializer .rx_dma.peripheral_clock_func = RCC_AHB1PeriphClockCmd, ^ platforms/RB_DUO/platform.c:283:9: error: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:283:9: warning: excess elements in scalar initializer platforms/RB_DUO/platform.c:283:9: warning: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:284:9: error: field name not in record or union initializer .rx_dma.irq = DMA1_Stream2_IRQn, ^ platforms/RB_DUO/platform.c:284:9: error: (near initialization for 'platform_i2s_peripherals[0]') platforms/RB_DUO/platform.c:284:9: warning: excess elements in scalar initializer platforms/RB_DUO/platform.c:284:9: warning: (near initialization for 'platform_i2s_peripherals[0]') make[3]: *** [build/waf.bootloader-NoOS-RB_DUO/Modules/platforms/RB_DUO/platform.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [main_app] Error 2 make[1]: *** [bootloader] Error 2 make: *** [main_app] Error 2


#2

Have you merged this file to the WICED Studio SDK?

Essentially, you need to merge all of these files in order to build WICED applications for the RedBear Duo without errors.


#3

Thank you for your quick response. Yes, I merged the files but am getting build errors. I merged again upon getting your message and still have errors building.

I appreciate your help.


#4

Please confirm this file in your SDK:

https://github.com/redbear/WICED-SDK/blob/master/WICED-Studio-4.0/43xxx_Wi-Fi/WICED/platform/MCU/STM32F2xx/peripherals/platform_mcu_peripheral.h#L227


#5

No, the file in my WICED SDK directory was incorrect. I copied over the file from the Redbear site https://github.com/redbear/WICED-SDK. It appears to build now.

Thank you!