FRDM_K64F + X_NUCLEO_IHM02A1 (Dual Stepper Motor Control Expansion Board)

Hi mbed ladies and gentleman’s,

I try to use ST X_NUCLEO_IHM02A1 expansion board for XY plotter with 2 stepper motors with NXP FRDM_K64F board

https://os.mbed.com/platforms/FRDM-K64F/
https://os.mbed.com/teams/ST/code/X_NUCLEO_IHM02A1/

And, when I try to run “Hello world” for this extension board I got error, what is over me.
But with NUCLEO_F401 I have no issue.

Error: Typedef redefinition with different types (‘enum status_t’ vs ‘std::int32_t’ (aka ‘int’)) in “X_NUCLEO_IHM02A1/Components/Common/component_def.h”, Line: 89, Col: 3

in module: component_def.h

typedef enum
{
    COMPONENT_OK = 0,
    COMPONENT_ERROR,
    COMPONENT_TIMEOUT,
    COMPONENT_NOT_IMPLEMENTED
} status_t;

can you help me with this?

thank you.
m.

Ahoj,

the error says to you about the typedef status_t are declared at two places

I do not know what is simplest but a solution may be to rename all occurrences status_t to some different name in the library of X-Nucleo.

BR, Jan

Thank you Jan, that’s help.

:+1: