Programming the FE310

Someone has the same problem ??

/chipwhisperer/openocd$ bash run_openocd.sh -p /home/nader/chipwhisperer/hardware/victims/firmware/simpleserial-glitch/simpleserial-glitch-CW308_FE310.elf husky jtag – -f “fe310.cfg”
run_openocd.sh: line 2: $’\r’: command not found
run_openocd.sh: line 6: $’\r’: command not found
run_openocd.sh: line 11: syntax error near unexpected token $'{\r'' 'un_openocd.sh: line 11: print_help () {

Hi,

I think you might have \r\n as your line ending (Windows) instead of \n (Linux). I’m not too sure how this happened, since the one on Github should be \n. Try installing dos2unix and running it on that file.

Alex