Repository files navigation 2018 Pusan National University Hardware Term Project
HC-SR04P Ultrasonic Module(oscillator 없는 장치)
FB755AC Bluetooth Module
Relay Module
Servo Motor
Laser Module
PIR Sensor
Buzzer
요구되는 프로그램: Eclipse DS-5
작업 환경 구축 절차
C 프로젝트를 생성(생성 시 실행 설정을 Bare-metal Executable → ARM Compiler 5)
PSU_DB, Libraries 폴더와 flashclear.axf, stm32-test.sct파일을 한 곳에 모아주도록 합니다.
프로젝트가 생성되면 Project → Properties에서 아래를 수행해주시길 바랍니다.
ARM C Compiler 5 → Code Generation → cortex-m3 기입
ARM Assembler 5 → Code Generation → cortex-m3 기입
ARM Linker 5 → General → cortex-m3 기입
C/C++ Build Setting에서 ARM Compiler 5의 Includes에 아래의 폴더 리스트를 기입하도록 합니다.
CoreSupport
DeviceSupport
DeviceSupport/Startup
STM32F10xStdPeriph_Drice_v3.5/inc
STM32F10xStdPeriph_Drice_v3.5/src
ARM Linker 5 → Image Layout에서 stm32-test.sct 파일을 기입해주도록 합니다.
프로젝트 설정이 끝나면 Windows → Preferences의 DS-5탭 아래 Configuration Database를 클릭해서 PSU_DB를 넣어주도록 합니다.
위 과정까지 끝나면 Debug → Debug Configuration을 설정하도록 해줍니다.
연결 목표 설정을 PSU_DB의 Debug Cortex-M3로 지정해주도록 합니다.
USB 포트를 잡아주도록 합니다.
File 탭에 내용이 아무것도 없는 지 확인을 해주도록 합니다.
Debug 탭에 connection only로 하도록 합니다.
위 과정을 다 거치면 남은 소스 코드를 넣고 빌드를 수행해주도록 합니다.
빌드가 완료되면 장치를 연결하고, flash load (파일 위치)/*.axf를 명령어 창에 쳐주도록 합니다.
장치를 껐다가 켜주도록 합니다.
About
PNU 2018 Hardware Term
Topics
Resources
License
Stars
Watchers
Forks
You can’t perform that action at this time.