Вы находитесь на странице: 1из 7

PROJECT REPORT 1

MODI MITUL
Computer Engineering Department, College of Engineering
San Jose State University, San Jose, CA 94303
E-mail: mitul.study@gmail.com

Abstract
I am required to write a firmware program to print 2. Methodology
a greeting message with my name, SID (student ID) Here I mentioned all the details regarding how to
on the hyper terminal console. Then write this complete objectives and technical challenges
program to Compact FLASH. When the system is associated with it. All the steps to accomplish the
powered up, this firmware program will start the goals of project are explained.
execution. In order to accomplish project, I have to
[1] Initialize and configure the 32bit RISC 2.1 Objectives and Technical
processor development board using the test Challenges
programs from the distribution CD.
The objectives of this project are:
[2] Write a small C program as bootable ROM,
[1] Introduction to S3C44B0X kit.
compile and build the program.
[2] How to create a project using ARM SDT 2.51
[3] Write the program to the FLASH.
[3] How to compile, link and create executable file
[4]. Establish serial communication via hyper
[4] Creation of binary file from project file
terminal.
[5] Method to burn flash
[5]. Power the board up, then your bootable
[6] Use hyper terminal to communicate with kit
program will print a greeting message on hyper
terminal console.
2.2 Problem Formulation and Design
1. Introduction To fulfill the requirement of project, I used
In any computer system, firmware which is stored in software, ARM SDT v2.51, which is included with
BIOS is the starter point. Processor will start this kit. The ARM Software Development Toolkit
execution from this only when powered up. So in (SDT) consists of a suite of applications, together
this project I have to create such firmware. with supporting documentation and examples, which
enable one to write and debug applications for the
The firmware must do following work: ARM family of RISC processors. One can use the
[1] Boot kit and initialize all required peripherals. SDT to develop, build, and debug C, C++, or ARM
[2]Produce required output. assembly language programs.

Project Report using kit SAMSUNG's S3C44B0X kit 1


After that use the software to create project, add Your lines to print :“ student id and name”;
necessary files in it, then modify the main program }
according o the need of project. After doing this Function definitions.
compile the project, create a binary executable file
from this and use it to burn flash.
3. Implementation
I have given you all basic information to come up
After all this steps, use HyperTerminal Console to
with final solution. Here are the all steps with
communicate with kit and view the output.
details.

Here is the flowchart of the project.


3.1 Introduction to kit
SAMSUNG's S3C44B0X 16/32-bit RISC
microprocessor is designed to provide a cost-
effective 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
Figure 2.1 Flow Chart
FIFO) / 1-ch SIO
Pseudo Code:
• 1-ch multi-master IIC-BUS controller
Include files like string.h, option.h, 44b.h, 44blib.h • 1-ch IIS-BUS controller
,def.h.
• 5-ch PWM timers & 1-ch internal timer
main • Watch Dog Timer
{ • 71 general purpose I/O ports / 8-ch external
Initialize UART for printing on the console interrupt source
terminal.

Project Report using kit SAMSUNG's S3C44B0X kit 2


• Power control: Normal, Slow, Idle, and Stop Figure 3.2 New Project Dialogue
mode [2] Add files to project.
• 8-ch 10-bit ADC. Click on DebugRel and go to Project  Add files
• RTC with calendar function. to project and then select Source and Include files to
• On-chip clock generator with PLL. 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. 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:

Project Report using kit SAMSUNG's S3C44B0X kit 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.
Figure 3.6 Assembler Configurations
[2] Then go to Image Layout tab and set the values
as shown in the figure:
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 steps to configure HyperTerminal Console are
To burn the flash, use F.BAT file given with described below.
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.

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


As this is a simple project, we do not have extensive
Figure 3.12 Connect To Dialogue
testing. The project is burnt into Flash and after
[1] Open HyperTerminal Console program and you
running it gives output as required.
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. 5. Conclusion
I developed small firmware that will run when the
[3] Then select properties of that port as 115200 bps
board is powered up and will display my name and
and Flow control to none. Then click OK and the
Id on the HyperTerminal Console. From this lab I
HyperTerminal Console is connected to the kit.
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.

[2] PRODUCT OVERVIEW of S3C44B0X RISC


Figure 3.13 Properties of connection MICROPROCESSOR

[3] ARM Software Development Toolkit Version


Output of the program:
2.50 User Guide

Project Report using kit SAMSUNG's S3C44B0X 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

Вам также может понравиться