psoctools | tools

openocd

The CY8CKIT-059 has an attached KitProg programmer that is supported by openocd, but a few additional patches are needed for PSoC 5LP flash support:
            
    # include PSoC 5LP flash support http://openocd.zylin.com/#/c/3432/
    git clone http://openocd.zylin.com/openocd
    cd openocd
    git fetch http://openocd.zylin.com/openocd refs/changes/32/3432/26 && git checkout FETCH_HEAD
    ./bootstrap
    ./configure --prefix=/usr --enable-maintainer-mode --disable-werror --enable-kitprog
    make
    make install
            
        
Once installed you can start openocd like so:
            
    openocd --verbose -c "interface kitprog; kitprog_init_acquire_psoc" -f target/psoc5lp.cfg
    telnet localhost 4444
            
        
...and flash images like so:
            
    openocd -c "interface kitprog; kitprog_init_acquire_psoc" -f target/psoc5lp.cfg -c "init; halt; psoc5lp mass_erase 0; program mecrisp-stellaris-cy8c5888.bin 0x0 verify reset exit"
            
        

mecrisp-stellaris forth for psoc 5lp and 4

You may find it easier to experiment with the psoc5lp and its logic fabric from a forth interpreter.
Mecrisp-Stellaris forth is now available for the psoc5lp and psoc4 with a bitbanged uart. No proprietary blobs are needed.

Mecrisp project page.
embello a collection of libraries for mecrisp