nasa / skeleton_app

fork of sample_app
Apache License 2.0
11 stars 9 forks source link

Skeleton_app creation #5

Open kid-cmd opened 3 years ago

kid-cmd commented 3 years ago

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 commented 3 years ago

/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_CmdHdrt) ‘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 commented 3 years ago

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!