SAM Development environment
#
Installation์๋ ๋ชฉ์ฐจ์ ์๋ ๋ด์ฉ์ ์ค์นํ์ ์ผ ํฉ๋๋ค.
๊ฐ ํ๋ก๊ทธ๋จ์ ์ค์น ๊ฒฝ๋ก๋ฅผ ์ง์ ํ์ธํ์๊ธธ ๋ฐ๋๋๋ค. ์ค์นํ๋ ์์ ์ ๋ฐ๋ผ ๋ณ๊ฒฝ๋ ์ ์์ต๋๋ค.
- Atmel Studio 7
- https://www.microchip.com/mplab/avr-support
- SMART ARM MCU ์ ํ
- Visual studio ๊ธฐ๋ฐ IDE
- BOSSA(Basic Open Source SAM-BA Application)
- https://github.com/shumatech/BOSSA/releases
- SAM-BA๋ฅผ ์ง์ํ๋ MCU์ ๊ฒฝ์ฐ BOSSA๋ฅผ ์ฌ์ฉํด ์ฝ๊ฒ ์ ๋ก๋ ํ ์ ์์ต๋๋ค.
#
BOSSAC.exe External Tools- Arduino due Programming Port
Command
:<path to>\bossac.exe
Arguments
:-i -d --usb-port=0 -e -w -v -b $(TargetDir)$(TargetName).bin -R --port=COMx
Initial directory
:$(TargetDir)
- Use Output window, Prompt for arguments
- Arduino due Native USB Port
Command
:<path to>\bossac.exe
Arguments
:-i -d -e -w -v -b $(TargetDir)$(TargetName).bin -R --port=COMx
Initial directory
:$(TargetDir)
- Use Output window, Prompt for arguments
- Arduino due erase
Command
:<path to>\bossac.exe
Arguments
:-a --port=COMx
- Use Output window, Prompt for arguments
No device found on COMx๋ก ์ธํด ์ ๋ก๋๊ฐ ์๋๋ ๊ฒฝ์ฐ COM ๋ฒํธ๋ฅผ ํ์ธํฉ๋๋ค. ๋ฒํธ๋ฅผ ํ์ธํ๋๋ฐ ๋ฌธ์ ๊ฐ ์๊ณ Arduino Due ๋ณด๋๋ฅผ ์ฌ์ฉํ๋ ๊ฒฝ์ฐ Arduino due erase๋ฅผ ์คํํ๊ฑฐ๋ ๋ฌผ๋ฆฌ์ ์ผ๋ก ERASE ๋ฒํผ์ ์ฝ 1์ด ๋๋ฅด๊ณ RESET ๋ฒํผ์ ๋๋ฅธ ํ ๋ค์ ์๋ํฉ๋๋ค.
#
Atmel Software Framework(ASF) ProjectAtmel Studio 7์ ์คํํฉ๋๋ค.
File -> New -> Project -> GCC C ASF Board Project๋ฅผ ์ ํํฉ๋๋ค.
Board selection์์ ์ฌ์ฉํ ๋ณด๋๋ฅผ ๊ฒ์ํด์ ์ ํํฉ๋๋ค.
ASF -> ASF Wizard ๋ฅผ ์ ํํฉ๋๋ค. ASF Wizard์์ ํ์ํ ๊ธฐ๋ฅ์ Add >>
๋ฒํผ์ ๋๋ฌ ์ถ๊ฐํ ํ, Apply
๋ฒํผ์ ๋๋ฅด๋ฉด ASF์ ์ ์ฉ๋ฉ๋๋ค.