I just updated to the latest libraries, and ModusToolbox 2.4, and ran into problems. I tracked them down to the fact that compile_commands.json no longer includes "-DCOMPONENT_CAT1" as part of the compiler command line. It used to define both COMPONENT_CAT1 and COMPONENT_CAT1A, but now only defines COMPONENT_CAT1A.
This breaks, among other things, _cyhal_utils_get_clock_count(), which now returns a value of 1 for all clock types.
I've worked around the problem by adding "CAT1" to the definition of COMPONENTS in my Makefile, but clearly that's not how it's supposed to work.
What happened? Did I do something wrong, or fail to follow some update procedure, or is this an oversight by Cypress developers?
Solved! Go to Solution.
PSoC 6 MCU
Hi @NiBu_4687336 ,
Glad your issue is resolved and thank you for sharing the solution with the community!
The major version changes in the libraries are not backward compatible, like v1.x.x to 2.x.x.