newaetech / chipwhisperer

ChipWhisperer - the complete open-source toolchain for side-channel power analysis and glitching attacks
http://chipwhisperer.com
Other
1.05k stars 275 forks source link

add a generic JLinkProgrammer and use it for SAM4L #489

Open jan2642 opened 1 month ago

jan2642 commented 1 month ago

A generic JLinkProgrammer class has been added. Its constructor takes a core as an argument. This makes it easy to add a Programmer for any processor supported by JLink. Next to this a SAM4LProgrammer class has been added which uses JlinkProgrammer("ATSAM4LC2AA") and specifically targets the CW308_SAM4L board.

With the following small addition to https://github.com/newaetech/chipwhisperer-jupyter/blob/3f2796fc38450777b4f16c1a3f04b0e9fd1b7433/Setup_Scripts/Setup_Generic.ipynb it becomes possible to run most of the courses on the CW308_SAM4L board by attaching a JLink and only changing PLATFORM = 'CW308_SAM4L':

elif PLATFORM == "CW308_SAM4L":
    prog = cw.programmers.SAM4LProgrammer