- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
In case of PSoC6, we can create a custom BSP in two ways.
It's a CLI and Build Target method.
Both were able to build without error.
In case of PSoC4000S, in either method, if TARGET = CustomName of Makefile is set, a build error will occur.
Is PSoC 4000S still unable to create a custom BSP?
Best regards,
Yocchi
Solved! Go to Solution.
- Labels:
-
ModusToolbox General
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @YoIs_1298666,
The reason you are seeing the error is that you have specified the TARGET as MyCustomBSP which has COMPONENT_BSP_DESIGN_MODUS folder inside but in your makefile you have COMPONENT set to CUSTOM_DESIGN_MODUS.
Since your COMPONENT_CUSTOM_DESIGN_MODUS folder doesn't have this particular target BSP, it cannot find the respective files and throws an error.
Here are two ways in which you can solve this:
Method1: You change the makefile variable to the following so that the build can pick the BSP_DESIGN_MODUS folder that's inside your custom BSP by default.
COMPONENTS=BSP_DESIGN_MODUS
Method2: If you decide to go with the configuration you have in your makefile already -
COMPONENTS=CUSTOM_DESIGN_MODUS
DISABLE_COMPONENTS=BSP_DESIGN_MODUS
Then create a new folder inside COMPONENT_CUSTOM_DESIGN_MODUS folder named "TARGET_MyCustomBSP" and add the respective design.modus, design.cycapsense files inside it as shown below:
Now you should be able to build successfully. Let me know your observations 🙂
Regards,
Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @YoIs_1298666 ,
Can you please let me know the DEVICE_GEN value you used to create the BSP? I tried for CY8C4045AZQ-S413 device and it seemed to work correctly for me.
Once the BSP is created and Makefile TARGET variable is updated, the build should proceed successfully. What is the build error? Can you share the build console log?
Regards,
Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @YoIs_1298666,
The reason you are seeing the error is that you have specified the TARGET as MyCustomBSP which has COMPONENT_BSP_DESIGN_MODUS folder inside but in your makefile you have COMPONENT set to CUSTOM_DESIGN_MODUS.
Since your COMPONENT_CUSTOM_DESIGN_MODUS folder doesn't have this particular target BSP, it cannot find the respective files and throws an error.
Here are two ways in which you can solve this:
Method1: You change the makefile variable to the following so that the build can pick the BSP_DESIGN_MODUS folder that's inside your custom BSP by default.
COMPONENTS=BSP_DESIGN_MODUS
Method2: If you decide to go with the configuration you have in your makefile already -
COMPONENTS=CUSTOM_DESIGN_MODUS
DISABLE_COMPONENTS=BSP_DESIGN_MODUS
Then create a new folder inside COMPONENT_CUSTOM_DESIGN_MODUS folder named "TARGET_MyCustomBSP" and add the respective design.modus, design.cycapsense files inside it as shown below:
Now you should be able to build successfully. Let me know your observations 🙂
Regards,
Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Dheeraj-san,
I arranged the Makefile and set the peripherals and LED pins to the same settings as TARGET_CY8CKIT-145-40XX in Device Configurator, so I was able to build.
Best regards,
Yocchi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @YoIs_1298666 ,
In the Makefile you attached, please see lines 82 to 85. You have specified the build to use CUSTOM_DESIGN_MODUS and to disable BSP_DESIGN_MODUS.
This means that the build will consider the files inside COMPONENT_CUSTOM_DESIGN_MODUS folder and not the COMPONENT_BSP_DESIGN_MODUS folder.
So, even if you have the file cycfg.h in the in "GenerateSource" under "COMPONENT_BSP_DESIGN_MODUS" it is not going to be detected by the build.
Please follow the steps I have mentioned in the previous post to successfully configure your Custom BSP.
Regards,
Dheeraj