Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
R 2.0
Authors
Supreet
APPROVAL
Name
Function
Organisation
Date
Signature
Wipro
Distribution
Contact Info
Name
Telephone
+91-80-2668-3700
+91-80-2678-1643
e-mail
emdby@iwavesystems.com
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
DOCUMENT IDENTIFICATION
Project Name
Document Name
Document Home
iW-EMDBY
iW-EMDBY-UM-01-R1.0-REL1.0
//server/emdby/svn/trunk/iW-EMDBY-PF-01-R1.0/iW-EMDBYSF-01-R1.0/iW-EMDBY-UM-01-R1.0/iW-EMDBY-UM-01-R1.0RELx.yz-ULK/iW-EMDBY-UM-01-R1.0-REL2.0-ULK/iWEMDBY-UM-01-R1.0-REL2.0_stub.doc
2.0
Final version
Wipro
Revision No
Status
Audience
Date
Description
Author
1.0
13th July 2010 Initial Draft Version
2.0
14th Feb 2011 Final Version
PROPRIETARY NOTICE: This document contains proprietary material for the sole use of the
intended recipient(s). Do not read this document if you are not the intended recipient. Any
review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended
recipient (or authorized to receive for the recipient), you are hereby notified that any disclosure,
copying distribution or use of any of the information contained within this document is
STRICTLY PROHIBITED. Thank you. iWave Systems Tech. Pvt. Ltd.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Table of Contents
1.
2.
ULK_PRINTF...............................................................................................................................................110
ULK_CPANEL_PRINTF.................................................................................................................................110
ULK_SCANF_HEX........................................................................................................................................111
ULK_SCANF_STRING...................................................................................................................................111
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
2.5.
2.6.
3.
4.
EX_CPANEL_PRINT.....................................................................................................................................143
EX_DEBUG_BREAK.....................................................................................................................................147
EX_GPIO_INTERRUPT..................................................................................................................................156
EX_LED......................................................................................................................................................162
EX_SERIAL_PRINT......................................................................................................................................170
EX_SW_INTERRUPT....................................................................................................................................174
6.
5.
DEBUG_BREAK......................................................................................................................................112
DEBUG_BREAK_INTR..........................................................................................................................112
TECHNICAL SUPPORT................................................................................................................................185
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
2. Ulk Control Panel will be launched as shown in figure below. Initially it will be in Not
Connected State as shown in ULK Device Status Field.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
2. Select the Number of Stub Clients to be detected from the Stub Host in the ULK
Count field. For eg: In the figure below, ULK Count is selected as 1 which means
that Stub host will send the Broadcast message to all the Stub Client and once Stub Host
gets the response from any 1 Stub client, it will not accept the response from any other
Stub client. And hence only 1 Stub client Will be displayed in the List Down menu.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
4. Once the List ULK button is clicked with ULK Count set to 1, Host Stub will wait
for the response from the Stub client for broadcast packet.The Host Stub will start
scanning for the Stub Client as shown in figure. The ULK Device Status will be
updated as Scanning.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
5. Once the Host Stub gets the response from the Stub client, it will Display the Number of
ULK detected (in our case 1) in the list down menu as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
6. If we Click on the List Down menu, it will show the details about the Detected Client
Stub. For eg: In the Figure below, ULK Stub Client Name is NO-NAME, IP- Address
is 192.168.2.80 and MAC- Address is 11:22:33:44:55:67.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
7. If the Stub Host is not able to detect the Stub client when the List ULK button is
clicked, the below shown error No ULKs Found During Scan will be displayed.This
may occur if not Client Board is connected or if the network is not up in the Client board
or Stub mode is not set using Toggle switch in client board.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
2. It will Display the Un-Named Stub client in the List Down menu as shown in figure
below. The Stub Client Name is NO-NAME, IP-Address is 192.168.2.80 and MACAddress is 11:22:33:44:55:67.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
2. The following window will be displayed as shown in figure below. It will display the
Stub Client IP-Address and Existing ULK Name. For eg: In our case IP Address is
192.168.2.80, ULK Name is NO-NAME.
3. Change ULK Name. For eg: In our case, ULK Name is set to ULK1 and Time Out is
set to 60 seconds. This Timeout means that After issuing the Name ULK command, How
much time to wait for the response from Stub client .Once it changes the Name, it will
return immediately. Click on Name ULK as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
4. Once the Name ULK button is clicked, a warning message will be displayed asking
whether Name can be changed or not. Click on OK as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
5. If the ULK Naming is successful, Below shown message ULK Naming Completed
Successfully will appear.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
After Changing the Stub Client Name, Stub Host will again scan for the Stub client and
will display in the List down menu. For eg: In our case ULK name is changed from NONAME to ULK1 and is displayed in the List down menu as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
2. The below Shown window will be displayed when Find ULK button is clicked. Enter
the ULK Stub Client Name to be found and click on Scan Button. For Eg: in our case
ULK Name is ULK1.
3. The Stub host will search for the Stub client with name ULK1 and if it finds, it will
display the Stub client details in the List Down menu as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
4. If the Stub Host is not able to find the particular stub client(for eg ULK1), the below
shown error message will be displayed.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
1.6.Connect
This is used to connect the Stub Host to the Stub Client displayed in the list down menu.After the
connection is established, user can do all the operations on the Stub Client.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
1. After selecting the Stub client from the list down menu, Click on the Connect button to
connect to the Stub Client as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
3. After Establishing the connection, the ULK Device Status will be updated as
Connected - Idle as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
1.7. DisConnect
This is used to Disconnect the Previous connection between Stub Client and Stub Host.
1. Click on the DisConnect button as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
2. After the Disconnection is successful, the ULK Device Status will be updated as Not
Connected as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
1.8.Load
This is used to download the user application binary/srec or FPGA XSVF file in the SD-RAM
location for execution.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
2. Select the ARM binary file name as shown in figure below. Click on Load Button to
load the ARM binary in the SD-RAM location 0x82000000.Note that File with extension
.bin(binary) and .srec(srecord) will only be supported.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
3. Once the Load Button is clicked, the Below Shown ULK Warning message will be
displayed. Click on OK .
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
4. Once the File is downloaded in the SD-RAM location successfully, the below shown
message File Successfully Sent to Stub Client will be displayed .
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
2.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
3. Once the Load button is clicked, the below shown warning message will be displayed.
Click on OK to continue the file download.
4. Once the FPGA file is successfully downloaded in the SD_RAM, the below shown
message File Successfully Sent to Stub Client will be displayed. Click on OK and
then on Cancel to enter the main application page.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
1.9.Run
This is used to Run(execute) the user application binary/srec or FPGA XSVF file from the
previously downloaded SD-RAM location.
1. Click on the Run button as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
1.9.1.
1. Enter the SD-RAM Address from which the ARM binary has to be executed. Default is
0x82000000. Also Make Sure that ARM tab is selected. Click on Execute button.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
2. When the Execute button is Clicked, the below message will be displayed.Click on
OK to Execute the Application from the SD-Ram Location 0x82000000.
3. Once the execution of the Application is completed successfully, the below shown
message Program Execution Completed will be displayed as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
1.9.2.
1.
Run(Execute) FPGA
Enter the SD-RAM Address from which the FPGA has to be executed. Default is
0x82000000. Also Make Sure that FPGA tab is selected. Click on Execute button.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
2. When the Execute button is Clicked, the below message will be displayed.Click on
OK to Execute the FPGA Application from the SD-Ram Location 0x82000000.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
3. Once the execution of the FPGA Application is completed successfully, the below shown
message FPGA Programming Success will be displayed as shown in figure below
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
1.10. Continue
If the User application enters in the Debug Trap mode, User has to Click on the Continue
button to continue the Program Execution as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
2. When Mem R/W button is clicked, the below shown ULK Mem R/W Operation
window will be displayed. This window consists of
a. Address - This is the peripheral address from which data has to be read/written.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
b. Data In case of Read operation, data read from the specified address will be
displayed in this field if no of words to be read is 1. In case of write, we have to fill
this field with the value which has to be written in the pheriperal address.
c. No of Words The number of words of data to be read from the specified address
should be mentioned in this field. Note that we can write only 1 word data in the
peripheral address at a time but we can read any number of words.
d. Mode This field should be set to specify in which mode(32 bit,16 bit,8 bit) data has
to be read/written. The Mode for most of the peripheral is 32 bit.
3. The Mode Field(32,16,8 bit) can be Selected by clicking on the arrow in the Mode
field as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
2. Once the Read button is clicked, Data read from the Specified Address will be
displayed in the Data field. For e.g.: In our case data present in the SD-RAM address
0x83000000 is 0xFFFFFFFF as shown in Data field below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
3. If the User wants to read more words of data from the DDR Address, change the No of
Words Field to the number of words to be read. For eg: In our case No of Words is set
to 10 which indicates that 10 words of data will be read starting from 0x83000000. Click
on Read button to read 10 words of data.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
4. The Data read from the peripheral register address will be displayed as shown in figure
below. If the user wants to save the Read data, Click on Save button .
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
5. Once the Save button is clicked, the below shown window will appear. Enter the Name
by which the file has to be saved and also select the directory where the file will be
saved. Click on Save button again.
6. Once the file is saved successfully, the below shown message Log File Saved will be
displayed .
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
7. If the user wants to clear the data shown in the text box, Click on Clear button as
shown in figure below.
8. After Clicking on the Clear button, all the data shown in the text boxes will be
displayed as shown in figure below. After Doing all the Mem R/W Operation, Click on
Cancel to enter into main Application page.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
2. Once the Write button clicked, the below shown warning message will be displayed.
Click on OK button to continue the data writing.
3. Once the data is written successfully in the user mentioned memory address, the below
shown message Write Operation Completed will be displayed as shown in figure
below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
2. Once the Nand Read button is clicked, the ULK Flash Read Operation window will
appear as shown in figure below.This windows contains Flash address field which
should contain the address of the Nand flash from which data has to be read, No of
Words field which should contain the no of words of data to be read.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
3. Enter the Flash address from which data has to be read and also enter the number of
words of data to be read. For eg: In our case , Flash Address is 0x00080000 and No of
Words is 1. Click on Read button to read the data as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
4. Once the read button is clicked, the below shown confirmation message will be
displayed. Click on OK to read the data from the nand flash.
5. The data read from the Nand Flash address will be displayed in the text box as shown in
figure below.User can also save this values in the file for further usage.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
3. If the user wants to write in any of the registers, Enter the value in that register field and
select the corresponding check boxes and then Click on Write Reg button to update
the register values.For eg: In our case , value entered in the Reg R0 field is 99 and
corresponding check box is selected. Click on Write Reg button to write into that
register as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
4. Once the Register is written successfully, the below shown message Register Write
Completed will be displayed as shown in figure below. Click OK. Once all the
read/write operation is done, Click on Cancel button to enter into main window.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
1. Stub client has to enter into Debug trap mode as mentioned in (1.13 point 1). Once debug
trap is entered, Click on Banked Reg R/W ARM/DSP button to read all the banked
register values as shown in figure below.
2. When the Banked Reg R/W ARM/DSP button is clicked, it will read all the register
values and will be displayed. No need to click on Read Reg button again as shown in
figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
3. If the user wants to write in any of the registers, Enter the value in that register field and
select the corresponding check boxes and then Click on Write Reg button to update
the register values. For e.g.: In our case , value entered in the FIQR8 field is 12345678
and corresponding check box is selected. Click on Write Reg button to write into that
register as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
4. Once the Banked Register is written successfully, the below shown message Register
Write Completed will be displayed as shown in figure below. Click OK. Once all
the read/write operation is done, Click on Cancel button to enter into main window.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
1.15. Flash
This is used to program the X-Loader,U-Boot, U-Image, Root file system,FPGA, General file in
the Nand Flash individually.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
2. Once the Flash button is clicked, the below shown ULK Flash Operation window will
be displayed .
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
2. Once the Load button is clicked, the below shown ULK Warning message will be
displayed. Click on OK to continue the Load operation.
3. Once the X-Loader File is successfully loaded in the SD RAM location , the below
shown success message will be displayed.Click on OK.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
4. Once the X Loader file is successfully loaded, Click on Flash button to program the XLoader in the NAND Flash as shown in figure below.
5. Once the Flash button is clicked, the below shown ULK Warning message will be
displayed. Click on OK to continue the NAND Flash Programming.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
6. Once the X Loader is successfully programmed in NAND Flash, the below shown
Success message X Loader Successfully Flashed will be displayed . Click OK.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
2. Select the U Boot file in the File Name field using Browse button which has to be
programmed in NAND Flash. Note that U Boot file with the extension .bin has to be
selected. If any other file with different extension is selected, it will display error
message. The U Boot will be first loaded in the SD-RAM location 0x82000000 when
Load button is clicked and can then be programmed in the fixed NAND Flash location
0x00080000 when Flash button is clicked . Once the File and U Boot component is
selected, Click on Load button as shown in figure below. The memory space allocated
for U BOOT is 2 MB starting from 0x00080000 (i.e from 0x00080000 0x00280000).
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
3. Once the Load button is clicked, the below shown ULK Warning message will be
displayed. Click on OK to continue the Load operation.
4. Once the U Boot File is successfully loaded in the SD RAM location , the below shown
success message will be displayed. Click on OK.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
5. Once the U Boot file is successfully loaded, Click on Flash button to program the U
Boot in the NAND Flash as shown in figure below.
6. Once the Flash button is clicked, the below shown ULK Warning message will be
displayed. Click on OK to continue the NAND Flash Programming.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
7. Once the U Boot is successfully programmed in NAND Flash, the below shown Success
message U BOOT Successfully Flashed will be displayed . Click OK.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
2. Select the Linux Image file in the File Name field using Browse button which has to
be programmed in NAND Flash. The Linux Image will be first loaded in the SD-RAM
location 0x82000000 when Load button is clicked and can then be programmed in the
fixed NAND Flash location 0x00280000 when Flash button is clicked . Once the
File and Linux Image component is selected, Click on Load button as shown in figure
below. The memory space allocated for Linux Image is 4 MB starting from 0x00280000
(i.e from 0x00280000 0x00680000).
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
3. Once the Load button is clicked, the below shown ULK Warning message will be
displayed. Click on OK to continue the Load operation.
4. Once the Linux Image File is successfully loaded in the SD RAM location , the below
shown success message will be displayed. Click on OK.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
5. Once the Linux Image file is successfully loaded, Click on Flash button to program the
Linux Image in the NAND Flash as shown in figure below.
6. Once the Flash button is clicked, the below shown ULK Warning message will be
displayed. Click on OK to continue the NAND Flash Programming.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
7. Once the Linux Image is successfully programmed in NAND Flash, the below shown
Success message Z Image Successfully Flashed will be displayed . Click OK.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
2. Select the Root File System file in the File Name field using Browse button which has
to be programmed in NAND Flash. Note that Root File system file with the extension
.gz has to be selected. If any other file with different extension is selected, it will
display error message. The Root File System will be first loaded in the SD-RAM
location 0x82000000 when Load button is clicked and can then be programmed in the
fixed NAND Flash location 0x00680000 when Flash button is clicked . Once the
File and Root File System component is selected, Click on Load button as shown in
figure below. The memory space allocated for Root File System is 10 MB starting from
0x00680000 (i.e from 0x00680000 0x01080000).
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
3. Once the Load button is clicked, the below shown ULK Warning message will be
displayed. Click on OK to continue the Load operation.
4. Once the Root File System File is successfully loaded in the SD RAM location , the
below shown success message will be displayed. Click on OK.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
5. Once the Root File System file is successfully loaded, Click on Flash button to
program the Root File System in the NAND Flash as shown in figure below.
6. Once the Flash button is clicked, the below shown ULK Warning message will be
displayed. Click on OK to continue the NAND Flash Programming.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
7. Once the Root File System is successfully programmed in NAND Flash, the below
shown Success message Initrd Successfully Flashed will be displayed . Click OK.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
2. Select the FPGA file in the File Name field using Browse button which has to be
programmed in NAND Flash. Note that FPGA file with the extension .XSVF has to be
selected. If any other file with different extension is selected, it will display error
message. The FPGA file will be first loaded in the SD-RAM location 0x82000000 when
Load button is clicked and can then be programmed in the fixed NAND Flash location
0x01080000 when Flash button is clicked . Once the File and FPGA component is
selected, Click on Load button as shown in figure below. The memory space allocated
for Root File System is 2 MB starting from 0x01080000 (i.e from 0x01080000
0x01280000).
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
3. Once the Load button is clicked, the below shown ULK Warning message will be
displayed. Click on OK to continue the Load operation.
4. Once the FPGA File is successfully loaded in the SD RAM location , the below shown
success message will be displayed. Click on OK.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
5. Once the FPGA file is successfully loaded, Click on Flash button to program the
FPGA file in the NAND Flash as shown in figure below.
6. Once the Flash button is clicked, the below shown ULK Warning message will be
displayed. Click on OK to continue the NAND Flash Programming.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
7. Once the FPGA file is successfully programmed in NAND Flash, the below shown
Success message FPGA Successfully Flashed will be displayed . Click OK.
1.15.6.
Flashing General
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
2. Select the user file in the File Name field using Browse button which has to be
programmed in NAND Flash. Note that user file with any extension/no extension can be
programmed in the NAND Flash. Enter the NAND Flash Location where the user file has
to be download in Address field. For eg: In our case , address entered is
0x030a0000 .The user file will be first loaded in the SD-RAM location 0x82000000
when Load button is clicked and can then be programmed in any NAND Flash
location when Flash button is clicked . Once the File and General component is
selected, Click on Load button as shown in figure below. The memory space allocated
for User is 79.375 MB starting from 0x030A0000 (i.e from 0x030A0000 0x08000000).
3. Once the Load button is clicked, the below shown ULK Warning message will be
displayed. Click on OK to continue the Load operation.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
4. Once the User File is successfully loaded in the SD RAM location , the below shown
success message will be displayed. Click on OK.
5. Once the User file is successfully loaded, Click on Flash button to program the user
file in the NAND Flash as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
6. Once the Flash button is clicked, the below shown ULK Warning message will be
displayed. Click on OK to continue the NAND Flash Programming.
7. Once the User file is successfully programmed in NAND Flash, the below shown Success
message File Successfully Flashed to general area of nand flash will be displayed .
Click OK.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
2. When the Flash Release button is clicked, the below shown ULK Flash Release
Operation window will be displayed as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
3. Select the final released binary filename by using browse button and click Load as
shown in figure below. When the Load button is clicked, the Final release binary will
be downloaded in the SD-RAM location which can then be programmed in Nand Flash.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
4. Once the Load button is clicked, the below shown confirmation message will be
displayed. Click OK to continue the loading process. It will take 3 5 minutes to load
the final released binary in the SD-RAM.
5. Once the Final released binary is successfully loaded, the below shown message File
Successfully Sent to Stub Client will be displayed.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
6. Once the final released binary is loaded in SD- RAM, it can be then programmed in
NAND Flash. Click on Flash button to program into the NAND Flash as shown in
figure below.
7. Once the Flash button is clicked, the below shown confirmation message will be
displayed. Click on OK to program the final released binary from SD_RAM to NAND
Flash.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
8. After the Final released binary is programmed successfully in the NAND Flash, the
below shown message Nand Flash Successfully Updated will be displayed. Click on
OK.
1.17. Advanced
This is used to set the IP-Address of the Stub client either statically or dynamically and also to
program the ARM and FPGA applications in the boot modes.
1. Click on Advanced button as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
1. When the Advanced button is clicked, the below shown Window will be displayed.
Make sure that General tab is selected.
2. If the user want to set Static IP-Address for the Client Stub, Enter the IPAddress to
be set in the Static IP Address field and select the Static radio button. For eg: In
our case IP-Address is set to 192.168.2.80 . Click on Save button to save the IPAddress as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
3. Once the Save button is clicked, the below shown confirmation message will be
displayed .Click on OK to save the Static IP-Address.
4. After the Static IP-Address is set successfully, the below shown message Boot
Mode set to Static!! will be displayed.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
5. If the user want to set the IP-Address Dynamically(DHCP),select the DHCP radio
button and click on Save button as shown in figure below.
6. Once the Save button is clicked, the below shown confirmation message will be
displayed. Click on OK to take the IP_Address from DHCP.
7. After the DHCP Boot Mode is set successfully, the below shown success message
Boot Mode set to DHCP!! will be displayed.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
8. To Set all the Subnets for scanning the ULK / ULK Naming, select the All Subnets
radio button and click on Save button as shown in figure below.
9. Once the Subnets configuration is successful, the below shown success message will
be displayed.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
10. To Set the Default Subnet for scanning the ULK / ULK Naming, select the Default
radio button and click on Save button as shown in figure below.
11. Once the Subnets configuration is successful, the below shown success message will
be displayed.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
2. The ARM and FPGA applications can be programmed in different boot modes. To select
the boot mode in which application can be programmed, Click on the Select Boot
Mode and select the Boot Mode where the application binary will be programmed.
There are 5 Boot Modes(Boot Mode 0x02 Boot Mode 0x06) as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
3. To program the ARM/ FPGA application binary in the Boot Mode 0x02, select Boot
Mode 0x02 from the Select Boot Mode list down menu. The Boot Mode Usage
field will tell currently which application is programmed in Boot Mode 0x02.Since
initially there is no application programmed in the Boot Mode 0x02, it will display
Inactive.. as shown in figure below. The Current Operation field will tell the
current operation status. Since now no operation is going on, it will display Idle. ..
4. Select the ARM application binary by using browse button in the ARM field and also
select the Check box. Select the FPGA application binary by using browse button in the
FPGA field and also select the Check box. Click on Set Boot Mode button to
program the ARM/FPGA application binary in the NAND flash. Note that only
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
5. Once the Set Boot Mode button is clicked, the below shown confirmation message will
be displayed. Click on OK to continue the programming.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
6. The current programming operation will be displayed in the Current Opertion field as
shown in figure below.
7. Once the programming is done successfully, the below shown success message will be
displayed.
8. Once the programming is done, cancel the current window and re-enter again in the same
window by selecting Advanced->Boot Modes->Boot Mode 0x02. Since
previously we had downloaded ARM and FPGA application, it will show in the Boot
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Mode Usage as ARM and FPGA applications is currently programmed in Boot Mode
0x02 as shown in figure below.
1.18. Send
This is used to send the hex value or string from Stub Host to the Stub Client. When the Stub
Client executes ulk_scanf_hex/ulk_scanf_string, the stub client enters in the receive mode
waiting for the data from the Stub Host.
1. When the Stub Client enters in the hex value receive mode(via ulk_scanf_hex), one
message will be displayed in the ULK Device Status as Console Scan Hex
which mean that Stub client is waiting for hex value from Stub Host as shown in figure
below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
2. Once the Stub Client is Waiting for hex Data from the Stub Host, Enter the hex data in
Enter Scanf Data field and click on send button. For eg: In our case data entered is
7as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
3. When the Stub Client enters in the String receive mode(via ulk_scanf_string), one
message will be displayed in the ULK Device Status as Console Scan String
which mean that Stub client is waiting for Character or a string from Stub Host as shown
in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
4. Once the Stub Client is Waiting for Char/String Data from the Stub Host, Enter the
Character/string data in Enter Scanf Data field and click on send button. For eg:
In our case data entered is n as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
2. Once the Save Log button is clicked, the below shown window will be displayed.
Enter the file name to be saves in Name field and also the directory path in Save in
folder field as shown in figure below.
3. Once the Log file is saved successfully, the below shown window will be displayed.Click
on OK.
1.20. STOP
This is used to stop the Stub Client scanning process.
1. If the user want to stop the Stub Client scanning process(List ULK/Find ULK/List
Unnamed) , Click on Stop button as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
2. Once the stop button is clicked , the below shown message will be displayed.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
2.2.ulk_cpanel_printf
Syntax:
void ulk_cpanel_printf (const char *fmt, ...)
Input parameter:
const char *fmt String of characters
Description:
This is used to display the Debug message(prints) on the Control panel console and Serial
console.
Return Value:
NONE.
Example:
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
ulk_cpanel_printf( This string will be displayed on Control panel console and serial
console \n);
2.3.ulk_scanf_hex
Syntax:
void ulk_scanf_hex (unsigned long *hex_variable)
Input parameter:
unsigned long *hex_variable Hex Value.
Description:
This is used to Scan a hex value from the ULK control panel(Stub host) and sent to the Stub
Client.
Return Value:
NONE.
Example:
unsigned long a = 0;
ulk_scanf_hex (&a);
2.4.ulk_scanf_string
Syntax:
void ulk_scanf_string (char* user_string)
Input parameter:
char* user_string a character or a string .
Description:
This is used to Scan a character or a string from the Ulk control panel(Stub host) and sent to
the Stub Client.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
2.5.DEBUG_BREAK
This should be called inside main function where the user wants to Debug the application
by
reading/writing in the registers(r0 r12, LR,Pc etc).
Example:
DEBUG_BREAK;
2.6.DEBUG_BREAK_INTR
This should be called inside Interrupt /fast interrupt ISR function where the user wants to
Debug the application by reading/writing in the registers(r0 r12, LR,Pc etc).
Example:
DEBUG_BREAK_INTR;
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
2. It will ask for the workspace where projects has to be saved. By default it will save in
/home/test/workspace. If the user wants to save the projects in some other folder,give the
appropriate path and press OK.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
4. Once the Eclipse is launched, the below shown window will be opened. It will have 6
sample applications as shown in below figure.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
2. Enter the Name of the project to be created in the Project name Field , for eg: test
as shown in figure below. Make sure that Toolchains is selected as Linux GCC and
then press Next> button
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
3. The Below screen will appear when next button is clicked. Make sure that Default
button is selected. Press Finish button.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
4. The new C project will be created and will be added to the Project Explorer tab as
shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
5. Right Click on the newly created project(test) and then select New -> File as shown in
figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
6. Write the File name as project.lds in the File name Field and click on Finish.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
7. Copy the below patch of code into the newly created file project.lds as shown in
figure below.
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32littlearm")
OUTPUT_ARCH(arm)
ENTRY(main)
MEMORY
{
ram
: o = 0x82000000, l = 30k
usrstack : o = 0x82007800, l = 20k
}
SECTIONS
{
/* Code and Constants */
.text :
{
. = 0x00;
__text_start = .;
*.o(entry)
*.o(.text)
*.o(.strings)
*.o(.rodata)
*.o(.rodata.*)
*.o(.comment)
*.o(.debug*)
*(.rodata.*)
*(.rodata)
*(.eh_frame)
. = ALIGN(32);
__text_end = .;
} > ram
/* Initialized data */
.init :
{
. = ALIGN(32);
__data_start = .;
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
. = ALIGN(32);
/* nk.o(.data)*/
*(.data)
*(.glue_7)
*(.glue_7t)
. = ALIGN(32);
__data_end = .;
. = ALIGN(32);
} > ram
.bss :
{
__bss_start = .;
*(.bss)
*(COMMON)
. = ALIGN(32);
__bss_end = .;
} > ram
/* Application stack */
.stack :
{
__stack_start = .;
*(.stack)
__stack_end = .;
. = ALIGN(32);
} > usrstack
}
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
8. Right Click on the newly created project(test) and then select New -> Header File as
shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
9. Write the Header file name as macros.h and press Finish as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
10. Copy the below patch of code into the newly created file macros.h as shown in figure
below.
/* Use PROGRAM_ENTRY to make the entry function (first function
to be executed)
* to come in "entry" section. The "entry" section is mapped to
the initial
* section of lds file
* .text :
* {
*
__text_start = .;
*
*.o(entry)
*
*.o(.text)
*
*/
#define PROGRAM_ENTRY __attribute__ ((section("entry")))
#define DEBUG_BREAK { \
__asm (" STMFD
sp!, {r14} "); \
__asm (" swi #0x10 "); \
__asm (" LDMFD
sp!, {r14} "); \
}
#define DEBUG_BREAK_INTR { \
__asm (" swi #0x10 "); \
}
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
11. Right Click on the newly created project(test) and then select New -> Source File as
shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
12. Write the Source file name as main.c and press Finish as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
13. Before writing any application code, user have to add the below patch to their main file.
Only after adding this 3 lines, created application will work properly.
#include "macros.h"
#include <ulk.h>
int main(void) PROGRAM_ENTRY;
Note that user can write code inside this file but the above 3 lines should be included in
this main file.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
14. Right Click on the newly created project(test) and then select New -> File as shown in
figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
15. Write the file name as Makefile and press Finish as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
16. Copy the below patch of code into the newly created file Makefile as shown in figure
below.
CROSS_COMPILE=/ulk/toolchain/CodeSourcery/Sourcery_G+
+_Lite/bin/arm-none-linux-gnueabiINCL = /usr/include/ulk
TOOLCHAIN=gcc
OUTFILE_SDRAM=test
AS=$(CROSS_COMPILE)as
CC=$(CROSS_COMPILE)gcc
LD=$(CROSS_COMPILE)ld
NM= $(CROSS_COMPILE)nm
SIZE=$(CROSS_COMPILE)size
OBJCOPY=$(CROSS_COMPILE)objcopy
OBJDUMP=$(CROSS_COMPILE)objdump
CCFLAGS=-I$(INCL) -c -O3 -Wall -mcpu=arm9
LIBS_PATH1=/ulk/toolchain/CodeSourcery/Sourcery_G+
+_Lite/lib/gcc/arm-none-linux-gnueabi/4.2.1
LIBS_PATH2=/usr/lib
LIBS = -L$(LIBS_PATH2) -lulk -L$(LIBS_PATH1) -lgcc
LDFLAGS+=-T project.lds -Map test.map
OBJS= main.o
rebuild: clean all
all: sdram
sdram: $(OBJS)
$(LD) $(OBJS) $(LDFLAGS) $(LIBS) -Ttext 0x82000000 -n
-O elf32-arm -o $(OUTFILE_SDRAM).elf
$(OBJCOPY) --strip-debug --strip-unneeded $
(OUTFILE_SDRAM).elf -O binary $(OUTFILE_SDRAM).bin
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
clean:
rm
rm
rm
rm
-rf
-rf
-rf
-rf
*.bin
*.elf
*.map
*.o
In the Above Contents, the text marked in red color should be the project name (For eg:
in our case project name is test). The text marked in Green color should be the SDRAM Address where the Application has to be Loaded and Run.If this Make address
doesnot match with the address used while loading the Binary(using Load), application
will not work properly.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
NOTE: User has to always create the 3 files project.lds,macros.h and Makefile
when new project is created.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
2. Once the build is succeeded without any error , the below shown screen will be
displayed.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
3. When the project is compiled successfully,it will create a .bin and .srec files. For eg: In
our case, its test.bin and test.srec. Double click on test.bin to see the contents of the
test.bin file as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
4. Double click on test.srec to see the contents of the test.bin file as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
5. If the user want to Close the Eclipse Development Tool, Click on X(close Window) in
the top right corner in eclipse window as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
6. Once the close button is pressed, the below shown confirmation message will be
displayed. Click on OK to close the eclipse tool.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
2. Once Load button is pressed, the below shown Confirmation message will be
displayed. Click OK to continue the loading process.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
3. Once the File is successfully loaded, the below Shown success message will be
displayed. Click OK.
4. Once the Load is successful, Click cancel button in Load window and click on Run
button. Enter the Run Address as 82000000 and click on Execute button.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
6. Once the Application executes, the Debug message written in the Code will be displayed
in the ULK Control panel and pop up message will be displayed telling that Program
Execution is completed as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
4.2. ex_debug_break
This is the sample application to show how to enter in the Debug Trap Mode in the Client
Stub. This is done for debugging purpose.
Main Code:
#include "macros.h"
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
2. Once Load button is pressed, the below shown Confirmation message will be
displayed. Click OK to continue the loading process.
3. Once the File is successfully loaded, the below Shown success message will be
displayed. Click OK.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
4. Once the Load is successful, Click cancel button in Load window and click on Run
button. Enter the Run Address as 82000000 and click on Execute button.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
6. Once the Application executes, the Stub Client enters in the Debug trap mode when it
comes across first DEBUG_BREAK macro . Debug trap address will be shown in text
box (0x82000014), ULK Device Status will be updated as Debug Trap as shown in
figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
7. When Debug Trap mode is entered, user can read all the Register values. Click on Reg
R/W ARM/DSP to read/write the register values.In the Code we are writing the below
data in the registers.
r2 = 0x55 ; r3 = 0x44 ; r6 = 0x7 ; r4 = 0x53 . So when we read the registers, same data
will be displayed.
8. User can also change the register values. As shown in figure below Register R0 is set to
99 and R2 is set to 88. Select the corresponding check boxes and click on Write Reg
as shown in below figure.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
9. Once the register is written successfully, the below shown message will be displayed.
Click OK
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
10. Once all the register updates are done, Click on Continue button to continue the
program execution as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
11. When the Continue button is pressed, the program execution continues and enters
again in Debug trap when it comes across second DEBUG_BREAK macro.Click on
Reg R/W ARM/DSP button to read the register values. After the first debug break, we
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
are updating the register value r4 to 8 and r6 to 6. And when we read the registers, same
updated value will be displayed in Second debug break.
12. Click on Continue to continue the program execution. Once Continue button is
clicked, program execution will be completed as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
4.3.ex_gpio_interrupt
This is the sample application to show how to register the ISR and generate the interrupt When
lab interrupt Switch is pressed.
Main Code:
#include "macros.h"
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
#include <ulk.h>
int main(void) PROGRAM_ENTRY;
void ulk_gpio_stub_isr(void *pointer);
int main ()
{
unsigned char temp=0;
/* Generation of interrupt through GPIO */
int *interrupt_pointer = (int *)0x80700000;
// for interrupt switch pin
ulk_sys_pad_set_mux_mode( 170, 4);
ulk_gpio_set_dir(170 , 1);
ulk_sys_pad_set_pull(170 , 2);
ulk_sys_pad_set_dir(170 , 1) ;
ulk_gpio_get_data_in(170 , &temp);
ulk_cpanel_printf("press user switch to trigger the interrupt and press
Continue------\n");
ulk_gpio_irq_trig_edge_r( 170, 1);
ulk_gpio_irq_enable_mpu(170,1,(int)&ulk_gpio_stub_isr);
irq_installer (0x22,(unsigned long)&ulk_gpio_stub_isr,interrupt_pointer);
DEBUG_BREAK;
return 0;
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
2. Once Load button is pressed, the below shown Confirmation message will be
displayed. Click OK to continue the loading process.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
3. Once the File is successfully loaded, the below Shown success message will be
displayed. Click OK.
4. Once the Load is successful, Click cancel button in Load window and click on Run
button. Enter the Run Address as 82000000 and click on Execute button.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
6. Once the Application executes, the Lab GPIO interrupt will be enabled, ISR will be
registered and enters in the debug trap mode as shown in figure below. Now Press the
LAB GPIO Interrupt pin on the target board. When the Stub Client is in Debug trap
mode, interrupts will be disabled. So interrupts will not be generated immediately.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
7. Click on Continue Button to continue the program execution. Once Continue button
is pressed, ISR will be called for the LAB Interrupt pin. The Message inside the ISR is
displayed along with the ISR argument(pointer) as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
4.4.ex_led
This is the sample application to show how to Scan the user input(hex/string) from the Stub
Host and sent to Stub Client. This also demonstrates the Glowing of the Processor LED.
Main Code:
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
#include "macros.h"
#include <ulk.h>
int main(void) PROGRAM_ENTRY;
int main ()
{
char user_string[100];
unsigned long a = 0;
/* User input and Display*/
while(1)
{
ulk_cpanel_printf ("Enter the LED number to glow \n");
ulk_scanf_hex (&a);
ulk_cpanel_printf ("Value is %lx\n", a);
ulk_led_config(a-1);
ulk_led_on(a-1,1);
ulk_cpanel_printf ("Do u want to test LED again? Press 'y' or else 'n'
\n");
ulk_scanf_string (&user_string[0]);
ulk_cpanel_printf ("Entered String is %s \n", user_string);
ulk_led_on(a-1,0);
if (user_string[0] == 'n')
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
break;
}
return 0;
}
1. Detect the Stub Client connected using either of List ULK/ Find Unnamed/Find ULK as
mentioned above in section (1.2/1.3/1.5 ). Once the Connection is established, Select the
Stub client from Drop down menu list and connect to it as mentioned in section (1.6).
Once the Connection is established, Click on Load button. Select the binary file
ex_led.bin from the workspace in the Select File field. Enter 82000000 in the
Load Address Field and Click on Load to load the Control panel print application in
the SD-RAM location 0x82000000.Since while creating the application we have given
load address as 0x82000000 in the Makefile, the binary has to be loaded in
0x82000000 to execute the application properly.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
2. Once Load button is pressed, the below shown Confirmation message will be
displayed. Click OK to continue the loading process.
3. Once the File is successfully loaded, the below Shown success message will be
displayed. Click OK.
4. Once the Load is successful, Click cancel button in Load window and click on Run
button. Enter the Run Address as 82000000 and click on Execute button.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
6. Once the Application executes,it will come across first Hex scanf function. The ULK
Device Status will be updated as Console Scan Hex which means that Client Stub
is waiting for Hex value from the Stub host. The message Enter the LED number to
glow will be displayed in the text box as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
7. Enter the Led(hex) number which user wants to wants to glow in the Enter Scanf
Data Field . For eg: in our case number entered is 7. Once the number is entered, Click
on Send button to send the data to Stub client as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
8. Once the Send button is clicked, the 7th pin Led Light will glow. Check on the Board
whether the LED light is glowing properly. The program execution will then come across
String scanf function. The ULK Device Status will be updated as Console Scan
String which means that Stub client is waiting for String data from the Stub Host. If the
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
user wants to test more LEDs, press y or if the user wants to end the program
execution, press n in the Enter Scanf Data field as shown in figure below.
9. Once the Send button is clicked with string data as n , program execution will be
terminated as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
4.5.ex_serial_print
This is the sample application to show how to print the Debug Message on serial console.
Main Code:
#include "macros.h"
#include <ulk.h>
int main(void) PROGRAM_ENTRY;
int main()
{
ulk_printf(" This is a demo application to show the debug print over
serial(console)\r\n");
return 0;
}
1. Detect the Stub Client connected using either of List ULK/ Find Unnamed/Find ULK as
mentioned above in section (1.2/1.3/1.5 ). Once the the Connection is established, Select
the Stub client from Drop down menu list and connect to it as mentioned in section (1.6).
Once the Connection is established, Click on Load button. Select the binary file
ex_serial_print.bin from the workspace in the Select File field. Enter 82000000
in the Load Address Field and Click on Load to load the Control panel print
application in the SD-RAM location 0x82000000.Since while creating the application we
have given load address as 0x82000000 in the Makefile,the binary has to be loaded
in 0x82000000 to execute the application properly.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
2. Once Load button is pressed, the below shown Confirmation message will be
displayed. Click OK to continue the loading process.
3. Once the File is successfully loaded, the below Shown success message will be
displayed. Click OK.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
4. Once the Load is successful, Click cancel button in Load window and click on Run
button. Enter the Run Address as 82000000 and click on Execute button.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
6. Once the Application executes, the Debug message written in the Code will be displayed
in the Serial console(hyperterminal or minicom) and pop up message will be displayed
telling that Program Execution is completed as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
4.6.ex_sw_interrupt
This is the sample application to show how to register the software interrupt ISR and
generate the software interrupt.
Main Code:
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
#include "macros.h"
#include <ulk.h>
int main(void) PROGRAM_ENTRY;
void callback_swi15 (void *pointer);
void callback_swi16 (void *pointer);
int main ()
{
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
2. Once Load button is pressed, the below shown Confirmation message will be
displayed. Click OK to continue the loading process.
3. Once the File is successfully loaded, the below Shown success message will be
displayed. Click OK.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
4. Once the Load is successful, Click cancel button in Load window and click on Run
button. Enter the Run Address as 82000000 and click on Execute button.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
6. Once the Application executes, the registered software ISR will be called. The print
inside the Software interrupt ISR will be displayed along with its argument(pointer) value
as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
5.1.Boot Mode 2
To Launch the ARM/FPGA application from the Boot Mode 2, the Dip Switch setting in the target
board should be as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
5.2.Boot Mode 3
To Launch the ARM/FPGA application from the Boot Mode 3, the Dip Switch setting in the target
board should be as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
5.3.Boot Mode 4
To Launch the ARM/FPGA application from the Boot Mode 4, the Dip Switch setting in the target
board should be as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
5.4.Boot Mode 5
To Launch the ARM/FPGA application from the Boot Mode 5, the Dip Switch setting in the target
board should be as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
5.5.Boot Mode 6
To Launch the ARM/FPGA application from the Boot Mode 6, the Dip Switch setting in the target
board should be as shown in figure below.
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
Stub Control Panel user manual for Mission 10x-Unified Learning Kit
R 2.0
6.Technical Support
iWave Systems Technologies Pvt. Ltd.
# 7/B, 29th Main,
BTM Layout 2nd Stage,
Bangalore - 560 076
Phone : +91-80-26781643, 26786243, 45
Fax
: +91-80-26685200
Email : emdby@iwavesystems.com
Web : www.iwavesystems.com