
17 GR-LEON4-ITX Development Board
Quick Start Guide
4.4 Drawing images
GRMON has support for drawing both test screens and images in PPM ASCII format. The
transcript below show commands that draw the built-in test screen in different modes. Note
that the DVI transmitter must be initialized for the correct bit depth.
grlib> i2c 3 dvi init_l4itx_dvi
Transmitter was not set to Chrontel CH7301C (AS=0), changing..
DVI transmitter set to Chrontel CH7301C (AS=0)
Initializing CH7301 for LEON/GRLIB design..
Initialization done..
grlib> svga formats
Available SVGACTRL display formats:
Format Resolution, refresh rate
------ ------------------------
0 480x272,
1 480x240,
2 640x480, 60 Hz
3 640x480, 72 Hz
4 640x480, 75 Hz
5 640x480, 85 Hz
6 800x480,
7 800x600, 56 Hz
8 800x600, 60 Hz
9 800x600, 72 Hz
10 800x600, 75 Hz
11 800x600, 85 Hz
12 1024x768, 60 Hz
13 1024x768, 70 Hz
14 1024x768, 75 Hz
15 1024x768, 80 Hz
16 Custom format (undefined)
grlib> svga draw test_screen 2 16
Drawing picture = test_screen, Depth = 16 bits, Format = 640x480, 60 Hz
Framebuffer memory pos = 0x40200000
grlib> svga draw test_screen 8 16
Drawing picture = test_screen, Depth = 16 bits, Format = 800x600, 60 Hz
Framebuffer memory pos = 0x40200000
grlib> svga draw test_screen 12 16
Drawing picture = test_screen, Depth = 16 bits, Format = 1024x768, 60 Hz
Framebuffer memory pos = 0x40200000
grlib> i2c 3 dvi init_l4itx_dvi 0
Initializing CH7301 for LEON/GRLIB design..
Initialization done..
grlib> svga draw test_screen 8 32
Drawing picture = test_screen, Depth = 32 bits, Format = 800x600, 60 Hz
Framebuffer memory pos = 0x40200000
grlib>
The test screen consists of a framed white cross on black background.
4.5 Interacting with the SPI boot PROM
GRMON provides support for interacting with SPI memory devices via its SPI Flash layer.
SPI memory devices can be controlled both over SPICTRL and SPIMCTRL cores. In the
examples below we will use the SPI memory controller core (SPIMCTRL) since it is attached
© Aeroflex Gaisler AB June 2010, Rev. 0.2