Modifications

Sauter à la navigation Sauter à la recherche
Ligne 28 : Ligne 28 :  
<syntaxhighlight lang="C">
 
<syntaxhighlight lang="C">
 
#define F_CPU 16000000
 
#define F_CPU 16000000
#include &lt;avr/io.h&gt;
+
#include <avr/io.h>
#include &lt;util/delay.h&gt;
+
#include <util/delay.h>
 
   
 
   
 
int main()
 
int main()
Ligne 66 : Ligne 66 :     
program: $(TARGET).hex
 
program: $(TARGET).hex
avrdude -p $(MCU) -c avr109 -P $(PORT) -U flash:w:$(TARGET).hex</nowiki>
+
avrdude -p $(MCU) -c avr109 -P $(PORT) -U flash:w:$(TARGET).hex</syntaxhighlight>
    
Make sure that the PORT variable in the Makefile is set to the name of the device’s virtual serial port. In Windows, {{fname|\\\\.\\USBSER000}} should work if the A-Star is the only USB device connected that is using the usbser.sys driver, but you can change it to be the actual name of the COM port (e.g. {{fname|COM13}}).
 
Make sure that the PORT variable in the Makefile is set to the name of the device’s virtual serial port. In Windows, {{fname|\\\\.\\USBSER000}} should work if the A-Star is the only USB device connected that is using the usbser.sys driver, but you can change it to be the actual name of the COM port (e.g. {{fname|COM13}}).
31 005

modifications

Menu de navigation