ARM

GNU ARM Eclipse : DOCUMENTATION : GENERIC STM32Fxx TEMPLATE

siwall 2015. 2. 16. 18:42

STM32Fxx templates

새 프로젝트 만들기

- 이클립스 메뉴에서 File >> New >> C Project를 선택합니다.

- 사용중인 프로세서 모델에 맞는 프로젝트를 선택합니다.

New STM32F4 project

MCU와 프로젝트 settings를 선택합니다.

Define MCU and project settings

Define the names of the destination folders:

Define destination folder names

Accept the default configuration names:

Build configurations

툴체인 이름과 경로를 입력합니다. 경로를 잘못 입력하면 빌드를 진행할 수 없으므로 정확히 입력합니다.

Toolchain path

생성된 프로젝트는 다음과 같은 구조를 갖습니다.

Project structure

프로젝트에 디바이스 결합시키기

For more details, please visit the separate page.

Assign a device to the project. 

Exclude unused

Template wizarddefaultExclude unused 옵션을 활성화 합니다

결과적으로 사용되지 않는 소스파일들은 빌드시에 자동으로 제외됩니다.

 

소스파일을 다시 포함시키려면, 파일에서 right click을 하고,

Resource Configurations >> Exclude from Build를 선택한 다음 체크박스를 해제합니다.

 

Load flash and debug

빌드가 완료되면, 보드를 연결하고, flash에 프로그램을 다운로드해야 합니다.

이것은 JTAG이나 SWD probe를 사용하여 수행 할 수 있습니다.

For more details on debugging, please refer to the specific debug pages.

 

Troubleshooting

- 툴체인 패스를 입력하지 않거나 틀린 경우 : project properties >> C/C++ Build >> Setting >> 툴체인 탭에서 정확한 경로를 입력합니다.

- 윈도우에서 빌드 툴을 설치하지 않은 경우 (make & rm); 툴을 설치합니다