I2CEEBlockDevice

I’m receiving the following error when compiling in 6.2.1 and 6.3.0. It compiles fine in 6.2.0, I am using :

I2CEEBlockDevice i2cee(PB_9, PB_8, 0xA0, 512*1024, BLOCK_SIZE);

Compile [ 3.0%]: I2CEEBlockDevice.cpp
[Fatal Error] I2CEEBlockDevice.h@20,10: ‘features/storage/blockdevice/BlockDevice.h’ file not found
[ERROR] In file included from .\I2CEEBlockDevice.cpp:17:
./I2CEEBlockDevice.h:20:10: fatal error: ‘features/storage/blockdevice/BlockDevice.h’ file not found
#include “features/storage/blockdevice/BlockDevice.h”

Hello,

I have no personal experience with the I2CEEBlockDevice but it seems the I2CEEBlockDevice was moved from the folder mbed-os/features/storage... to mbed-os/storage... and so on.

And because the folder name COMPONENT_I2CEE has a prefix COMPONENT, I think you also need to add the component in the mbed_app.json.

{
    "target_overrides": {
        "*": {
            "target.components_add": ["I2CEE"]
        }
    }
}

BR , Jan

1 Like