Questions tagged [rtems]

Real-Time Executive for Multiprocessor Systems

RTEMS (Real-Time Executive for Multiprocessor Systems) is a free real-time operating system designed for deeply embedded systems including automotive, medical devices, science, industrial control, and space flight. RTEMS has been to Venus, circles Mars, is going to the asteroid belt, and can be found in high energy physics research labs around the world.

Find out more: www.rtems.org

63 questions
15
votes
1 answer

Why is there a dramatic speed drop for access to static ram over cache c++?

Background I have been looking into potentially using the MPC5200 static ram space as scratch pad memory. We have 16Kb of unused memory that appears on the processor bus (source). Now some important implementation notes are: This memory is used by…
Fantastic Mr Fox
  • 32,495
  • 27
  • 95
  • 175
9
votes
4 answers

Ada multitasking RTOS supported with opensource cross-compilers

Which RTOSes do Ada have opensource/free cross-compilers available, with support for multitasking/multithreading? I have an Atmel AT90USB162 chip which I want to program using Ada. My first option was to use AVR-Ada for programming it, but since it…
Rego
  • 1,118
  • 1
  • 18
  • 40
7
votes
1 answer

statement with just a variable name casted (void) in C

in RTEMS initialization routine, I see this code below. void boot_card(const char *cmdline) { rtems_interrupt_level bsp_isr_level; /* * Special case for PowerPC: The interrupt disable mask is stored in SPRG0. * It must be valid before we…
Chan Kim
  • 5,177
  • 12
  • 57
  • 112
6
votes
1 answer

Failure to bind socket when custom ip is set for ethernet adapter

The problem On our system running RTEMS 4.9.2 we are experiencing a very odd issue with socket communications. We are setting up a socket and using the following command to bind: // Bind the socket to set the local port sockaddr_in…
Fantastic Mr Fox
  • 32,495
  • 27
  • 95
  • 175
3
votes
1 answer

Extern Symbol Value Automatically Assigned to the End of RAM

I do not understand why extern symbol equals to the end of ram which is defined in the linker. In especially, i see that case in the rtems code below: extern symbol "rdb_start" definition - start.S - line 155 -157 extern symbol "rdb_start" usage -…
RedArrow
  • 588
  • 8
  • 18
2
votes
1 answer

Processor concurrent PCI read

I'm working on a project which uses a LEON2 (SparcV8) processor and we have a PCI bus that connects other FPGA and the processor. Running on this we have a multitasking application using RTEMS and written in C. Now I'm not familiar at all with…
Leo
  • 500
  • 5
  • 15
2
votes
3 answers

How to get memory locations of library functions?

I am compiling a C program with the SPARC RTEMS C compiler. Using the Xlinker -M option, I am able to get a large memory map with a lot of things I don't recognize. I have also tried using the RCC nm utility, which returns a slightly more readable…
mandaleeka
  • 6,577
  • 1
  • 27
  • 34
2
votes
2 answers

How is programming in rtems different than Linux?

I am new to programmming in rtem and was wondering how are the two, rtems and linux, are different in terms of programming. I understand rtems is an real time operating system but if you were to make a hello world app, wouldn’t the program be the…
avan989
  • 317
  • 1
  • 5
  • 12
2
votes
2 answers

RTEMS howto get DMA accessible memory

I'm implementing RTEMS driver for Ethernet card by porting it from Linux. Much of the work is done, processor IO mode is working ok, as well as interrupt handling. Now I'm having problems implementing DMA. Specifically, in Linux driver I use as a…
Ivan
  • 81
  • 4
2
votes
1 answer

Why is gdb automatically doing a read after my requested write?

I'm using gdb to communicate with a LEON2-based ASIC through a home made gdb server (not sure though that "gdb server" is the correct phrase here). It works like this: the gdb client uses the ordinary gdb protocol to talk to the gdb server, which…
2
votes
1 answer

Causing segfault in program doesn't get caught by signal handler

To begin with I will point out the operating system here is RTEMS, it is an Open source RTOS and the source can be found here: http://git.rtems.org/rtems/ I have a pretty simple program that sets up a signal handler for SIGSEGV (which i believe is…
Fantastic Mr Fox
  • 32,495
  • 27
  • 95
  • 175
2
votes
1 answer

"PTHREAD_RWLOCK_INITIALIZER undeclared" error in buiding RTEMS

The error occured in buiding RTEMS-4.11 and used configure param "--enable-posix" in the source file "posix/src/prwlockinit.c" if ( *rwlock == PTHREAD_RWLOCK_INITIALIZER ) { eno = pthread_rwlock_init( rwlock, NULL ); } else { eno = 0; } the log…
myanl
  • 135
  • 1
  • 9
2
votes
2 answers

How to examine the heap and stack of an RTEMS application using gdb?

Is there a way to know exactly the address range of both the heap and the stack on an RTEMS application by using gdb? I know there's info proc mappings on Linux, but I don't think RTEMS has a /proc to begin with. Using x to examine memory would be…
Martin
  • 940
  • 6
  • 26
2
votes
3 answers

Unexpected behavior of write operations when creating a custom section in EEPROM using GCC

Here is my question, I work on an application embeded in a board we manufactured ourselves for a space project. The board uses a LEON2 Processor which is a derivate of SPARC v8 and we also use RTEMS as OS. In this application we have to save…
Leo
  • 500
  • 5
  • 15
2
votes
2 answers

Assist me in finding the error?

I am working on the interface (RS232) for communication between aeroflex gaisler hardware (RTEMS operating system and leon2 processor) and the desktop terminal. I have written a code for communication between them. I am getting a error in all the…
1
2 3 4 5