Modus Toolbox and Cmake for PSoC4

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

cross mob
bharath_tf
Level 1
Level 1
First reply posted First question asked Welcome!

Hi,

We are trying to create a build environment for a project which uses PSoC 4 4100. We want to be able to use Modus Toolbox IDE for development. We also would like the project have a cmake build if we need to continue application development of the project outside of Modus Toolbox IDE. 

From our exploration, we find that Modus Toolbox supports toolchain to be used with cmake but does not use cmake inside of the IDE.

1. Can we use Modus Toolbox IDE with cmake build environment instead of auto generated make file?

2. If we need to setup a cmake build environment, do we need to manually write a cmake file? are there any resources to generate cmake from Modus Toolbox project?

0 Likes
1 Solution
AlenAn14
Moderator
Moderator
Moderator
500 replies posted 100 solutions authored 250 replies posted

Hi @bharath_tf ,

Unfortunately, ModusToolbox does not have a provision for CMake as I have mentioned before and as for the Eclipse IDE, we have not tested the possiblity to hook in a CMake based flow into eclipse (there may be some plugins) but it probably won't integrate well with the quick panel of ModusToolbox.

As an alternative you maybe can take a look at the following github link for refernce to CMake based projects for PSoC:

http://github.com/medvid/psoc4.cmake

It is compatible with all ModusToolbox BSPs, middleware and code examples.

It integrates nicely with Visual Studio code and its great CMake plugin. Program/Debug also works with both OpenOCD and JLink.

Of course there is zero integration with ModusToolbox “make” targets, Eclipse quick launch panel shortcuts etc..

Maybe this is useful for you.
Note it is provided as “open-source” with zero support.

Warm Regards
Alen

View solution in original post

0 Likes
3 Replies
AlenAn14
Moderator
Moderator
Moderator
500 replies posted 100 solutions authored 250 replies posted

Hi @bharath_tf ,

As you already know, ModusToolbox uses GNU Make and many operations in the ModusToolbox™ ecosystem are built upon the GNU Make system (https://www.gnu.org/software/make/), so it is a fundamental part of the ecosystem. In fact, even when you use the IDE, many operations just call the underlying make operation so that you get the same behaviour no matter how you run the operation.  Hence using CMake inside ModusToolbox will be difficult since its based on GNU Make.

I will check on this more internally and get back to you if the CMake environment can be setup inside ModusToolbox IDE.

Regards
Alen

0 Likes
bharath_tf
Level 1
Level 1
First reply posted First question asked Welcome!

Hi @

Thank  you for the response. Do let us know if you have any update from your internal team on using CMake environment inside of Modus Toolbox.

Best regards,

Bharath

 

0 Likes
AlenAn14
Moderator
Moderator
Moderator
500 replies posted 100 solutions authored 250 replies posted

Hi @bharath_tf ,

Unfortunately, ModusToolbox does not have a provision for CMake as I have mentioned before and as for the Eclipse IDE, we have not tested the possiblity to hook in a CMake based flow into eclipse (there may be some plugins) but it probably won't integrate well with the quick panel of ModusToolbox.

As an alternative you maybe can take a look at the following github link for refernce to CMake based projects for PSoC:

http://github.com/medvid/psoc4.cmake

It is compatible with all ModusToolbox BSPs, middleware and code examples.

It integrates nicely with Visual Studio code and its great CMake plugin. Program/Debug also works with both OpenOCD and JLink.

Of course there is zero integration with ModusToolbox “make” targets, Eclipse quick launch panel shortcuts etc..

Maybe this is useful for you.
Note it is provided as “open-source” with zero support.

Warm Regards
Alen

0 Likes