Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Error while launching the rtp application in vxworks6.6

supreetdsupreetd Posts: 1Member
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 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
");
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
[b]-> 0xa0934010 (iHelloworld): RTP 0xa247bea0 has been deleted due to signal 4.[/b]

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

Sign In or Register to comment.