FlexSEA Wiki

A WEARABLE ROBOTICS TOOLKIT

User Tools

Site Tools


psocdebugging

Ex or Re Debugging

Because of the embedded bootloader buried inside PSoC projects (Ex and Re), PSoC creator IDE does not allow user/developer to debug the code anymore. Although there is no change about the way to program a brand new device, debugging has its own workaround which will be discussed in this page.

The workaround explained in this wiki page relies on Re. However, it can be applied for Ex as well.

Preparing IDE for Debugging

Follow the directions below to enable debugging.

  • Double click on PSoC Creator IDE workspace file .cywrk
  • Once IDE is launched, debug icon at the top of the IDE would be shown up as grayed out.

  • From the workspace explorer on the left, expand related project (fx-rigid-re or fx-rigid-ex). Then double click on TopDesign.cysch

  • In the TopDesign sheet find Bootloadable block at the bottom right.

  • Right click on the block and Disable it.

  • On the top menu go to Build→Build fx-rigid-re (For Ex go to Build→Build fx-rigid-ex) then click.
  • Compiler would complain about an undefined reference called Bootloadable_Load.

  • Double click on it to navigate to the reference and comment it out. Then, note the location of the reference.

  • Build it again. On the top menu go to Build→Build fx-rigid-re (For Ex go to Build→Build fx-rigid-ex) then click. Once the build is done, the debug button would be enabled.

Done with Debugging

Once done with debugging, Bootloadable block must be recovered to re-enable bootloader functionality.

Follow the directions below to disable debugging that enables bootloader functionality.

  • From the workspace explorer on the left, double click on TopDesign.cysch under related project (fx-rigid-re or fx-rigid-ex).

  • In the TopDesign sheet find the disabled Bootloadable block at the bottom right.

  • Right click on the block and Enable it.

  • Navigate to the file which has the refence to Bootloadable_Load (from your notes). Then comment the line in.

  • On the top menu go to Build→Build fx-rigid-re (For Ex go to Build→Build fx-rigid-ex) then click. Once the build is done, the debug button would be disabled that activates bootloader functionality.

psocdebugging.txt · Last modified: 2020/12/14 15:41 by tmayadagli