
GR716-DS-UM, May 2019, Version 1.29
40
www.cobham.com/gaisler
GR716
2.8.3
Usage of the pin validation script
Script needs to be modified and loaded into GRMON. After script been loaded the TCL command
gen_config can be run to generate the external I/O configuration register settings.
2.8.4
Output of the pin validation script
The I/O script can be executed from within GRMON using the build-in TCL support. Here is an
example of running the script for setting up the system using with SpaceWire, 1 UART and external
SPI memory.
Table 18.
Example of executing I/O configuration script
grmon2> source iomx.tcl
grmon2> gen_config $iomx_uart0_cfg
...
grmon2>
Table 19.
Example of output from running the pin validation script when successful
grmon2> source iomx.tcl
grmon2> gen_config $iomx_apw_uart0_spi0_cfg
# Pin list
pin[0]: uart_ctsn(0)
pin[1]: uart_rtsn(0)
pin[2]: uart_tx(0)
pin[3]: uart_rx(0)
pin[12]: spim_sck(0)
pin[13]: spim_miso(0)
pin[14]: spim_mosi(0)
pin[15]: spim_slv(0)
pin[16]: spw_rxd
pin[17]: spw_rxs
pin[18]: spw_txs
pin[19]: spw_txd
// C constant
const int iomx[8] = {
0x00001111,
0x11110000,
0x00002222,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000};
grmon2>