CW305 SAM3U building and uploading firmware

I am trying to build and upload an edited version of the SAM3U firmware, but I am running into a few issues:

  1. Locating the firmware and necessary related files in the new restructuring of CW, and
  2. running the required make commands to build the firmware.

Looking at a few older forum posts as well as referring to this link tells me that the firmware lives at hardware\victims\cw305_artixtarget\fw\sam3u\CW305_SAM3U_FW, but I see that after a series of changes on Aug. 13, 14, and 30, 2024 to the develop branch, there was a significant refactoring as well as a “removal” of the Artix target (commit cf7da33). Did this firmware get moved to somewhere in firmware/mcu along with other mcu stuff and I am just having trouble finding it? What exactly was meant by “removing” the Artix target?

Since I could not find this firmware’s new home, I checked out a previous commit (commit c0c37cd) so that I could follow the existing instructions online that guide how to rebuild the SAM3U firmware. After attempting to use the makefile in hardware\victims\cw305_artixtarget\fw\sam3u\CW305_SAM3U_FW\src, it fails due to makefile.cw not existing in the naeusb\ folder. Am I missing a step that I need to complete in order for makefile.cw to be where it needs to be (in this folder)? Thank you in advance for the help!

Hi,

The new location for this is GitHub - newaetech/cw305-artix-target. You’ll need to checkout the naeusb submodule (git submodule update --init naeusb) in fw/sam3u/CW305_SAM3U_FW/src, after which you should be able to build with make -j. If you did want to use that earlier commit, you’ll need to do the same thing (initializing the submodule).

Alex

Great, thanks! Checking out the submodule on the earlier commit worked.

Not sure if this is a dumb question or not, but how would I access that different repo for the artix target from within Jupyter?

The root directory of jupyter is just wherever you start it. If you’re on our Windows installer, I’d recommend running ChipWhisperer Bash, cloning the new repo to the home directory, then running jupyter notebook from there.

Okay sounds good thanks for the help.