Quantcast
Channel: Embedded Software (Read Only)
Viewing all articles
Browse latest Browse all 25965

Forum Post: RE: BIOS port E_createFailed: mdCreateChan returned error -139

$
0
0

Hello Steve,

We are not  using SYS/BIOS legacy support in our app. We do not have xdc.loadPackage(‘ti.bios.tconf’) line in *.cfg file.

Can you please look into following ?

 We changed device configration code as below (as you have suggested).

***********************************

BIOS5 code

var iomFxns = "Spi_IOMFXNS";

var initFxn = "SpiInit";

var deviceParams = "spiParams";

var deviceId = 0;

GIO.addDeviceMeta("/SPI0", iomFxns, initFxn, deviceId, deviceParams);


var iomFxns = "Spi_IOMFXNS";

var initFxn = "SpiFlashInit";

var deviceParams = "spiflashParams";

var deviceId = 1;

GIO.addDeviceMeta("/SPI1", iomFxns, initFxn, deviceId, deviceParams);

***********************************

BIOS6 code

DEV.tableSize = 2;

var dev0Params = new DEV.Params();

dev0Params.instance.name = "generator";

dev0Params.initFxn = "&SpiInit";

dev0Params.deviceParams = "&spiParams";

dev0Params.devid = 0;

Program.global.generator = DEV.create("/SPI0", "&Spi_IOMFXNS", dev0Params);

var dev1Params = new DEV.Params();

dev1Params.instance.name = "spi_1";

dev1Params.initFxn = "&SpiFlashInit";

dev1Params.deviceParams = "&spiflashParams";

dev1Params.devid = 1;

Program.global.generator = DEV.create("/SPI1", "&Spi_IOMFXNS", dev1Params);

***********************************

By changing the code, we ran into linker error. We notice that we have following directory as compile include path in project configuration.

"C:\ti\bios_6_35_04_50\packages\ti\bios\include"

We have noticed that "dev.h" file in above directory conflicts with SYS-BIOS device. If we remove above directory, the project can't  compile as it can't find "std.h", "tsk.h", "log.h" files.

Question:  Is it okay to include "C:\ti\bios_6_35_04_50\packages\ti\bios\include" directory in SYS-BIOS project configuration ?

Thanks

Jayesh


Viewing all articles
Browse latest Browse all 25965

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>