7 years, 7 months ago.

mbed-src Incomplete type is not allowed "can_t _can"

Trying use EEprom emulation AN2594 Library with STM32F103RB nucleo compiler stops with error

Error: Incomplete type is not allowed in "mbed-src/api/CAN.h", Line: 235, Col: 22

I'm not using the CAN in this project .What I can Do to avoid this?

1 Answer

7 years, 7 months ago.

First, use the mbed-dev instead of mbed-src (it is not updated for a long time, deprecated).

I know this error. I had problems with it in a slightly different context: https://developer.mbed.org/users/mega64/notebook/error-incomplete-type-is-not-allowed-in-mbed-stm32/

The reason for this error is a collision between the changed settings (compilation flags) in online mbed compiler and settings in the sources.