Hello world Ada-example on RaspberryPi

Jan Sommer soja-misc at aries.uberspace.de
Mon Jul 6 18:02:21 UTC 2015


Ok, in rtems_init.c 

#define CONFIGURE_MICROSECONDS_PER_TICK RTEMS_MILLISECONDS_TO_MICROSECONDS(1)

causes the 2.5s delay to be 25 s. If I set it to

#define CONFIGURE_MICROSECONDS_PER_TICK RTEMS_MILLISECONDS_TO_MICROSECONDS(10)

then the delay will be 2.5 s.
How (or where) is the number of ticks to wait computed when a delay is called in Ada?

Cheers,

   Jan

Am Sonntag, 5. Juli 2015, 23:11:36 schrieb Jan Sommer:
> Hi,
> 
> I tried to run the hello_world_ada example on the raspberryPi today and ran into a few issues.
> 
> First, there was the linking problem for the function _ada_pthread_minimum_stack_size where is that supposed to be defined?
> 
> There is also an issue with the current Makefile.shared in the top level example-directory. The Makefile of the hello_world program adds a define for the stack size to the CFLAGS and later includes the Makefile.shared. However there CFLAGS is set to "" in the beginning effectively deleting the stack size set previosly. I commented this line as well (don't know if it will have side effects in later examples).
> 
> The program then linked. Running the program on the Pi worked as well, but with one problem. The Delay of 2.5 s took 25 s. I changed the delay time several times and it always is accurately 10 time the set delay time.
> 
> I guess there is some clock setting wrong somewhere? Where would I need to correct that?
> 
> Cheers,
> 
>    Jan
> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users




More information about the users mailing list