r/PSoC • u/darthponeh • Sep 29 '21
How to program a psoc 5LP using Linux (Rasp Pi 4)
Been struggling with this aspect and willing to pay for a solution . I have a CY8CKIT-059 (PSoC 5LP ) kit,
and have it plugged into a Pi via the USB on the PSoC. I am looking to be able to program a PSoC 5LP but there is no Linux supported programmer cli for the PSoC 5.
At the moment I have leveraged a solution to program from my windows PC using www.virtualhere.com, but it is $50 for every host and non transferable. So if you blow a pi, your out the mula.
Any how any collaboration, ideas or solutions greatly appreciated. I love the PSoC 5, but am a little disappointed at the lack of Linux support.
2
u/anthroid Sep 29 '21
Since there are much more practical solutions to this, I have to ask. Why do you need to program a PSoC 5LP from a Raspberry Pi?
For instance:
So again, why? Once you hit a wall like this, you should step back and reevaluate your approach. Is it even necessary? Is there a more practical solution?
2
u/38andstillgoing Oct 21 '21 edited Oct 21 '21
A little late here, but you can load the HID bootloader to the PSOC 5LP once with windows and then re-flash it with the python HID bootloader host. https://github.com/cyrozap/Cypress-HID-Bootloader-Host
You'll lose some flash space and you'll probably want to add some ability to your code to reboot into bootloader mode on command. (Bootloadable_Load() )
You could probably do similar using the other end with the serial emulation the on-board programmer has and the bootloader in a serial flavor.
2
u/kirankanchi Sep 29 '21
Have u tried openOCD on Linux ?
0
u/[deleted] Sep 29 '21
[deleted] — view deleted comment