cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Studio Wi-Fi Combo

Honored Contributor

WICED/platform/MCU/STM32F4xx/peripherals/platform_rtc.c:78:71: error: unknown type name 'wiced_rtc_time_t'

static void              add_second_to_time                         ( wiced_rtc_time_t* time );

                                                                       ^

WICED/platform/MCU/STM32F4xx/peripherals/platform_rtc.c:79:71: error: unknown type name 'wiced_rtc_time_t'

static void              subtract_second_from_time                  ( wiced_rtc_time_t* time );

                                                                       ^

WICED/platform/MCU/STM32F4xx/peripherals/platform_rtc.c:445:33: error: unknown type name 'wiced_rtc_time_t'

static void add_second_to_time( wiced_rtc_time_t* time )

                                 ^

WICED/platform/MCU/STM32F4xx/peripherals/platform_rtc.c:529:40: error: unknown type name 'wiced_rtc_time_t'

static void subtract_second_from_time( wiced_rtc_time_t* time )

                                        ^

WICED/platform/MCU/STM32F4xx/peripherals/platform_rtc.c: In function 'compensate_time_error':

WICED/platform/MCU/STM32F4xx/peripherals/platform_rtc.c:620:13: warning: implicit declaration of function 'add_second_to_time' [-Wimplicit-function-declaration]

             add_second_to_time(&saved_rtc_time);

             ^

WICED/platform/MCU/STM32F4xx/peripherals/platform_rtc.c:628:13: warning: implicit declaration of function 'subtract_second_from_time' [-Wimplicit-function-declaration]

             subtract_second_from_time(&saved_rtc_time);

             ^

make[1]: *** [build/ingics.ble_wifi_ota-FreeRTOS-LwIP-IGS02/Modules/WICED/platform/MCU/STM32F4xx/peripherals/platform_rtc.o] Error 1

make[1]: *** Waiting for unfinished jobs....

make: *** [main_app] Error 2

0 Likes
Reply
1 Solution
Honored Contributor

The fix is pretty trivial by replacing wiced_rtc_time_t with platform_rtc_time_t.

grsr

View solution in original post

0 Likes
Reply
3 Replies
Honored Contributor

The fix is pretty trivial by replacing wiced_rtc_time_t with platform_rtc_time_t.

grsr

View solution in original post

0 Likes
Reply
Moderator
Moderator

We have already noted this issue and raised a ticket regarding the same. Thanks for bringing it to our notice and providing a workaround as well.

Another workaround for the same issue is to include the header file wiced_platform.h, inside wiced_rtc_time.c, for STM32F4xx platforms where the typecasting is already done.

0 Likes
Reply
Honored Contributor

Still hit the same compile error in sdk-6.0.0.

It's so strange that even you know how to fix it, you don't fix it in new sdk release.

0 Likes
Reply