Announcements

Equip yourself to optimize PSoc4 MCUs for Evs at the EV Webinar. Click here to register.

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

PSoC™ 4 Forum Discussions

DaEr_349131
Level 5
Level 5
50 sign-ins 5 comments on KBA First comment on KBA

Hi,

To get PSoC 4200 series supported with Daplink + pyocd, we need a "pack file" for it.

I'm told that psoc creator has a way to generate this, but need some guidance how to do it.

CMSIS-Pack documentation: https://arm-software.github.io/CMSIS_5/Pack/html/index.html

- .pdsc file format (XML): https://arm-software.github.io/CMSIS_5/Pack/html/packFormat.html

- Debug sequences: https://arm-software.github.io/CMSIS_5/Pack/html/debug_description.html

- Flash algo: https://arm-software.github.io/CMSIS_5/Pack/html/flashAlgorithm.html

thanks

David

related topic:PSoC 4 + Daplink / PyOCD?

0 Likes
1 Solution
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

Hello David,

To generate the CMSIS-PACK please right click on the Project in PSoC Creator > Export to IDE > Generated CMSIS-Pack > Specify the necessary versions and name for the pack > Export. Please see Help > PSoC Creator Help Topics > "Exporting a Design to Generated CMSIS-Pack" for more information.

A folder named Export will be created in your project folder that will contain the required CMSIS-Pack.

Hope this helps

Regards,

Dheeraj

View solution in original post

0 Likes
7 Replies
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

Hello David,

To generate the CMSIS-PACK please right click on the Project in PSoC Creator > Export to IDE > Generated CMSIS-Pack > Specify the necessary versions and name for the pack > Export. Please see Help > PSoC Creator Help Topics > "Exporting a Design to Generated CMSIS-Pack" for more information.

A folder named Export will be created in your project folder that will contain the required CMSIS-Pack.

Hope this helps

Regards,

Dheeraj

0 Likes

Hi Dheeraj,

Thanks,

my plan is to use it with PyOCD to be able to flash PSoC 4L's from linux & mac via standard ARM DapLink.

Do you know if the pack file generated is generic to the psoc family selected in the project, i.e. 4200 series.

...or is it explicit for one specific part-number (i.e. flash & ram config) !?

pyOCD/target_support.md at master · pyocd/pyOCD · GitHub

0 Likes

Hi Dheeraj,

I ran across these when googling...

cmsis-packs/PSoC4_DFP at master · cypresssemiconductorco/cmsis-packs · GitHub

looks like this is what we need. any change to get these for psoc 5LP as well?

related question: do you know if the packs above include the debug sequence logic?

ref: Debug Description

0 Likes

Noted that the SVD files are missing in the export,

and in the official CMSIS pack, only psoc 4100 seems part of it, see below:

cmsispack.jpg

0 Likes

PSoC Creator exported projects use custom generated CMSIS packs. You cannot use the packs found in Github. Those packs were created only for devices supported in mtb-pdl-cat2 (PSoC4) library used in ModusToolbox. This is why you don't see PSoC4200L devices.

Regarding svd files in the custom generated packs, yes, we don't seem to bundle it in the export package. I have passed this query to the software team for evaluation.

I have attached the required svd file with this post

Regards,

Dheeraj

0 Likes

Perfect, thanks Dheeraj,

Hope to see these in the official github as well and please also ask the team if they can add it to the official pyocd repo.

The PSoC 4200 is still a great series that would be nice to get support for

0 Likes

Agreed! I have passed this request to the software team for evaluation. Thank you for your interest in Cypress products

Regards,

Dheeraj

0 Likes