<commit_before>PSOC4_swd_programmer
====================

SWD Programmer for PSoc4 based devices.

To build the programmer you would need a basic FX2LP device. One from amazon or ebay based on CY7C68013A would do. Install the FX2LP SDK from Cypress and flash swd.iic from the FX2LP folder on the FX2LP device.

Connct:
 FX2LP
 Device     Target
 PD0        SWDIO
 PD1        SWDCL
 PB2        XRES (or RESET)
 GND        GND
 3.3V       VCC

This will power the target as 3.3V from the FX2LP board. Pleas make sure there is no other power connected to the target as the FX2LP device is not 5V tollerant.

Use the PC software to flash a .hex file to the target.

Limitations:
  -- only tested on PSoc 4100 (4200 should work YMMV)
  -- only tested on 32K flash device. For 16K you may need to modify the PC software.

Building the software:

The PC project uses visual studio 2010, you can probably make it work with other platforms/compilers.

The device software needs the Keil PK51 toolchain.<commit_msg>Formatting in README.md<commit_after>PSOC4_swd_programmer
====================

SWD Programmer for PSoc4 based devices.

To build the programmer you would need a basic FX2LP device. One from amazon or ebay based on CY7C68013A would do. Install the FX2LP SDK from Cypress and flash swd.iic from the FX2LP folder on the FX2LP device.

Connct:
<code>
 FX2LP
 Device     Target
 PD0        SWDIO
 PD1        SWDCL
 PB2        XRES (or RESET)
 GND        GND
 3.3V       VCC
</code>

This will power the target as 3.3V from the FX2LP board. Pleas make sure there is no other power connected to the target as the FX2LP device is not 5V tollerant.

Use the PC software to flash a .hex file to the target.

Limitations:
  -- only tested on PSoc 4100 (4200 should work YMMV)
  -- only tested on 32K flash device. For 16K you may need to modify the PC software.

Building the software:

The PC project uses visual studio 2010, you can probably make it work with other platforms/compilers.

The device software needs the Keil PK51 toolchain.
{'fraction_non_alphanumeric': 0.05307125307125307, 'fraction_numerical': 0.040294840294840296, 'mean_word_length': 3.232848232848233, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3154936', 'n_tokens_mistral': 676, 'n_tokens_neox': 611, 'n_words': 317}