Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skeleton_app creation #5

Open
kid-cmd opened this issue Mar 17, 2021 · 2 comments
Open

Skeleton_app creation #5

kid-cmd opened this issue Mar 17, 2021 · 2 comments

Comments

@kid-cmd
Copy link

kid-cmd commented Mar 17, 2021

Hello I am a student who wants to add the skeleton app to my cFS.

I git clone skeleton app to the apps file path and populated the other necessary file paths needed for sample apps creation and there were still issues.

I implemented the changes noted in the issue logs such as the CCSDS_CommandPacket_t #4 changes and followed #2 "Add integration instructions" 's changes for how they got it working however I tend to run into errors. Some examples include what is shown in the reply below.

Is there a guide for a noob like me to integrate the app onto cfs. NASA has such robust and great documentation but i still havent managed. Am i not placing the app name in the correct locations? Am i missing commands i should be running? full breakdown for a beginner plz.

@kid-cmd
Copy link
Author

kid-cmd commented Mar 17, 2021

/cFS/apps/skeleton_app/fsw/src/skeleton_app.c:34:
cFS/apps/skeleton_app/fsw/src/skeleton_app_msg.h:79:11: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘SKELETON_HkTlm_t’
} OS_PACK SKELETON_HkTlm_t;

/cFS/apps/skeleton_app/fsw/src/skeleton_app.c:72:32: error: passing argument 1 of ‘CFE_SB_RcvMsg’ from incompatible pointer type [-Werror=incompatible-pointer-types]
status = CFE_SB_RcvMsg(&SKELETON_AppData.MsgPtr,

expected ‘CFE_SB_Buffer_t ** {aka union CFE_SB_Msg **}’ but argument is of type ‘CFE_MSG_Message_t ** {aka union CFE_MSG_Message **}’
CFE_Status_t CFE_SB_RcvMsg(CFE_SB_Buffer_t **BufPtr, CFE_SB_PipeId_t PipeId, int32 TimeOut);

(Shows this below despite me changing it to CFE_SB_CmdHdr_t)
‘CCSDS_CommandPacket_t’ undeclared (first use in this function); did you mean ‘CCSDS_SpacePacket_t’?
SKELETON_ReportHousekeeping((CCSDS_CommandPacket_t *)Msg);

upon compiling. When making changes the cFS runs without showing skeleton app, aborts, or shows what is below.

and the similar #2
1980-012-14:03:23.26064 ES Startup: Loading file: /cf/skeleton_app.so, APP: SKELETON_APP
1980-012-14:03:23.26075 ES Startup: SKELETON_APP loaded and created EVS Port1 42/1/CFE_SB 4: CreatePipeErr:OS_QueueCreate returned -11,app SKELETON_APP
1980-012-14:03:23.26083 Skeleton App: Error creating pipe, RC = 0xFFFFFFFFCA000005
1980-012-14:03:23.26084 Application SKELETON_APP called CFE_ES_ExitApp

@astrogeco
Copy link

astrogeco commented Mar 30, 2021

Hi! Thanks for the question! Check out our cFS training package. Specifically the steps in Exercise 7 (page 188) should get you most of the way there. https://ntrs.nasa.gov/citations/20205011588. Swap out SCH for skeleton and you should be good to go!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants