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

Error when build cFS with new ' cFE App Dev Guide template ' applications #97

Open
AIoTvn opened this issue Oct 10, 2022 · 4 comments
Open

Comments

@AIoTvn
Copy link

AIoTvn commented Oct 10, 2022

Hello, I've created a new application with ' cFE App Dev Guide template '. But when I build new cFS i received this message :
image
Can you help me pls @dmccomas, many thanks.

@dmccomas
Copy link
Contributor

I'm traveling through 10/21 and do not have access to a computer where I can try to replicate the issue. We should still be able to resolve it.

The 'install' process is copying files object and tables files into the build/exe/cfsat/cf/ directory. This error indicates the table file didn't get built. .tbl files are built as follows:

  1. The table source code is compiled into an ELF object file
  2. The elf2cfetbl tools is used to create a .tbl file from the ELF file

Since a code generation tool is being used let's confirm the table code even got generated correctly. Do you see table source files in cfs/apps/app_dev_example1/fsw/tables/ ?

If not then there's a template problem and I'll have to fix it.

if the source exists then did the source get compiled? I looked at the CMakeLists.txt template code in github and it looks correct. I think a good approach here would be to start with a fresh cmake build environment in case it didn't pick of the new tables. Issue the following:
make distclean

followed by:
make prep
make install

Look at the messages output during the build process for your app. They should be similar to messages for another app that has tables. For example I see Memory Dwell (MD) in your log. You should be able to see where MD tables gets compiled and also when elf2cfetbl gets run. If the install still fails please let me know which other step did not occur.

@AIoTvn
Copy link
Author

AIoTvn commented Oct 13, 2022

Yes t checked and table code has generated successfully. When run ' make install ' faced that warning, i don't know if it was the reason but i think it wasn't.
image
And when i try with ' cFE Sample App ", it build successfully. But when cFS run i faced this error :
image
At the moment i just want to learn to modify a template to get an application that can communicate with COSMOS. Can you give me some advice. Thank you so much!!

@AIoTvn
Copy link
Author

AIoTvn commented Oct 13, 2022

And when i try with ' cFE Sample App ", it build successfully. But when cFS run i faced this error :

I mean ' cFE Sample App ' template.

@highter9
Copy link

highter9 commented Jun 9, 2023

I got the same error and fixed it. Maybe your table name is too long. I remember there is a limitation of 20 characters somewhere.

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

3 participants