Skip to content
Snippets Groups Projects
Commit 07a8dd75 authored by cnlohr's avatar cnlohr
Browse files

Successfully programming via esp32s2

parent e32aaae1
No related branches found
No related tags found
No related merge requests found
...@@ -44,7 +44,7 @@ $(TARGET).bin : $(TARGET).elf ...@@ -44,7 +44,7 @@ $(TARGET).bin : $(TARGET).elf
$(PREFIX)-objcopy -O ihex $< $(TARGET).hex $(PREFIX)-objcopy -O ihex $< $(TARGET).hex
flash : $(TARGET).bin flash : $(TARGET).bin
$(MINICHLINK)/minichlink -w $< -r $(MINICHLINK)/minichlink -w $< flash -b
clean : clean :
rm -rf $(TARGET).elf $(TARGET).bin $(TARGET).hex $(TARGET).lst $(TARGET).map $(TARGET).hex rm -rf $(TARGET).elf $(TARGET).bin $(TARGET).hex $(TARGET).lst $(TARGET).map $(TARGET).hex
......
No preview for this file type
...@@ -24,9 +24,9 @@ int main() ...@@ -24,9 +24,9 @@ int main()
while(1) while(1)
{ {
GPIOD->BSHR = (1<<0) | (1<<4); // Turn on GPIOD0 GPIOD->BSHR = (1<<0) | (1<<4); // Turn on GPIOD0 + GPIOD4
Delay_Ms( 100 ); Delay_Ms( 100 );
GPIOD->BSHR = (1<<(16+0)) | (1<<(16+4)); // Turn off GPIOD0 GPIOD->BSHR = (1<<(16+0)) | (1<<(16+4)); // Turn off GPIOD0 + GPIOD4
Delay_Ms( 100 ); Delay_Ms( 100 );
count++; count++;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment