PSoC4 Programming Error

Open source ARM Debugger

Moderator: phalanx

Post Reply
micromaster
Posts: 2
Joined: Tue Apr 18, 2017 2:29 pm

PSoC4 Programming Error

Post by micromaster » Tue Apr 18, 2017 2:56 pm

All,

I'm trying to program a PSoC4 CYBLE module. I am able to connect to the target and can see that it is halted. However, while it shows up as halted, the error "target : psoc4.cpu wait running fails (-4) unknown" keeps appearing. If I try to run "program file.hex", it claims "Error: ** Unable to reset target **" and if I try to enable (or disable) psoc4 autoerase, it Fails to read the registers when it's trying to determine the device. I'm using the raspberrypi2 native interface for programming. Is there some configuration I need to do that I'm just missing?

Thanks,
Charles

micromaster
Posts: 2
Joined: Tue Apr 18, 2017 2:29 pm

Re: PSoC4 Programming Error

Post by micromaster » Thu Apr 20, 2017 10:25 am

I was able to solve my issue and am posting what I did here to help anyone else who may have this issue. As of now, openocd has a server that hosts patches that have not been merged into the master yet. One if these is called 'psoc4: update for 4x00BLE, L, M, S and PRoC BLE devices' which greatly improves its cypress capabilities. Applying the patch made it work for 128k PSoC/PRoC Devices. However, the 256k devices will crash out.

Post Reply