Error while launching the rtp application. - VxWorks
This is a discussion on Error while launching the rtp application. - VxWorks ; Hi, I have problem launching the Rtp application helloworld.vxe. My helloworld application has the following code. #include #include #include #include #include #include /************************************************** ***************************** * main - User application entry function * * This routine is the entry point for ...
| | LinkBack | Tools |
|
#1
| |||
| |||
| I have problem launching the Rtp application helloworld.vxe. My helloworld application has the following code. #include #include #include #include #include #include /************************************************** ***************************** * main - User application entry function * * This routine is the entry point for user application. A real time process * is created with first task starting at this entry point. * This function writes 'Hello World' on the console and exits. * */ int main ( int argc, /* number of arguments */ char * argv[], /* array of arguments */ char * envp[], /* array of environment strings */ void * auxp /* implementation specific auxiliary vector */ ) { printf ("Hello World\r\n"); return 0; } when i try to run the helloworld.vxe file from the vxworks prompt, i get the following error message. -> rtpSp "/romfs/helloworld.vxe",60,0x10000,0,0 value = -1572356448 = 0xa247bea0 -> 0xa0934010 (iHelloworld): RTP 0xa247bea0 has been deleted due to signal 4. and if i dont run the above command and if i enter the following commands, it seems that helloworld has launched but i am not able to get print. -> cmd [vxWorks *]# rtp exec -c /romfs/helloworld.vxe 2 & when i give the above command, i get the following message. Launching process '/romfs/helloworld.vxe' ... Process '/romfs/helloworld.vxe' (process Id = 0xa0923388) launched. Attachment number for process '/romfs/helloworld.vxe' is %1. [vxWorks *]# Branch through zero Current Processor Status Register: 0x60000053 Task: 0xa0924454 "iHelloworld" 0xa0924454 (iHelloworld): task 0xa0924454 has had a failure and has been stopped . 0xa0924454 (iHelloworld): fatal exception in a kernel task or stack overflow ! and also i am able to go inside helloworld application by following command. [vxWorks *]# %1 [helloworld]# This will be displayed. I am able to set the break points too as shown below. [helloworld]# bp &main [helloworld]# bp # Breakpoint Address Ctx Ctx Id Cnt Stops N Hard --- ----------------------------- ----- ---------- --- ------- - ------------ 0 0x00100328: main RTP 0xa0923388 0 task y when i disassemble the helloworld.vxe application, i get the following instruction. [helloworld]# l 0x00100328 main: 00100328 e52de004 STR r14,[r13,#-4]! 0010032c e59f0008 LDR r0,0x0010033c 00100330 eb0007ae BL printf 00100334 e3a00000 MOV r0,#0 00100338 e49df004 LDR pc,[r13],#4 0010033c 0010dfc8 ANDEQS r13,r0,r8,ASR #31 memAddToPool: 00100340 e1a02001 MOV r2,r1 00100344 e1a01000 MOV r1,r0 00100348 e59f03b8 LDR r0,0x00100708 0010034c e5100000 LDR r0,[r0,#-0] but its not displaying the prints.. and also if i enter "shl" command here, its not displaying any shared library... [helloworld]# shl SHL NAME ID TEXT ADDR TEXT SIZE DATA SIZE REF CNT -------------------- ---------- ---------- ---------- ---------- ------- [helloworld]# Should i include any shared library??? i have included the following macros in the config.h.... #define INCLUDE_RTP #define INCLUDE_RTP_APPL_USR #define INCLUDE_RTP_APPL_INIT_STRING #define INCLUDE_RTP_APPL_INIT_BOOTLINE #define INCLUDE_RTP_APPL_INIT_CMD_SHELL_SCRIPT #define INCLUDE_SHARED_DATA #define INCLUDE_SHL #define INCLUDE_RTP_HOOKS #undef INCLUDE_VX_TRADITIONAL_SCHEDULER #define INCLUDE_POSIX_PTHREAD_SCHEDULER #define INCLUDE_POSIX_CLOCK #define INCLUDE_SHELL #define INCLUDE_DISK_UTIL #define INCLUDE_RTP_SHOW #define BUNDLE_RTP_DEVELOP #define BUNDLE_RTP_POSIX_PSE52 #define BUNDLE #define INCLUDE_SC_POSIX #define INCLUDE_SHOW_ROUTINES #define INCLUDE_PROTECT_TASK_STACK #define INCLUDE_EDR_PM /* ED&R persistent memory */ #define INCLUDE_EDR_ERRLOG /* ED&R error log */ #define INCLUDE_EDR_SHOW /* ED&R show routines */ #define INCLUDE_EDR_SYSDBG_FLAG /* ED&R debug flag */ #define INCLUDE_RTP_SHOW_SHELL_CMD #define INCLUDE_ADR_SPACE_SHOW #define INCLUDE_ADR_SPACE_SHELL_CMD #define INCLUDE_VM_SHOW #define INCLUDE_VM_SHOW_SHELL_CMD #define INCLUDE_LOCK_TEXT_SECTION Do i have to include any additional macros to support RTP?? Please help me out to solve this issue as soon as possible. Thanks in Advance, Supreet |
« Previous Thread
|
Next Thread »
| Tools | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| error when launching j2ee client on websphere | unix | Websphere | 1 | 03-17-2009 12:16 PM |
| Odd problem launching an application | unix | Suse | 3 | 02-04-2008 08:56 PM |
| Launching the default mail application | unix | Programmer | 6 | 10-04-2007 06:21 PM |
| "Typed the name correctly" error messages launching Firefox shortcuts in Vista | unix | Mozilla | 8 | 03-25-2007 06:47 PM |
| Firefox 2: Opening new tab does not load home page & launching Firefox opening new application instance | unix | Mozilla | 6 | 11-05-2006 08:01 PM |
All times are GMT. The time now is 09:42 AM.
