background image

 Getting 

Started 

 

 

 

 

 

To end the debug session click on the 

Kill thread

 

 button at the 

top of the project window (or press <Shift>+<F5> or select 

Debug 

/ Kill

 in the main tool bar). 

 

 

 
©  PHYTEC Meßtechnik GmbH 2009     L-647e_2

 31

 

Содержание phyCORE-MPC565

Страница 1: ...olding company QuickStart Instructions phyCORE MPC565 Using Freescale CodeWarrior Development Tool Chain Note The PHYTEC Spectrum CD includes the electronic version of the phyCORE MPC565 English Hardw...

Страница 2: ...ally PHYTEC Me technik GmbH offers no guarantee nor accepts any liability for damages arising from the improper usage or improper installation of the hardware or software PHYTEC Me technik GmbH furthe...

Страница 3: ...e CodeWarrior IDE 19 2 4 1 Setting up a New Remote Connection 19 2 5 Downloading Example Code with CodeWarrior IDE 22 2 5 1 Configuring HyperTerminal Program for Hello_Fl example 22 2 5 2 Running the...

Страница 4: ...phyCORE MPC565 QuickStart Instructions PHYTEC Me technik GmbH 2009 L 647e_2...

Страница 5: ...le CodeWarrior tools Please refer to the phyCORE MPC565 Hardware Manual for specific information on such board level features as jumper configuration memory mapping and pin layout Selecting the links...

Страница 6: ...Flash using Freescale CodeWarrior Debugger and Flash Programmer This section also provides hints for creating a new phyCORE MPC565 project in Freescale s CodeWarrior 1 3 System Requirements Use of thi...

Страница 7: ...PC565 For more information and example updates please refer to the following sources http www phytec com or http www phytec de support phytec com or support phytec de http www freescale com PHYTEC Me...

Страница 8: ...ck with a calendar and alarm function serves as a real time reference The phyCORE MPC565 is especially suited for applications requiring processing of calculation intensive algorithms The MPC565 s int...

Страница 9: ...blocks four UARTs two SPI interfaces and one J1850 interface three CAN 2 0B interfaces three TPU with 16 channels each six 16 bit timer systems MOIS14 twelve 16 bit PWM systems MIOS14 dual 10 bit ADC...

Страница 10: ...unction power down wake up support via RTC or external signal JTAG BDM Nexus test debug port industrial temperature range 40 85 C The phyCORE MPC565 Development Board is fully equipped with all mechan...

Страница 11: ...9 plugs RJ 45 Ethernet interface DB 25 plug for BDM interface to support direct connection to PC printer port on board signal conversion 10 pin header connector for interfacing to external BDM devices...

Страница 12: ...egardless of the host language or target architecture This means you can reach more markets and solve more problems without having to learn new tools Freescale CodeWarrior IDE s graphical interface in...

Страница 13: ...de C compiler IDE plug in Linker IDE plug in Make IDE plug in Debugger Fully active source level and assembly level Windows based debugger Upon installation of CodeWarrior the IDE and Debugger executa...

Страница 14: ...ions and a navi gation to the start of a desired function or its corresponding header file A graphic difference engine displays the differences between two source code files The search engine enables...

Страница 15: ...ng option is provided via a PC to target connection using the MPC565 BDM port Background Debug Mode a hardware debugger module integrated on the processor The parallel printer port of the host PC comm...

Страница 16: ...phyCORE MPC565 QuickStart Instructions 12 PHYTEC Me technik GmbH 2009 L 647e_2...

Страница 17: ...oftware Otherwise the setup program launch exe can be manually executed from the root folder of the Freescale CodeWarrior CD The applicable CodeWarrior tool chain must be installed to ensure successfu...

Страница 18: ...o enter the path ftp ftp phytec de pub Products phyCORE MPC565 CW8 7 into your browser and then replace the files phyCORE MPC565_internal_flash xml and phyCORE MPC_external_flash xml located in C Prog...

Страница 19: ...e phyCORE MPC565 to a Host PC Connecting the phyCORE MPC565 part PCM 019 xxxx mounted on the PHYTEC Development Board part PCM 991 to your computer is simple If the phyCORE module is not already insta...

Страница 20: ...C X4 X3 NEXUS 40pol X8 U8 U9 X6 X7 P3 5V Power Ethernet BDM X2 1A 1B X2 1C 1D X1 1B 1A P1 P2 S2 S1 BOOT RESET P2B top B_CAN P2A bot A_CAN P1B top RS232_1 P1A bot RS232_2 D2 D9 D10 1209 1 Figure 2 Deve...

Страница 21: ...40 2 2 4 6 8 3 5 7 3 4 3 4 2 JP42 JP38 JP32 JP33 JP35 JP36 JP37 JP34 2 3 4 2 3 4 2 3 4 2 3 4 JP26 JP25 JP24 JP23 JP16 JP15 JP14 JP13 JP12 JP9 JP10 JP11 1 1 JP22 JP8 JP7 JP6 JP5 JP4 JP3 JP2 JP1 JP27 JP...

Страница 22: ...erTerminal Using the included 5VDC power adapter connect the power socket on the board X6 to a power supply refer to Figure 4 for the correct polarity The phyCORE module Development Board combination...

Страница 23: ...ORE MPC565 Demos create the folder CW8 7 and decompress the example into this folder Launch the Freescale CodeWarrior IDE by double clicking on the CodeWarrior icon or by selecting CodeWarrior from wi...

Страница 24: ...kStart Instructions In the IDE Preference Panels window select Debugger Remote Connections Click on the Add button and enter the settings shown below in the New Connection window 20 PHYTEC Me technik...

Страница 25: ...arallel Parallel Port LPT1 Speed 1 FPU Buffer Address 0x10000000 Confirm by clicking the OK button You should now be able to view the new connection MSI Wiggler 0x10000000 in the Remote Connections wi...

Страница 26: ...ng the execution of the Hello_Fl demo requires use of a terminal program such as the HyperTerminal program included within Windows Start the HyperTerminal program within the Programs Accessories Commu...

Страница 27: ...parameters Bits per second 9600 Data bits 8 Parity None Stop Bits 1 Flow Control None Not shown Start Bits 1 Selecting OK advances you to the COM Direct HyperTerminal monitoring window Notice the con...

Страница 28: ...phyCORE MPC565 QuickStart Instructions HyperTerminal is now prepared to view the output of the example program once it is executed 24 PHYTEC Me technik GmbH 2009 L 647e_2...

Страница 29: ...the HyperTerminal session open and connected to the target hardware Open the Hello_Fl mcp project file by selecting File Open from the pull down menu and navigating to PHYBasic phyCORE MPC565 Demos C...

Страница 30: ...phyCORE MPC565 QuickStart Instructions If not already selected select the software target ram from the pull down at the top of the project window 26 PHYTEC Me technik GmbH 2009 L 647e_2...

Страница 31: ...otice the red check marks in front of the individual files This indicates that the project is not up to date and a new build should be performed This typically happens when you open an existing projec...

Страница 32: ...ntered Click on Apply and OK to save the setting Also make sure that the source files don t have read only attributes Start the download process by clicking on green debug arrow in the upper right sec...

Страница 33: ...ect Run in the main tool bar This will run the main code starting from the location indicated by the blue arrow in the source window first line after main The lower portion of the ram elf Thread 0x0 w...

Страница 34: ...erminal program to view the output of the demo program which will print the character string UART_1 Hello world Running out of external SRAM 2x LED The red LED D6 will flash in a pattern with short on...

Страница 35: ...ting Started To end the debug session click on the Kill thread button at the top of the project window or press Shift F5 or select Debug Kill in the main tool bar PHYTEC Me technik GmbH 2009 L 647e_2...

Страница 36: ...losed at default position 1 2 refer to Figure 3 From the pull down menu at the top of the Hello_Fl mcp project window select the software target rom The project window should look as follows Perform t...

Страница 37: ...ull down menu The following window will appear Click on the Load Settings button Browse to the phyCORE MPC565_internal_flash xml file located in the C Freescale CodeWarrior EPPC 5xx V8 7 bin Plugins S...

Страница 38: ...ns Back in the Flash Programmer main window click on Erase Blank Check Make sure both check boxes are enabled as shown below and click on the Erase button to erase the entire on chip Flash memory 34 P...

Страница 39: ...ps that are performed during the Flash erasure If you wish you can do a Blank Check at the end of the Flash erase sequence to verify the Flash sectors are blank Simply click on the applicable button N...

Страница 40: ...Browse button in the upper right hand corner of this window Navigate to the PHYBasic phyCORE MPC565 Demos CW8 7 Hello_Fl Bin folder in the Select File to Program window Select the rom mot file from t...

Страница 41: ...t downloading the rom mot file into the on chip Flash The Status line shows the individual steps that are performed during the Flash download The following status line will appear at the end of the do...

Страница 42: ...25 parallel cable Reconnect the power adapter to the Development Board Start the program execution by simultaneously pressing the Reset S2 and Boot S1 buttons on the phyCORE Development Board first re...

Страница 43: ...CM 019 1010E and the latest EPLD firmware For modules sold prior to 2 10 05 please see Application Note LAN 033e for instructions on updating the EPLD firmware Disconnect the power adapter from Develo...

Страница 44: ...ons Click on the Load Settings button Browse to the phyCORE MPC565_external_standard_flash xml file located in the PHYBasic phyCORE MPC565 Demos CW8 7 Hello_Fl BurnExtRom folder and open the file 40 P...

Страница 45: ...Getting Started Click on Flash Configuration to check that the correct Flash device is as follows Click on Erase Blank Check PHYTEC Me technik GmbH 2009 L 647e_2 41...

Страница 46: ...econds The Status line shows the individual steps that are performed during the Flash erasure If you wish you can do a Blank Check at the end of the Flash erase sequence to verify the Flash sectors ar...

Страница 47: ...e output file that will be downloaded into the external standard Flash Click on the Browse button in the upper right hand corner of this window Navigate to the PHYBasic phyCORE MPC565 Demos CW8 7 Hell...

Страница 48: ...am button to start downloading the rom mot file into the external standard Flash The Status line shows the individual steps that are performed during the Flash download The following status line will...

Страница 49: ...t Board Start the program execution by simultaneously pressing the Reset S2 and Boot S1 buttons on the phyCORE Development Board first releasing the Reset and then two or three seconds later release t...

Страница 50: ...wnloaded to the burst Flash devices at U3 AM29BDD type Note This example only applies to phyCORE MPC565 modules with part number PCM 019 3230 Make sure Jumper JP17 on the Development Board is closed a...

Страница 51: ...e PHYBasic phyCORE MPC565 Demos CW8 7 Hello_Fl BurnExtRom folder and open the file After loading these settings the Target Configuration window should look as follows Click on Flash Configuration to c...

Страница 52: ...phyCORE MPC565 QuickStart Instructions Select the Erase Blank Check from the Flash Programmer window 48 PHYTEC Me technik GmbH 2009 L 647e_2...

Страница 53: ...will take up to 10 seconds The Status line shows the individual steps that are performed during the Flash erasure If you wish you can do a Blank Check at the end of the Flash erase sequence to verify...

Страница 54: ...dow Select the output file that will be downloaded into the external burst Flash Click on the Browse button in the upper right hand corner of this window Navigate to the PHYBasic phyCORE MPC565 Demos...

Страница 55: ...m the list of available files and Open it The Flash Programmer window will reappear and should look like this Now click on the Program button to start downloading the rom mot file into the on chip Fla...

Страница 56: ...uccessfully downloaded the Hello_Fl example program to the external burst Flash on the phyCORE MPC565 Disconnect the power adapter from Development Board Disconnect the DB 25 parallel cable Reconnect...

Страница 57: ...Switch back to the HyperTerminal program to view the output of the demo program which will print the character string UART_1 Hello world Running out of external FLASH 3x LED PHYTEC Me technik GmbH 20...

Страница 58: ...roject is used as a template The Hello_Fl project already has the target linker compiler debugger and startup code correctly configured for the phyCORE MPC565 target Create a new directory for your pr...

Страница 59: ...uickStart Instructions Document number L 647e_2 September 2009 How would you improve this manual Did you find any mistakes in this manual page Submitted by Customer number Name Company Address Return...

Страница 60: ...Published by PHYTEC Me technik GmbH 2009 Ordering No L 647e_2 Printed in Germany...

Отзывы: