rtems build and tsim-leon3

Jan Sommer soja-lists at aries.uberspace.de
Tue Dec 29 23:31:19 UTC 2015


Am Tuesday 29 December 2015, 15:37:15 schrieb Sihyeong Park:
> Hello, Jan
> Tanks for reply.
> 
> I'm try to run using grmon.
> 

Ok. Which options do you use for grmon?
We use: grmon -ftdi -freq 40 -nosram -uuser

> grlib> load ~/hello.exe
> section: .text at 0x40000000, size 113840 bytes
> section: .rtemsroset at 0x4001bcb0, size 32 bytes
> section: .data at 0x4001bcd0, size 1616 bytes
> total size: 115488 bytes (1.2 Mbit/s)
> read 670 symbols
> entry point: 0x40000000
> grlib> run
> IU in error mode (tt = 0x2b)
>  400008a0  a1480000   mov  %psr, %l0
> grlib>
> 
> 
> but, it seems same error 'IU in error mode'
> 
> Should I re-build for leon3 ?
> or did I mistake when I build that..?
> 
> I followed this procedure:
> bootstrap
> configure (--enable-rtemsbsp=leon3)
> make
> make install
> 

Looks fine to me. An option would be to download the prebuilt toolchain from the gaisler website.
It has only the old 4.4 gcc with rtems 4.10, but if you can run the ticker example created with this toolchain in grmon/tsim at least we can rule out a wrong configuration there.
I won't be in the office until 7.1.2016, so I can't test anything with our leon until then.

Best regards,

   Jan

> best regards.
> 
> 2015-12-28 23:33 GMT+09:00 Jan Sommer <soja-lists at aries.uberspace.de>:
> 
> > Am Monday 28 December 2015, 23:09:59 schrieb 박시형:
> > > Hello, again me..
> > >
> > > Finally, I succeed in build rtems for leon3 follow this:
> > >
> > > # ../rtems4.11/configure  --target=sparc-rtems4.11
> > --enable-rtemsbsp=leon3 \
> > >   --enable-tests=samples --enable-posix
> > >
> > > Then I get the samples like cdtest, fileio, hello, iostream, etc..
> > > (In sparc-rtems4.11/c/leon3/testsuites/samples)
> > >
> > > And I tried to run hello example using tsim-leon3 (evaluation version)
> > >
> > > tsim> load hello.exe
> > > section: .text, addr: 0x40000000, size 113840 bytes
> > > section: .rtemsroset, addr: 0x4001bcb0, size 32 bytes
> > > section: .data, addr: 0x4001bcd0, size 1616 bytes
> > > read 1283 symbols
> > > tsim> go 0x40000000
> > > resuming at 0x40000000
> > >
> >
> > Have you tried to use "run" or "run 0x40000000" instead of go?
> > I don't have tsim available anymore, but when I use GRMON I usually simply
> > use run for rtems binaries.
> >
> > Best regards,
> >
> >    Jan
> >




More information about the users mailing list