Hi,
I am porting UART/I2C/SPI modules from DSP-BIOS5 (PSP 1.30.01) to SYS-BIOS6 (BIOS PSP 03.00.01.00).
I have updated followings
BIOS5
***********
GIO_Attrs gioAttrs = GIO_ATTRS;
chanParams.hEdma = hEdma[0];
Int32 status;
/* create SPI channel for transmission */
spiflashHandle = GIO_create("/SPI1",IOM_INPUT,&status,&chanParams,&gioAttrs);
*******************
to
SYS-BIOS56
$$$$$$$$$$$
GIO_Params gioParams;
Error_Block eb;
Error_init(&eb);
Spi_ChanParams chanParams;
chanParams.hEdma = hEdma[0];
gioParams.chanParams = &chanParams;
/* create SPI channel for transmission */
spiflashHandle = GIO_create("/SPI1",GIO_INPUT, &gioParams, &eb);
$$$$$$$$$$$
This compiles and links fine. But below modifications BIOS5 (.tcf) to SYS-BIOS6 (.cfg) gives following error while loading/running file.
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
ti.sysbios.io.DEV: line 94: mdBindDev failed
xdc.runtime.Error.raise: terminating execution
&&&&&&&&&&&&&&&&&&&&&&&&&&&&
BIOS5 (.tcf file)
********************************
bios.UDEV.create("UART0");
bios.UDEV.instance("UART0").initFxn = prog.extern("UartInit");
bios.UDEV.instance("UART0").fxnTable = prog.extern("Uart_IOMFXNS");
bios.UDEV.instance("UART0").fxnTableType = "IOM_Fxns";
bios.UDEV.instance("UART0").deviceId = 1;
bios.UDEV.instance("UART0").params = prog.extern("uartParams");
*********************************
to
SYS-BIOS56(.cfg file)
$$$$$$$$$$$
var iomFxns = "Uart_IOMFXNS";
var initFxn = "UartInit";
var deviceParams = "uartParams";
var deviceId = 1;
GIO.addDeviceMeta("/UART0", iomFxns, initFxn, deviceId, deviceParams);
$$$$$$$$$$$
What is wrong here ?
Thanks
Jayesh