-
Hello, I have been trying to get NASA's cFS to run on RTEMS on top of SPARC LEON3. I use gaisler's RCC (RTEMS Cross Compiler) 1.3.1 and TSIM3. I can build and test RTEMS applications just fine. This thread has been very helpful so far: #314 I created my own toolchain and generic RTEMS OSAL and PSP layers based of PC-RTEMS as discussed in that thread. I can successfully create an exe, however, my issues start when I try to run it. The program runs and exits when it shouldn't. It seems to crash early on in "_Workspace_Handler_initialization" due to an "_Internal_error". Here's a screenshot of the simulator's output: Unfortunately, I can't figure out why that happens exactly. I tried changing a lot of options and defines in both OSAL and PSP folders as well as the toolchain itself with no success, I always get the same error. I have a feeling it's not from the PSP or OSAL files but maybe the way the exe file is linked and generated. Here is my toolchain file for reference: Could the params in RTEMS_BSP_C_FLAGS be relevant to the issue? I tested different combinations yet nothing seems to change. I feel like it be a minor thing I need to change or I probably missed something big... In any case, any help or guidance will be appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I figured out the issue, I had to modify the define CONFIGURE_EXECUTIVE_RAM_SIZE found in the cFS/osal/src/bsp/generic-rtems/src/bsp_start.c file. Increasing it made the executable run properly. Keeping this thread in hopes it'll help somebody that might face the same issue in the future. |
Beta Was this translation helpful? Give feedback.
I figured out the issue, I had to modify the define CONFIGURE_EXECUTIVE_RAM_SIZE found in the cFS/osal/src/bsp/generic-rtems/src/bsp_start.c file. Increasing it made the executable run properly. Keeping this thread in hopes it'll help somebody that might face the same issue in the future.