Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PSoC4 Flashing Error Using Pack Managed Packs #1728

Open
fmoghaddam-adc opened this issue Oct 15, 2024 · 0 comments
Open

PSoC4 Flashing Error Using Pack Managed Packs #1728

fmoghaddam-adc opened this issue Oct 15, 2024 · 0 comments

Comments

@fmoghaddam-adc
Copy link

fmoghaddam-adc commented Oct 15, 2024

Hello,
I've been using pyOCD for flashing Cypress PSoC6 MCUs using a Raspberry Pis and recently there's been a need to also do this process with the PSoC4 family of MCUs as well. I reached out to Cypress/Infineon to see if they are planning on supporting PSoC4 on pyOCD and it looks like that is not the case.

I came across the target support documentation on pyOCD and I was able to successfully install the DFP for PSoC4 using pyocd pack install CY8C4146LQI-S432 which allowed me to see the desired targets when executing pyocd list --targets; however, I am seeing warnings/errors that indicate the configuration for the target might wrong or incomplete:

0001516 W Failed to add data chunk: no memory region defined for address 0x90300000 [file_programmer]
0001517 W Failed to add data chunk: no memory region defined for address 0x90400000 [file_programmer]
0001517 W Failed to add data chunk: no memory region defined for address 0x90500000 [file_programmer]
0001517 W Failed to add data chunk: no memory region defined for address 0x90600000 [file_programmer]
0003836 W Timed out waiting for core to halt after reset (state is RUNNING) [cortex_m]
0003861 C cannot write registers pc, r0, r1, r2, r9, sp, lr because core #0 is not halted [__main__]

This made me wonder if the managed pack install really is intended to "install new device support with a single command line invocation" or if there are some modifications needed on the pyOCD source code to make the newly added targets work. For example, the instructions for adding a new built-in target require the user to create the target's memory map, etc. Is this process what happens behind the scenes of a managed pack install? Or is one approach more "robust" than the other?

Thanks in advance!

Best,

Farbod

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant