nasa / skeleton_app Goto Github PK
View Code? Open in Web Editor NEWfork of sample_app
License: Apache License 2.0
fork of sample_app
License: Apache License 2.0
Is your feature request related to a problem? Please describe.
The current skeleton_app README.md looks like it is just a copy of the sample_app's README.
Describe the solution you'd like
The skeleton_app's README.md should be updated with a specific description of the skeleton app.
Describe alternatives you've considered
N/A
Additional context
N/A
Requester Info
Jandlyn Bentley, NASA GSFC
For a new user, it would be very helpful to include some instructions in README.md
on how to add the skeleton_app to nasa/cFS. I have not been able to get it working.
I simply tried to duplicate all of the lines that referenced sample_app
and apply them to skeleton_app
. The result is in this repo and summarized below.
#include "skeleton_app_msgids.h
in sch_lab_sched_tab.h
{CFE_SB_MSGID_WRAP_VALUE(SKELETON_APP_SEND_HK_MID), 4},
to SCH_TBL_Structure.Config
in sch_lab_table.c
include_directories(${skeleton_app_MISSION_DIR}/fsw/platform_inc)
to apps/sch_lab/CMakeLists.txt
{CFE_SB_MSGID_WRAP_VALUE(SKELETON_APP_HK_TLM_MID), {0, 0}, 4},
to TO_LAB_Subs.Subs
, and include associated header, in to_lab_sub.c
include_directories(${skeleton_app_MISSION_DIR}/fsw/platform_inc)
to apps/to_lab/CMakeLists.txt
cpu1_cfe_es_startup.scr
skeleton_app
to list
in targets.cmake
skeleton_app_msgids.h
uniqueAfter making these changes, the program builds successfully. But when running ./core-cpu1
, the skeleton_app fails with the following messages.
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
OS_BSP_Initialize():Maximum user msg queue depth = 500
CFE_PSP: Default Reset SubType = 1
CFE_PSP: Default CPU ID = 1
CFE_PSP: Default Spacecraft ID = 42
CFE_PSP: Default CPU Name: cpu1
OS_Posix_GetSchedulerParams():195:Policy 1: available, min-max: 1-99
OS_Posix_GetSchedulerParams():195:Policy 2: available, min-max: 1-99
OS_Posix_TaskAPI_Impl_Init():381:Selected policy 2 for RT tasks, root task = 99
CFE_PSP: Starting the cFE with a POWER ON reset.
CFE_PSP: Clearing out CFE CDS Shared memory segment.
CFE_PSP: Clearing out CFE Reset Shared memory segment.
CFE_PSP: Clearing out CFE User Reserved Shared memory segment.
1980-001-02:16:00.49803 POWER ON RESET due to Power Cycle (Power Cycle).
1980-001-02:16:00.49809 ES Startup: CFE_ES_Main in EARLY_INIT state
CFE_PSP: CFE_PSP_AttachExceptions Called
1980-001-02:16:00.49889 ES Startup: CFE_ES_Main entering CORE_STARTUP state
1980-001-02:16:00.49891 ES Startup: Starting Object Creation calls.
1980-001-02:16:00.49892 ES Startup: Calling CFE_ES_CDSEarlyInit
1980-001-02:16:00.49912 ES Startup: Calling CFE_EVS_EarlyInit
1980-001-02:16:00.49918 Event Log cleared following power-on reset
1980-001-02:16:00.49920 ES Startup: Calling CFE_SB_EarlyInit
1980-001-02:16:00.49924 SB internal message format: CCSDS Space Packet Protocol version 1
1980-001-02:16:00.49925 ES Startup: Calling CFE_TIME_EarlyInit
1980-012-14:03:20.00000 ES Startup: Calling CFE_TBL_EarlyInit
1980-012-14:03:20.00008 ES Startup: Calling CFE_FS_EarlyInit
1980-012-14:03:20.00016 ES Startup: Core App: CFE_EVS created. App ID: 0
EVS Port1 42/1/CFE_EVS 1: cFE EVS Initialized. cFE Version 6.7.21.0
EVS Port1 42/1/CFE_EVS 14: No subscribers for MsgId 0x808,sender CFE_EVS
1980-012-14:03:20.05030 ES Startup: Core App: CFE_SB created. App ID: 1
1980-012-14:03:20.05040 SB:Registered 4 events for filtering
EVS Port1 42/1/CFE_SB 1: cFE SB Initialized
EVS Port1 42/1/CFE_SB 14: No subscribers for MsgId 0x808,sender CFE_SB
1980-012-14:03:20.10062 ES Startup: Core App: CFE_ES created. App ID: 2
EVS Port1 42/1/CFE_ES 1: cFE ES Initialized
EVS Port1 42/1/CFE_SB 14: No subscribers for MsgId 0x808,sender CFE_ES
EVS Port1 42/1/CFE_ES 2: Versions:cFE 6.7.21.0, OSAL 5.0.21.0, PSP 1.4.14.0, chksm 45160
EVS Port1 42/1/CFE_SB 14: No subscribers for MsgId 0x808,sender CFE_ES
EVS Port1 42/1/CFE_ES 91: Mission 6.7.19-eval-26-g5c095a6.sample, CFE: 6.7.3-bv-270-g7b93466, OSAL: 5.0.3-bv-216-g9eaf83b
EVS Port1 42/1/CFE_SB 14: No subscribers for MsgId 0x808,sender CFE_ES
EVS Port1 42/1/CFE_ES 92: Build 202007171051 jp@cfs-test-mint-xfce
1980-012-14:03:20.15078 ES Startup: Core App: CFE_TIME created. App ID: 3
EVS Port1 42/1/CFE_TIME 1: cFE TIME Initialized
1980-012-14:03:20.20101 ES Startup: Core App: CFE_TBL created. App ID: 4
EVS Port1 42/1/CFE_TBL 1: cFE TBL Initialized. cFE Version 6.7.21.0
1980-012-14:03:20.25125 ES Startup: Finished ES CreateObject table entries.
1980-012-14:03:20.25126 ES Startup: CFE_ES_Main entering CORE_READY state
1980-012-14:03:20.25130 ES Startup: Opened ES App Startup file: /cf/cfe_es_startup.scr
1980-012-14:03:20.25160 ES Startup: Loading shared library: /cf/sample_lib.so
SAMPLE Lib Initialized. Version 1.1.4.0
1980-012-14:03:20.25200 ES Startup: Loading file: /cf/sample_app.so, APP: SAMPLE_APP
1980-012-14:03:20.25212 ES Startup: SAMPLE_APP loaded and created
EVS Port1 42/1/SAMPLE_APP 1: SAMPLE App Initialized. Version 1.1.11.0
1980-012-14:03:20.25247 ES Startup: Loading file: /cf/skeleton_app.so, APP: SKELETON_APP
1980-012-14:03:20.25262 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:20.25266 Skeleton App: Error creating pipe, RC = 0xFFFFFFFFCA000005
1980-012-14:03:20.25267 Application SKELETON_APP called CFE_ES_ExitApp
1980-012-14:03:20.25293 ES Startup: Loading file: /cf/ci_lab.so, APP: CI_LAB_APP
1980-012-14:03:20.25303 ES Startup: CI_LAB_APP loaded and created
1980-012-14:03:20.25328 CI_LAB listening on UDP port: 1234
EVS Port1 42/1/CI_LAB_APP 3: CI Lab Initialized. Version 2.3.5.0
1980-012-14:03:20.25349 ES Startup: Loading file: /cf/to_lab.so, APP: TO_LAB_APP
1980-012-14:03:20.25360 ES Startup: TO_LAB_APP loaded and created
EVS Port1 42/1/CFE_SB 7: Duplicate Subscription,MsgId 0x0 on TO_LAB_TLM_PIPE pipe,app TO_LAB_APP
EVS Port1 42/1/CFE_SB 7: Duplicate Subscription,MsgId 0x0 on TO_LAB_TLM_PIPE pipe,app TO_LAB_APP
EVS Port1 42/1/CFE_SB 7: Duplicate Subscription,MsgId 0x0 on TO_LAB_TLM_PIPE pipe,app TO_LAB_APP
EVS Port1 42/1/CFE_SB 7: Duplicate Subscription,MsgId 0x0 on TO_LAB_TLM_PIPE pipe,app TO_LAB_APP
1980-012-14:03:20.25405 ES Startup: Loading file: /cf/sch_lab.so, APP: SCH_LAB_APP
1980-012-14:03:20.25422 ES Startup: SCH_LAB_APP loaded and created
SCH Lab Initialized. Version 2.3.7.0
EVS Port1 42/1/TO_LAB_APP 1: TO Lab Initialized. Version 2.3.7.0 Awaiting enable command.
1980-012-14:03:20.30446 ES Startup: CFE_ES_Main entering APPS_INIT state
1980-012-14:03:20.30448 ES Startup: CFE_ES_Main entering OPERATIONAL state
EVS Port1 42/1/CFE_ES 14: Exit Application SKELETON_APP on Error Completed.
EVS Port1 42/1/CFE_TIME 21: Stop FLYWHEEL
Replace references of CCSDS_CommandPacket_t to CFE_SB_CmdHdr_t.
This prevents the skeleton_app to compile in the latest cFS.
See issue Remove references to "CCSDS" structures outside of CFE SB.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.