uSTM32
아두이노 STM32 - 래빗보드에서 작동해보기
DIYworld
2017. 1. 21. 15:40
STM32용
아두이노 1.6.5 설치후
국내 키트인
래빗 보드에서
작동 확인
http://shopping.daum.net/search/rabbit%20board%20stm32/&srchhow:Cexpo
아두이노 설정
포트 --- USB 설치포트
칩 종류
프로그래밍 방법 : (Upload method)
위와같이 USB포트에 연결한 경우 - serial 선택
프로그램 업로드할때
래빗보드의 리셋 스위치를 한번 눌러줘야 한다
프로그램이 안올라가 지면 리셋 버튼누르고 다시 시도
아두이노 IDE 아래 검은 창에
.xxxxxx 에 기록이라고 나오면 잘 올라간것
Device Init Error 나오면 안된것이니 리셋 버튼 누르고 다시 업로드
#define LED PC12 int counter = 0; // the setup function runs once when you press reset or power the board void setup() { Serial.begin(9600); // initialize digital pin PB1 as an output. pinMode(LED, OUTPUT); } // the loop function runs over and over again forever void loop() { digitalWrite(LED, HIGH); // turn the LED on (HIGH is the voltage level) delay(100); // wait for a second digitalWrite(LED, LOW); // turn the LED off by making the voltage LOW delay(100); // wait for a second Serial.print("Time : "); Serial.println(counter++); }