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

cross mob
WiHe_4600896
Level 1
Level 1

Hello, I've been trying to run unit tests for an embedded PSOC device, and i've been following this guide:

https://dmitryfrank.com/articles/unit_testing_embedded_c_applications

When I compile, it says I am missing cy_device_common.h, which I presume is the equivalent of xc.h in the

guide. If I create an empty dummy, the missing file error goes away but is replaced by a lot of other errors, culminating

in a ShellExecutionException and Ceedling failed error.

This is probably because the dummy is empty and I do not know what is needed in it for it to work. Does anyone know

what functions/defines need to be replaced (i.e. I know __STATIC_INLINE, __NO_RETURN, SFLASH need to be defined),

or know where I can find cy_device_common.h? Thank you.

0 Likes
1 Reply
Len_CONSULTRON
Level 9
Level 9
Beta tester 500 solutions authored 1000 replies posted

Hi WiHe,

Are you willing to share your project (before adding the cy_device_common.h) with the forum for others to reproduce the same error?

Len

Len
"Engineering is an Art. The Art of Compromise."
0 Likes