IO Pin 4


#1

Hi,

for my target chip, I need 4 IO lines (TX, RX, RST and bootloader_enable).
I looked into the ChipWhisperer capture v2 schematics and found that all 4 IO lines go through a bi-directional level shifter directly to the target.
However, in the ChipWhisperer capture software the only function IO4 pin can have is “HighZ”.

Is there a specific reason why the IO4 Pin can not be used ?
In my application, I need to toggle both the RST as well as the bootloader_enable line in a specific pattern.


#2

Hello,

There is no reason that isn’t enabled, but the current FPGA code does force that to be High-Z. I can try to get that into a new release for you which would enable the I/O 4 as an actual controllable pin.

Regards,

-Colin


#3

Hello Colin,

that would be really cool, thank you


#4

I’ve added this, so should be a part of the next release. If you don’t want to wait:

I’ve attached a new version of the FPGA bitstream. To use this extract the file, then in the CW Firmware Config, set the FPGA mode to ‘DEBUG’, and point to this bitstream. The partial configuration data isn’t available yet so you can’t use some of the glitch functionality.

You also need the updated software from GIT. You can either use a git client or use the github ‘download zip’ option from github.com/newaetech/chipwhispe … c3d1bf71ac for changes).

Let me know if this works!
interface.zip (144 KB)


#5

Thank you Colin,

it is working.
Which glitching features do not work without partial reconfiguration and what would be required to get it working ?
With my setup, I’m planning to do both clock and voltage glitching (with a FET attached).

Cheers


#6

Hello,

The “% glitch width” and “% glitch offset” don’t work. I’ve just got to run a very long script here (takes ~6 hours) to generate all the partial reconfiguration data. I’ll try to do that later today anyway, which would be part of the release but can send you an advanced copy if I don’t get that out.

I had planned on doing a full 0.9 release very soon anyway.

Regards,

-Colin


#7

Hello,

An updated firmware (zip file) has been pushed to the GIT, and is included here too. If you use the attached file just copy it to chipwhisperer\hardware\capture\chipwhisperer-rev2 and don’t unzip it. In the capture GUI switch back to ‘release’ mode, and if needed point to the location of the zip file.

Let me know if this works!

-Colin
cwrev2_firmware.zip (165 KB)


#8

Hi Colin,

wow, that was really quick.
I’m currently working on a script to get my target into the bootloader state I’m interested in so that I can start glitching from there.
As soon as the bootloader setup is complete, I’ll check out the glitching part with your new code and post the results here.

Thank you !


#9

Hi Colin,

I just tried it.
With my script I can now always get into the right bootloader state. From there I would like to trigger a glitch based on the serial TX line using the Digital Pattern Trigger Module.
When setting the ‘Glitch Trigger’ to manual mode, I can see the generated glitch on the scope.
However, when setting it to “Ext Trigger:Single-Shot”, setting up the serial port configuration in the"Digital Pattern Trigger Module" and configuring a trigger character, it never triggers even though I send the trigger character multiple times to the device.
Any ideas ? Is this maybe related to the new firmware version ?

Thank you !


#10

Hello,

Was this working before? The ‘single-shot’ mode only arms once you start the capture, which isn’t always clear! Does it work in ‘continuous’ mode? It is possible there was a bug introduced in the new firmware as it did modify the routing code a little.

Regards,

-Colin


#11

Hi Colin,

indeed I was not aware that the glitch triggering only works if capture is started.
I enabled capture now, set the timeout to a value large enough and if I send the trigger character to the device, it triggers both capture and the glitch as it it supposed to be.

Thank you !


#12

Great! The documentation is lacking there - I did update the software without describing the difference between the ‘continuous’ and ‘single shot’. The latest documentation makes a reference to that now, but will make it more clear. The full 0.09 release includes the updated .zip file too which allows control of PGIO4.