stacksmashing / tamarin-firmware

GNU General Public License v3.0
432 stars 51 forks source link

Updates for README and build script #12

Open jchillerup opened 1 year ago

jchillerup commented 1 year ago

Consider this a draft PR until further notice.

Changes:

The script needs to be updated with some distro-specific logic to install requirements. It also needs some echos to inform the user what's going on. Finally it would be nice if it could also flash the Raspberry Pi Pico.

0rShemesh commented 4 months ago

doesnt work for me :(:

/usr/lib/gcc/arm-none-eabi/10.3.1/../../../arm-none-eabi/bin/ld: CMakeFiles/tamarin_firmware.dir/main.c.obj: in function `main':
main.c:(.text.startup.main+0x68): undefined reference to `tud_vendor_flush'
/usr/lib/gcc/arm-none-eabi/10.3.1/../../../arm-none-eabi/bin/ld: main.c:(.text.startup.main+0x8e): undefined reference to `tud_vendor_flush'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/tamarin_firmware.dir/build.make:1191: tamarin_firmware.elf] Error 1
make[1]: *** [CMakeFiles/Makefile2:1283: CMakeFiles/tamarin_firmware.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
intervade commented 3 months ago

doesnt work for me :(:

/usr/lib/gcc/arm-none-eabi/10.3.1/../../../arm-none-eabi/bin/ld: CMakeFiles/tamarin_firmware.dir/main.c.obj: in function `main':
main.c:(.text.startup.main+0x68): undefined reference to `tud_vendor_flush'
/usr/lib/gcc/arm-none-eabi/10.3.1/../../../arm-none-eabi/bin/ld: main.c:(.text.startup.main+0x8e): undefined reference to `tud_vendor_flush'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/tamarin_firmware.dir/build.make:1191: tamarin_firmware.elf] Error 1
make[1]: *** [CMakeFiles/Makefile2:1283: CMakeFiles/tamarin_firmware.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

This error has to do with tinyusb. If you take out the part of the script where it changes the pico-sdk version it will compile. However, JTAG will probably be broken and seems can be fixed with pr #16