Making Development Environment Using GNU ARM, Java JDK, Eclipse, Cygwin

Contents:

1.     Install Compiler

2.     Install JDK

3.     Install Eclipse 

4.     Eclipse Development Environment

5.     Install Cygwin or gnuwin32

1. Install Compiler

-. Install GNU Toolchain

 Contact  https://launchpad.net/gcc-arm-embedded/4.8/4.8-2014-q1-update

 Download the installation file accoding to  PC OS version.

 I downloaded gcc-arm-none-eabi-4_8-2014q1-20140314-win32.exe file, because of 64 bit.

-. Please install like below screen.

 

-. After installing, please check the version with arm-none-eabi-gcc –v command at Dos command.

2. Installing JDK 

-. Please install Java JDK. (if you have already, then skip)

Contact at http://www.oracle.com/technetwork/java/javase/downloads/index.html

Download jdk file according to your PC OS version. 

I downloaded jdk-8u5-windows-x64.exe file, because of 64 bit.

-. Please install like below screen.

 

-. After complete the install, please check the java version with java -version command at DOS Command.

 

3. Installing  Eclipse 

-. Please install the Eclipse program.

Connect at http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers/keplersr2 

Please download the installation file according to your PC OS version.

I downloaded eclipse-cpp-kepler-SR2-win32-x86_64.zip file, because of 64 bit.

-. Please use the files after decompress the downloaded zip file.

4. Setting Eclipse Environment

-. execute the eclipse.exe program.

-. Help->Select “Install New Software… ” menu

 

-. after select the “–All Available Sit–” , please insert the http://download.eclipse.org/tools/cdt/releases/helios web site.  

 

-. Please check the below 6 combo boxes.

C/C++ Development Tools

C/C++ Development Platform

C/C++ GCC Cross Compiler Support

C/C++ GDB Hardware Debugging

C/C++ GNU Toolchain Build Support

C/C++ GNU Toolchain Debug Support

 

 

 

 

-. Please restart, after install the Eclipse.

-. Help->Install New Software…-> Select the Add Menu.

-. Add the GNU ARM Plug-in.

http://sourceforge.net/projects/gnuarmeclipse/files/Eclipse/updates

http://gnuarmeclipse.sourceforge.net/updates-test

Recently I found a problem in v3.1.1-2016062110758. So you have to install v2.12.1-201604190915.zip file manually.

https://github.com/gnuarmeclipse/plug-ins/releases/tag/v2.12.1-201604190915

 

 

 

 

 

 

5. Install Cygwin or gnuwin32 Program.

-. Please install Cygwin using make.exe, rm.exe, echo.exe command.

contact https://www.cygwin.com/ and download the file, accordig the PC OS Version.

I downloaded setup-x86_64.exe file, because of 64 bit.

-. Please install like below screens.

 

-. I used “Install from Local Directory” to shorten the installing time.

You can use the “Install from Internet” option.

 

-. Please install the “Base package”

 

-. to use make command, install the “Devel package”

 

 -. Please add the “E:\cygwin64\bin” path to window system environment variables.

 

-. after adding, please check the version is right with “make –version” command.

 

 -. You can install gnuwin32 tools by the following site. After installing make.exe, rm.exe, echo.exe files, please add the path to window system environment variables.

http://gnuwin32.sourceforge.net/packages/make.htm

http://gnuwin32.sourceforge.net/packages/coreutils.htm

After adding, please check the version is right with “make –version” command.

-. If you are using Windows 64 bit, you can add path to the environment variable by unpacking the attachment below.

Apps.7z.001

Apps.7z.002


Eclipse에서 WIZwiki-W7500 library 포팅하기 Tutorial

목차:

1.     프로젝트 생성

2.     WIZwiki-W7500 library 포팅 방법

3.     F/W 다운로드 방법

 

1. 프로젝트 생성

-. WIZwiki-W7500 보드 사진

 

-. 개발환경 셋팅은 하기 사이트를 참조합니다.

English : http://opensrclab.tistory.com/33

국문 : http://opensrclab.tistory.com/1

-. Eclipse를 실행합니다.

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

 -. Project name 필드에 사용하고자 하는 프로젝트명을 입력하고 Project type으로 Hello World ARM Cortex-M C/C++ Project를 선택 후 Next를 클릭합니다.

 -. Processor core필드의 Cortex-M0를 확인하고 Trace output으로 Semihosting STDOUT stream을 선택 후 Next를 클릭합니다.

 

 

 -. Toolchain path에 설치한 GNU ToolchainC:\Program Files (x86)\GNU Tools ARM Embedded\4.8 2014q1\bin path를 입력 후 Finish를 클릭합니다.

 -. 생성된 프로젝트를 확인합니다.

2. WIZwiki-W7500 library 포팅 방법

-. 하기 사이트를 참조하여 W7500 library 파일을 다운로드 합니다.

http://wizwiki.net/wiki/doku.php?id=products:w7500:library

-. W7500-1.0.2\W7500x_Library_Examples\Libraries\W7500x_stdPeriph_Driver\inc W7500-1.0.2\W7500x_Library_Examples\Libraries\W7500x_stdPeriph_Driver\src 디렉토리의 파일들을 각각 WIZwiki-W7500_blinky\system\include\W7500x WIZwiki-W7500_blinky\system\src\W7500x 디렉토리에 복사한 후 Eclipse에서 F5를 눌러서 Refresh 시킵니다.

 -. W7500-1.0.2\W7500x_Library_Examples\Libraries\CMSIS\Device\WIZnet\W7500\Include 디렉토리의 system_W7500x.h, W7500x.h 파일들을 WIZwiki-W7500_blinky\system\include\cmsis 디렉토리에 복사 후 Eclipse에서 F5를 눌러서 Refresh 시킵니다.

 -. W7500-1.0.2\W7500x_Library_Examples\Libraries\CMSIS\Device\WIZnet\W7500\Source\system_W7500x.c 파일을 WIZwiki-W7500_blinky\system\src\cmsis 디렉토리에 복사 후 Eclipse에서 F5를 눌러서 Refresh 시킵니다.

 -. vectors_W7500x.c를 첨부된 파일로 교체 후 Eclipse에서 F5를 눌러서 Refresh 시킵니다.

 vectors_W7500x.c

 -. W7500-1.0.2\W7500x_Library_Examples\Projects\Peripheral_Examples\GPIO\Blink_LED 디렉토리의 main.c, W7500x_conf.h, W7500x_it.c, W7500x_it.h 파일들을 WIZwiki-W7500_blinky\src 디렉토리에 복사 후 Eclipse에서 F5를 눌러서 Refresh 시킵니다.

 -. mem.ld 파일의 FLASH start address0x00000000으로 변경 후 저장합니다.

 -. 프로젝트의 Properties를 선택합니다.

 -. C/C++ General->Paths and Symbols->Symbols->GNU C에서 add를 선택 후 USE_STDPERIPH_DRIVER 를 추가합니다.

 -. C/C++ General->Paths and Symbols->Source Location->/WIZwiki-W7500_blinky/system->Edit Filter->Add Multiple을 선택 후 src/diag/trace_impl.c W7500x_gpio.c를 이외의 파일들을 추가하고 Refresh(F5) 시킵니다.

 -. C/C++ General->Paths and Symbols->Includes->GNU C에서 Add 선택 후 src 디렉토리를 추가합니다.

 -. C/C++ Build->Settings->Tool Settings->Target Processor에서 ARM family 셋팅을 cortex-m0로 설정합니다.

 -. C/C++ Build->Settings->Tool Settings->Cross ARM GNU Create Flash Image->General에서 Output file formatraw binary로 설정합니다.

 -. 사용하지 않는 Timer.c, Timer.h 파일을 삭제 후 Eclipse에서 Refresh(F5) 시킵니다.

 -. Build Project를 이용해서 컴파일을 진행합니다.

 3. F/W 다운로드 방법

-. WIZwiki-W7500 보드의 OpenSDA USB 포트를 PC와 연결합니다.

 -. WorkspaceWIZwiki-W7500_blinky\Debug 디렉토리에 생성된 바이너리 파일을 MBED 드라이브로 복사합니다.

참조 https://developer.mbed.org/handbook/Windows-serial-configuration

WIZwiki-W7500_blinky.bin

 -. F/W update reset 시킵니다.

 


GNU ARM, Java JDK, Eclipse, Cygwin으로 개발환경 구축하기

목차:

1.     컴파일러 설치

2.     JDK 설치

3.     Eclipse 설치

4.     Eclipse 환경설정

5.     Cygwin 또는 gnuwin32 설치

1. 컴파일러 설치

-. GNU Toolchain을 설치합니다.

https://launchpad.net/gcc-arm-embedded/4.8/4.8-2014-q1-update 에 접속해서 PC OS에 맞게 다운로드 받습니다. 저는 윈도우 64bit라서 gcc-arm-none-eabi-4_8-2014q1-20140314-win32.exe 파일을 받았습니다.

-. 다음 화면을 참고해서 설치합니다.

 

 

 

-. 설치 완료 후 도스창에서 arm-none-eabi-gcc –v 명령으로 버전을 확인합니다.

 

2. JDK 설치

-. 자바 JDK를 설치합니다. (이미 설치되어 있으면 skip)

http://www.oracle.com/technetwork/java/javase/downloads/index.html 에 접속해서 PC OS에 맞게 다운로드 받습니다. 저는 윈도우 64bit라서 jdk-8u5-windows-x64.exe 파일을 받았습니다.

-. 다음 화면을 참고해서 설치합니다.

 

 

 

 

 

-. 설치 완료 후 도스창에서 java -version 명령으로 버전을 확인합니다.

 

3. Eclipse 설치

-. Eclipse를 설치합니다.

http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers/keplersr2 에 접속해서 PC OS에 맞게 다운로드 받습니다. 저는 윈도우 64bit라서 eclipse-cpp-kepler-SR2-win32-x86_64.zip 파일을 받았습니다.

-. 다운로드 받은 zip 파일을 압축 해제한 후 사용합니다.

4. Eclipse 환경설정

-. eclipse.exe를 실행합니다.

-. Help->Install New Software… 메뉴를 선택합니다.

 

-. --All Available Sit-- 선택 후 http://download.eclipse.org/tools/cdt/releases/helios 사이트를 추가합니다.

 

-. 하기 6개 항목을 선택합니다.

C/C++ Development Tools

C/C++ Development Platform

C/C++ GCC Cross Compiler Support

C/C++ GDB Hardware Debugging

C/C++ GNU Toolchain Build Support

C/C++ GNU Toolchain Debug Support

 

 

 

 

-. 설치 완료 후 Eclipserestart 합니다.

-. Help->Install New Software…->Add 메뉴를 선택합니다.

-. GNU ARM 플러그인을 추가합니다.

http://sourceforge.net/projects/gnuarmeclipse/files/Eclipse/updates

http://gnuarmeclipse.sourceforge.net/updates-test

최근에 v3.1.1-201606210758 버전에서 컴파일 시 Post-build steps에서 문제가 발견 되었다.

하기의 v2.12.1-201604190915.zip 파일을 수동 설치할 것을 권장합니다.

https://github.com/gnuarmeclipse/plug-ins/releases/tag/v2.12.1-201604190915

 

 

 

 

 

 

 


5. Cygwin 또는 gnuwin32 설치

-. make.exe, rm.exe, echo.exe 를 이용하기 위해 Cygwin을 설치합니다.

https://www.cygwin.com/ 에 접속해서 PC OS에 맞게 다운로드 받습니다. 저는 윈도우 64bit라서 setup-x86_64.exe 파일을 받았습니다.

-. 다음 화면을 참고해서 설치합니다.

 

-. 저는 설치시간 단축을 위해 Install from Local Directory를 이용했습니다.

Install from Internet 옵션을 사용해도 무방합니다.

 

 

 

 

 

-. Base package만 설치합니다.

 

-. make를 이용하기 위해 Devel package를 설치합니다.

 

-. E:\cygwin64\bin path를 윈도우 시스템 환경변수에 추가합니다.

 

-. 환경변수에 추가 후 도스창에서 make –version 명령으로 버전을 확인합니다.

 

-. gnuwin32를 설치해도 됩니다. 하기 사이트를 참조해서 make.exe, rm.exe, echo.exe를 원하는 path에 설치 후 윈도우 시스템 환경변수에 path를 추가합니다.

http://gnuwin32.sourceforge.net/packages/make.htm

http://gnuwin32.sourceforge.net/packages/coreutils.htm

환경변수에 추가 후 도스창에서 make –version 명령으로 버전을 확인합니다.

-. Windows 64 bit를 사용하는 경우는 하기의 첨부 파일을 풀어서 환경 변수에 path를 추가해서 사용할 수 있습니다.

Apps.7z.001

Apps.7z.002



+ Recent posts