xiao wei
|
How can I run my program in the target?
|
xiao wei
08/18/2008 5:05 AM
post11925
|
How can I run my program in the target?
Hi
I have a AtmelAT91SAM9263-EK Evaluation Board and the BSP can run in it. Can you tell me how to run/debug the
application on the target? I have read the document,but it can not help me to do this. I need a very simple and
detailed sample that can let me know the whole process. I use QNX Momentics IDE(windows host). Thany you very much.
the file at91sam9263ek.build list below
###########################################################################
##
## QNX Neutrino 6.x on the Atmel AT91SAM9263-EK Board
##
###########################################################################
##
## SUPPORTED DEVICES:
##
## SERIAL: Atmel DBGU UART
## NETWORK: Atmel AT91SAM9263 EMAC (full stack)
## FLASH: TBD
## USB: Atmel OHCI USB Controller
## SPI: Atmel SPI interface
##
## - For detailed instructions on the default example configuration for
## these devices see the "CONFIGURING ON-BOARD SUPPORTED HARDWARE"
## section below the build script section, or refer to the BSP docs.
## - Tip: Each sub-section which relates to a particular device is marked
## with its tag (ex. SERIAL). You can use the search features of
## your editor to quickly find and add or remove support for
## these devices.
## - For details on how build files work, please refer to the help
## documentation for "mkifs" in the QNX Neutrino "Utilities Reference".
##
###########################################################################
##
## NOTES:
##
###########################################################################
###########################################################################
## START OF BUILD SCRIPT
###########################################################################
[image=0x20100000]
[+compress]
#For UBOOT ROM monitor, use raw
[virtual=armle,raw] .bootstrap = {
#For QNX IPL/sendnto, use binary
#[virtual=armle,binary] .bootstrap = {
startup-at91sam9263ek -vv
PATH=:/proc/boot:/bin:/usr/bin:/usr/photon/bin LD_LIBRARY_PATH=:/proc/boot:/lib:/usr/lib:/lib/dll PHOTON_PATH=/
usr/photon procnto -v
}
[+script] .script = {
procmgr_symlink ../../proc/boot/libc.so.2 /usr/lib/ldqnx.so.2
display_msg Welcome to QNX Neutrino 6.x on the Atmel AT91SAM9263-EK Board
#######################################################################
## DBGU SERIAL driver
#######################################################################
devc-seratdbgu -e -F -S -b115200 -c100000000 0xffffee00,1
waitfor /dev/ser1 4
reopen /dev/ser1
slogger &
#######################################################################
## NETWORK driver
#######################################################################
display_msg Starting on-board ethernet with TCP/IP stack...
io-net -dat91sam ioport=0xfffbc000,irq=21,rmii,mac=662200021615,verbose -ptcpip -v &
#######################################################################
## REMOTE_DEBUG (gdb or Momentics)
## - refer to the help documentation for the gdb, qconn and the IDE
## for more information on remote debugging
## - the commands shown require that NETWORK is enabled
#######################################################################
# devc-pty &
# waitfor /dev/ptyp0 4
# waitfor /dev/socket 4
# qconn port=8000
pipe &
#######################################################################
## USART SERIAL driver
#######################################################################
#display_msg Starting Serial USART 1 driver ...
#devc-serusart -e -F -S -u2 -b115200 -c100000000 0xfff8c000^2,7
#display_msg Starting Serial USART 2 driver ...
#devc-serusart -e -F -S -u3 -b115200 -c100000000 0xfff90000^2,8
#display_msg Starting Serial USART 3 driver ...
#devc-serusart -e -F -S -u4 -b115200 -c100000000 0xfff94000^2,9
...
View Full Message
|
|
|