📄 readme.txt
字号:
###########################################################################################################
#
# uC/OS-II v2.52 NIOS Testing Port on the NIOS Demoboard
#
#
# Farid LEZIAR ( fleziar@yahoo.fr )
#
#
# version 2.2
#
###########################################################################################################
This Package files helps you to perform a simple test of the uC/OS-II v2.6x Kernel on the Altera NIOS DemoBoard.
# Package's File :
-------------------
uCOS-II_NiosPort_V22.zip
# Creates a 32 bits NIOS Design :
---------------------------------
* NIOS32 :
128/256/512 registers.
Interrupts and trap enabled.
Small printf.
* Peripherals :
ROM GERMS MONITOR.
UART for printf (2 stop bits).
UART for OSView (default parameters) : name="uart_OSView"
1 TIMER (let default) : irq=17 name="rtos_ticks" ( or set his name in Tasks.h and OS_CPU_A32.s )
1 TIMER for test (let default parameters) : irq=20 name="timer_for_test"
256Kb External SRAM.
# installation instruction
---------------------------
* unzip the file in the sdk's folder created by the sopc_builder :
\sdk_folder
|
-- \inc
|
-- \lib
|
-- \src
|
-- \uCOS-II_NiosPort_V22 (contains Test Port files)
|
|
-- \librtos32 ( you have to copy here uC/OS-II & uC/OS-View ports, 'Makefile' & sources files )
|
|
-- \uCOS-View (uC/OS-View port files + 'Makefile' to build librtos32)
|
|
-- \uCOS-II (uC/OS-II port files + 'Makefile' to build librtos32)
|
|
-- \reference_design (quartus 2.1 project for the demoboard)
|
|
main.c
Tasks.c
Tasks.h
Makefile_nios21 (rename to 'Makefile' if used Nios Dev Kit v2.1 or below)
Makefile_nios22 (rename to 'Makefile' if used Nios Dev Kit v2.11 or above)
readme.txt (this file)
building the library:
* copy uC/OS-II sources files (11) to \librtos32.
* copy all files except 'readme.txt' \uCOS-II to \librtos32.
* if you plan to use uC/OS-View, copy uC/OS-View sources files (2) to \librtos32.
* if you plan to use uC/OS-View, copy all files except 'readme.txt' from \uCOS-View to \librtos32.
in this case, 'Makefile' & 'includes.h' will have overwritten.
* Generate the library by excuting the "make" command under \librtos32.
compiling the application:
* then, build the main application by a "make" in \uCOS-II_NiosPort_V22 directory.
(dont forget to rename one of the two Makefiles in 'Makefile')
--> modify paths to Makefile file if necessary
( because uC/OS-View uses the second UART, you have to use it with the Debug RS232 cable )
# Execution
------------
* after downloading, you will see the messages printed by the 3 Tasks and the ISR...
nios-run: Downloading...........................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
.........
nios-run: Terminal mode (Control-C exits)
-----------------------------------------
TASK 1 : cpt = 0
TASK 2 : cpt = 0
TASK 3 : cpt = 0
TUserTimerISR() : irq = 20
ASK 1 : cpt = 1
UserTimerISR() : irq = 20
TASK 1 : cpt = 2
TASK 2 : cpt = 1
UserTimerISR() : irq = 20
TASK 1 : cpt = 3
TASK 3 : cpt = 1
UserTimerISR() : irq = 20
TASK 1 : cpt = 4
TASK 2 : cpt = 2
UserTimerISR() : irq = 20
TASK 1 : cpt = 5
UserTimerISR() : irq = 20
TASK 2 : cpt = 3
TASK 3 : cpt = 2
UserTimerISR() : irq = 20
UserTimerISR() : irq = 20
TASK 2 : cpt = 4
UserTimerISR() : irq = 20
TASK 3 : cpt = 3
UserTimerISR() : irq = 20
TASK 2 : cpt = 5
UserTimerISR() : irq = 20
UserTimerISR() : irq = 20
TASK 2 : cpt = 6
TASK 3 : cpt = 4
UserTimerISR() : irq = 20
UserTimerISR() : irq = 20
TASK 2 : cpt = 7
UserTimerISR() : irq = 20
TASK 3 : cpt = 5
UserTimerISR() : irq = 20
TASK 2 : cpt = 8
...
etc...
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -