Project Report 1

  • November 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Project Report 1 as PDF for free.

More details

  • Words: 1,407
  • Pages: 7
PROJECT REPORT 1 MODI MITUL Computer Engineering Department, College of Engineering San Jose State University, San Jose, CA 94303 E-mail: [email protected] Abstract I am required to write a firmware program to print a greeting message with my name, SID (student ID) on the hyper terminal console. Then write this program to Compact FLASH. When the system is powered up, this firmware program will start the execution. In order to accomplish project, I have to [1] Initialize and configure the 32bit RISC processor development board using the test programs from the distribution CD. [2] Write a small C program as bootable ROM, compile and build the program. [3] Write the program to the FLASH. [4]. Establish serial communication via hyper terminal. [5]. Power the board up, then your bootable program will print a greeting message on hyper terminal console.

2. Methodology

1. Introduction

To fulfill the requirement of project, I used software, ARM SDT v2.51, which is included with this kit. The ARM Software Development Toolkit (SDT) consists of a suite of applications, together with supporting documentation and examples, which enable one to write and debug applications for the ARM family of RISC processors. One can use the SDT to develop, build, and debug C, C++, or ARM assembly language programs.

In any computer system, firmware which is stored in BIOS is the starter point. Processor will start execution from this only when powered up. So in this project I have to create such firmware. The firmware must do following work: [1] Boot kit and initialize all required peripherals. [2]Produce required output. Project Report using kit SAMSUNG's S3C44B0X

kit

Here I mentioned all the details regarding how to complete objectives and technical challenges associated with it. All the steps to accomplish the goals of project are explained.

2.1 Objectives and Technical Challenges The objectives of this project are: [1] Introduction to S3C44B0X kit. [2] How to create a project using ARM SDT 2.51 [3] How to compile, link and create executable file [4] Creation of binary file from project file [5] Method to burn flash [6] Use hyper terminal to communicate with kit

2.2 Problem Formulation and Design

1

After that use the software to create project, add necessary files in it, then modify the main program according o the need of project. After doing this compile the project, create a binary executable file from this and use it to burn flash. After all this steps, use HyperTerminal Console to communicate with kit and view the output. Here is the flowchart of the project.

3. Implementation I have given you all basic information to come up with final solution. Here are the all steps with details.

3.1 Introduction to kit

Figure 2.1 Flow Chart

Pseudo Code: Include files like string.h, option.h, 44b.h, 44blib.h ,def.h.

main { Initialize UART for printing on the console terminal. Project Report using kit SAMSUNG's S3C44B0X

Your lines to print :“ student id and name”; } Function definitions.

kit

SAMSUNG's S3C44B0X 16/32-bit RISC microprocessor is designed to provide a costeffective and high performance micro-controller solution for hand-held devices and general applications[2]. By providing a complete set of common system peripherals, the S3C44B0X minimizes overall system costs and eliminates the need to configure additional components. The integrated on-chip functions that are described in this document are as follows: • 2.5V Static ARM7TDMI CPU core with 8KB cache. (SAMBA II bus architecture up to 66MHz) • External memory controller. (FP/EDO/SDRAM Control, Chip Select logic) • LCD controller (up to 256 colors DSTN) with 1-ch LCD-dedicated DMA. • 2-ch general DMAs / 2-ch peripheral DMAs with external request pins • 2-ch UART with handshake(IrDA1.0, 16-byte FIFO) / 1-ch SIO • 1-ch multi-master IIC-BUS controller • 1-ch IIS-BUS controller • 5-ch PWM timers & 1-ch internal timer • Watch Dog Timer • 71 general purpose I/O ports / 8-ch external interrupt source

2

• • • •

Power control: Normal, Slow, Idle, and Stop mode 8-ch 10-bit ADC. RTC with calendar function. On-chip clock generator with PLL.

Figure 3.2 New Project Dialogue [2] Add files to project. Click on DebugRel and go to Project  Add files to project and then select Source and Include files to project. [3] Remove unnecessary files from that list. [4]Modify the main program file so it can print the required output.

3.3. Compile, link and create executable file First we need to configure the armcc compiler. For that go to Tool  armcc, so will see window similar to this:

Figure 3.1 Block Diagram of kit

3.2 create a project using ARM SDT 2.51[3] [1] Create a new project: Go to File  New and select new project. Give the name of project. This will crate new project.

Project Report using kit SAMSUNG's S3C44B0X

kit

Figure 3.3 Compiler Configuration In this window set Byte Sex to little Endian and Floating point processor to none. After completing this configure armlink, for that go to Tool  armlink, so you will see similar window:

3

After that configuration of the armasm is as follows, go to Tool  armasm and configure the floating point processor to none.

Figure 3.4 Linker Configurations (Entry & Base) In this we have to configure two things [1] First go to Entry and Base tab and set the values as shown in the figure. [2] Then go to Image Layout tab and set the values as shown in the figure:

Figure 3.6 Assembler Configurations After doing this go to Project  Force build project. If there are no errors, save the project and exit.

3.4 Creation of binary file from project file Go to command prompt and cd to directory when our project file (.axf) is created. Then execute following command: fromelf –nozeropad [project_name.axf] –bin [binary_file_name] After giving this command it will create the binary file.

Figure 3.4 Linker Configurations (Image Layout) Figure 3.7 Create binary file

Project Report using kit SAMSUNG's S3C44B0X

kit

4

3.5 Burn the Compact Flash To burn the flash, use F.BAT file given with distribution board CD. Just modify the binary file to one which is created by above step. Then attach the Parallel port of computer to JTAG connector of kit using Parallel and JAG connector.

steps to configure HyperTerminal Console are described below.

Figure 3.10 Block Diagram for serial connection to kit for HyperTerminal communication

Figure 3.8 Block Diagram for Parallel connection to kit to burn flash After that power up the kit and execute F.BAT file. So it will generate similar output is succeed.

Figure 3.11 HyperTerminal Console Connection

Figure 3.9 Output of BAT file to burn flash

3.6 Use hyper terminal to communicate with kit Now we have to use HyperTerminal Console to communicate with the kit and show output. The Project Report using kit SAMSUNG's S3C44B0X

kit

5

Figure 3.14 Hyper Terminal output

4. Testing and Verification Figure 3.12 Connect To Dialogue [1] Open HyperTerminal Console program and you set will see starting screen, give any name in the Name field. [2] Then it asks for port selection, select port which you use to connect serial cable. [3] Then select properties of that port as 115200 bps and Flow control to none. Then click OK and the HyperTerminal Console is connected to the kit.

As this is a simple project, we do not have extensive testing. The project is burnt into Flash and after running it gives output as required.

5. Conclusion I developed small firmware that will run when the board is powered up and will display my name and Id on the HyperTerminal Console. From this lab I learned about board and also how to print instructions for user which helps me in future when I suppose to develop sophisticated standalone interfacing system.

6. Acknowledgement I would like to thanks Prof. Harry Li for providing information and help needed for this project.

7. References [1] H Li, “Author Guidelines for CMPE 242 Project Report”, Lecture notes of CMPE 242, Computer Engineering Department , College of Engineering, San Jose State University.

Figure 3.13 Properties of connection

[3] ARM Software Development Toolkit Version 2.50 User Guide

Output of the program: Project Report using kit SAMSUNG's S3C44B0X

[2] PRODUCT OVERVIEW of S3C44B0X RISC MICROPROCESSOR

kit

6

8. Appendix [1] Source code #include <string.h> #include "..\inc\option.h" #include "..\inc\44b.h" #include "..\inc\44blib.h" #include "..\inc\def.h" void Main(void) { rSYSCFG=SYSCFG_8KB; #if (PLLON==1) ChangePllValue(PLL_M,PLL_P,PLL_S); #endif Isr_Init(); Port_Init(); Uart_Init(0,115200); Uart_Select(0); Uart_Printf("\nHELLO”); Uart_Printf("\n\Name: MITUL S MODI"); Uart_Printf("\nSTUDENT ID: 005370057”); }

Project Report using kit SAMSUNG's S3C44B0X

kit

7

Related Documents

Project Report 1
November 2019 5
1 Project Report
May 2020 1
Report Project 1.docx
October 2019 13