I’m trying to checkout commands to MM.
Here’s what I did (screen output at the bottom)
So first, I did a Symbol Lookup (CFE_TIME_GetTime) which I believe was successful
Then I tried to just dump the symbols and the command only requires a file name which failed, but it looks like it took the file name.
Then I tried to dump memory to a file which looks like it was successful
my inputs where:
0 for offset
CFE_TIME_GetTime for Symbol Name
and file name
It dumped a file. So when I tried to load it back with the load memory file command, it segfaulted and crashed my cFE/cFS run.
I don’t know much about MM, but I would think MM should be able to load memory it dumped. Maybe my inputs are not right. I’m just running it in my CentOS VM. I put print statements (File from command is loading… and Opening load file for reading)
EVS Port1 66/1/TO_LAB 3: TO telemetry output enabled for IP 127.0.0.1
EVS Port1 66/1/MM 45: Symbol Lookup Command: Name = ‘CFE_TIME_GetTime’ Addr = 0x0806A7CC
EVS Port1 66/1/SCH 18: Multiple slots processed: slot = 0, count = 2
EVS Port1 66/1/CFE_TIME 20: Start FLYWHEEL
EVS Port1 66/1/CFE_TIME 21: Stop FLYWHEEL
EVS Port1 66/1/MM 49: Error dumping symbol table, OS_Status= 0xFFFFFFE4, File=’/home/cfs/crs2/mySymTbl.dat’
EVS Port1 66/1/MM 19: Invalid memory type specified: MemType = 0
EVS Port1 66/1/MM 13: Dump Memory To File Command: Dumped 8 bytes from address 0x0806A7CC to file ‘/ram/mymem.dat’
File from command is loading… fileName is /ram/mymem.dat
Opening load file for reading
Segmentation fault (core dumped)
It segfaults when it gets here in /psp/fsw/shared/cfe_psp_memutils.c (memcpy call)
int32 CFE_PSP_MemCpy ( void *dst, void *src, uint32 size)
memcpy( dst, src, size);
- Sorry super busy. Look in fsw/src/mm_msgdefs.h In there you’ll see different memtypes defined like MM_RAM. You are currently running with MM_NOMEMTYPE, which is the default assigned, which may be a problem. I don’t know; haven’t run this myself but saw it in your error message. Need to set your MM_AppData.MemType to something other than MM_NOMEMTYPE maybe. Give it a shot and hope this helps
- These errors came as a result of a different command (dump symbol table) EVS Port1 66/1/MM 49: Error dumping symbol table, OS_Status= 0xFFFFFFE4, File=’/home/cfs/crs2/mySymTbl.dat’ EVS Port1 66/1/MM 19: Invalid memory type specified: MemType = 0 After I tried to dump a symbol table, I then dumped memory to a file… which worked. Then I tried to load that same file I just dumped, but it did not work.
- You must login to post comments