WOW, almost one month passed since this challenge started and I must say that I like this PSoC62. But, like any other new adventure, there are many new things to learn, and the road to the "FINISH" line fills up with traffic lights.
Now, it's about time to tidy up a bit the source code. Both cores need to access some common structures since I reserved a portion of SRAM as shared. The need is to create a common include folder for all those functions, macros, and definitions used by both cores.
As soon as the dual-core project is created the properties of the project and the make files are generated by the project creator, and in the project properties/build options, I see that the make file is not auto-generated. That makes sense, but what if I want to include my own external library? Usually, in Eclipse I have to add the folders/files to be included in the project within the "Tool settings":
But this tab only appears when the make file is auto-generated. OK, but if I enable the auto-generation the make files generated by the project creator are overwritten, and the compilation fails.
That said, I have to add includes and sources inside the make files, one by one, and add more when I write new ones inside my library. My question is if there is a smart way to include a folder with includes and sources in a dual-core project.
So now, I am stuck with creating my own library and adding it to my project somehow. Plan "B" is to replicate the same library in both projects, but of course, it's not elegant, moreover every time I modify something in the source code I have to update it in both projects.
I have the feeling that actually Eclipse is not really supported as it should be (like the problem of the cm0+ interrupts multiplexing in a dual-core project). Maybe is this a transition time from PSoC creator and Modustoolbox? I Don't know, but I think that the library manager should include an option for including a personal library in the mtb-shared project, and make it available for both cores.
Anyway, there's always a way out.
Top Comments