Skip to content

Using PSoC Creator

Matt Bartos edited this page Oct 3, 2017 · 8 revisions

This guide assumes that the user has the perfect-cell board, which can be found here: https://github.com/open-storm/open-storm-hardware.

Downloading PSoC Creator

First, download and install PSoC Creator 4.1 from Cypress' website.

When prompted, choose the 'complete' installation.

Buying the programmer

To program the device, you will need a programmer. You can use the Cypress Miniprog3 to program and debug the device.

The Cypress prototyping kit is a cheaper option. However, using this solution will require some soldering. Simply cut the board along the perforation, and then solder leads into the solder pads for the 5-pin connector.

Downloading the firmware

Next, download the perfect-cell firmware: https://github.com/open-storm/perfect-cell

You can download the firmware in one of two ways:

  1. Download the zip file using the green Clone or download button. Then unzip the compressed file.
  2. Run the following command in your terminal:
git clone https://github.com/open-storm/perfect-cell

Opening up the project

Open PSoC Creator 4.1. Once inside PSoC Creator, navigate to the perfect-cell directory and open the following file:

./perfect-cell.cydsn/perfect-cell.cyprj

Building the project

First, we need to compile the project on your local machine. Using the toolbar in PSoC creator, select Build -> Build perfect-cell. If all goes well, you should see a message saying Build succeeded in the output window.

Building the project

Connecting the programmer

Connect the 5-pin programmer to the white 5-pin debug port on the board.

Debug port

Programmer plugged in

Let's make sure that the board is recognized. From the toolbar, select Debug -> Select debug target.

Select debug target

Now select the Port setting button from the window that pops up.

Port setting

The connector should be the 5-pin type.

Important note: If a battery or another external power source is connected to the board, MAKE SURE the power source is set to external. If the board receives power from two sources it can cause irreparable damage to the board.

Port setting 2

Now connect to the device.

Connect to port

Finally, select Debug -> Program and program the device. You should see a message that says Ready once the device is successfully programmed.

Program device