Forum

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

   

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Soc Cnfiguration tool (Nov 13 2013) producing non-working crossbar bits?
2017 年 04 月 25 日
13:32:49
emmet380
New Member
Forum Posts: 6
Member Since:
2017 年 04 月 25 日
Offline

I used this tool to produce crossbar configs for my 86Duino One board with no Luck. my goal is to enable all 4 com ports at port 0-3 and the rest of the ports for GPIOs except SD for port 6. Here is the C results of this tool which I tested and not working. The COM1 TX and RX do not work!

static int CROSSBARTABLE[CRBTABLE_SIZE]={
0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF0,0xFF,0x7B,0xE2,0xFF,0x00,0x00,0x00,
0x01,0x04,0x00,0x01,0x05,0x00,0x01,0x01,0x01,0x00,0x00,0x01,0x01,0x00,0x01,0x01,
0x01,0x00,0x00,0x01,0x01,0x00,0x01,0x01,0x01,0x00,0x00,0x01,0x01,0x00,0x01,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x01,0x01,0x01,0x02,0x01,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x01,0x01,0x08,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,
0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,
0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
};

2017 年 04 月 26 日
17:22:09
cucubutter
Moderator
Forum Posts: 84
Member Since:
2014 年 04 月 10 日
Offline

Hi emmet380

If you want to modify crossbar, you must define CRB_DEBUGMODE macro in pins_arduino.h. The element of your CROSSBARTABLE more than CRBTABLE_SIZE.

cucubutter

2017 年 04 月 27 日
08:24:43
emmet380
New Member
Forum Posts: 6
Member Since:
2017 年 04 月 25 日
Offline

Thank you cucubutter for your reply.
the above array is copied from the generation of the soc config tool, is there a better utility that would produce the correct size of bytes?

2017 年 04 月 27 日
10:26:09
cucubutter
Moderator
Forum Posts: 84
Member Since:
2014 年 04 月 10 日
Offline

Would you provide more details about soc configuration tool, I can not understand it.

2017 年 04 月 28 日
00:41:59
emmet380
New Member
Forum Posts: 6
Member Since:
2017 年 04 月 25 日
Offline

Hello cucubutter,
the tool i downloaded from here:
http://www.roboard.com/temp/So.....fgTool.rar
The link for the topic is below. This tool produce non working crossbar settings for me. For example, when I used it to set port 0 to port 3 as com ports and port 6 as SD controller, and the rest of the ports as GPIO. this didn't work!
If there is a better automatic tool for crossbar configuration that is tested then that would be great

http://www.86duino.com/?page_i.....nfig-files

2017 年 04 月 28 日
17:08:39
cucubutter
Moderator
Forum Posts: 84
Member Since:
2014 年 04 月 10 日
Offline

Hi emmet380

Soc configuration tool is a convenient tool!
I modify a some setting that base on your setting. Because your setting not enable USB device.
This is my code, I connect pin 29 to pin 14 and it work success.

#define CRSBTABLE_SIZE 224
static int CROSSBARTABLE[CRSBTABLE_SIZE]={
0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x00,0x00,0x08,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x11,0x12,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF0,0x7F,0x7B,0xE0,0xFF,0x00,0x00,0x00,
0x01,0x04,0x00,0x01,0x05,0x00,0x01,0x01,0x01,0x00,0x00,0x01,0x01,0x00,0x01,0x01,
0x01,0x00,0x00,0x01,0x01,0x00,0x01,0x01,0x01,0x00,0x00,0x01,0x01,0x00,0x01,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x01,0x01,0x01,0x02,0x01,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x01,0x01,0x08,0x01,0x01,0x08,0x00,0x00,0x00,0x00,0x00,0x00,
0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,
0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
};

void setup()
{
for(int i=0; i < CRSBTABLE_SIZE; i++)
{
io_outpb(0xA00+i, CROSSBARTABLE[i]);
}

Serial.begin(115200);
Serial1.begin(115200);
Serial2.begin(115200);
}

void loop()
{
if(Serial.available()>0)
{
Serial1.print((char)Serial.read());
}

if(Serial2.available()>0)
{
Serial.print((char)Serial2.read());
}
}

cucubutter

Forum Timezone: Asia/Taipei

Most Users Ever Online: 66

Currently Online:
2 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Dinosaur: 27

leutenecker: 13

mrZagg: 10

lukeross: 8

tomka: 8

smeezekitty: 8

hippy: 8

Ekkehard: 8

UIdahoCIT: 8

blaxxun: 7

Member Stats:

Guest Posters: 0

Members: 1541

Moderators: 14

Admins: 5

Forum Stats:

Groups: 2

Forums: 10

Topics: 239

Posts: 1082

Newest Members: nhollywoodmarli, bat869cube672, lenggeleranto, iknowesp, dimka, elihu, Woodrowcercraby, Robertnalty, Homerwoppy, RonaldLew

Moderators: Glaux: 70, uaa: 11, guigra: 17, asian55: 22, Android_Lin: 211, bcarroll: 12, cucubutter: 84, recycled-air: 12, stevemork: 16, zerozaber: 52, pongraczi: 20, George Andrews III: 56, poto: 11, garpastym: 20

Administrators: eveshih: 1, anthony: 31, viky6: 0, roboard: 135, hcl: 0