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

Wi-Fi Combo Forum Discussions

AxLi_1746341
Level 7
Level 7
10 comments on KBA 5 comments on KBA First comment on KBA

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
1 Solution
AxLi_1746341
Level 7
Level 7
10 comments on KBA 5 comments on KBA First comment on KBA

The fix is pretty trivial by replacing wiced_rtc_time_t with platform_rtc_time_t.

grsr

View solution in original post

0 Likes
3 Replies
AxLi_1746341
Level 7
Level 7
10 comments on KBA 5 comments on KBA First comment on KBA

The fix is pretty trivial by replacing wiced_rtc_time_t with platform_rtc_time_t.

grsr

0 Likes

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

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