Somewhere in the documentation it says that CY_USING_HAL is enabled by default. So why don't the definitions from the device configurator for the pin assignments below "#if defined (CY_USING_HAL)" work? I have:
When I setup the freeRTOS example I get an error if I use "GREEN_LED".
If I replace "GREEN_LED" with "P8_3" it works, no errors or warnings. I tried looking for "#define CY_USING_HAL" but I didn't see it anywhere. So how/where is CY_USING_HAL enabled/defined?
Can you please try including CY_USING_HAL in the DEFINES section in the Makefile as shown? Please build the project after adding it and see if the problem persists.
Can you also specify which FreeRTOS code example you are using?
Thanks and Regards,
Adding CY_USING_HAL to the DEFINES in the makefile did not work.
I created an empty dual core project and added the freeRTOS to the cm4 core using the library manager. Then use the instructions here to get freeRTOS to work.
I have recreated the FreeRTOS project from my side using empty dual core project, but everything works fine from my side. Can you please share your project to recreate the issue from my side? Also, can you verify whether you have included the "cybsp.h" header file in your main.c file in cm4 project? If not please include it by adding:
in your main.c file in your cm4 project.
Thanks and Regards,
I couldn't upload the project because of an NDA so I recreated the FreeRTOS project using the empty dual core project again so I could upload that. But this time it worked so I went back to the original project and I just forced a saved of the device configurator file (without changing anything). It started to get a "flash doesn't fit in section ..." error. So I increased the flash (and RAM), clean all, rebuild and the problem seems to have gone away. I've erased and recreated the same project like 10 times now so I'm not really sure what worked ...LOL. But I'm good. Thanks.