FreeRTOS CubeMX project doesn't build when imported into CrossWorks
So, for reference here, I am just a hobbyist that uses CrossWorks because I've always used it.
I decided to try FreeRTOS (I still intend to try CTL with a GD32) and my simple project to blink two LEDs in different tasks can be made to work using VSCode or STM32CubeIDE, but I just can't get it to build with CrossWorks. Is there a simple fix that someone could tell me?
The error is that it can't find portmap.h.
Thank you for reading this even if you don't reply.
Kindest Regards,
Jennifer Gunn.
-
I figured it out. The rule is not to use the version provided by CubeMX, but instead use the official version and don't forget to either pick or modify one of the heap_xx.c files, choose the correct port.c and portmacro.h for your MCU and rob then modify a FreeRTOSConfig.h or it'll not build. More confusingly, there's a world of configuration to wade through, which I'm still experimenting with so that I can get better insight into what the various tasks are doing etc.
I don't think I missed any steps I shared, but feel free to correct me if I forgot something.
CTL is the easier path in CrossWorks unless you need your code to support FreeRTOS but as I code for fun and learning, I'll be using both.
Please sign in to leave a comment.
Comments
1 comment