the hexfile I compile with the makefile does not work on arduino
It works well, when copied into the arduino ide, and compiled there.