Search found 40 matches

by jhrose
Mon Sep 20, 2010 6:16 pm
Forum: Development Tools and Programming
Topic: My command line tools
Replies: 13
Views: 11910

Re: My command line tools

I might have a patch for XC-1 The latest version of segher's command line JTAG tools includes support for both the XC-1 and XC-1A boards. I've put a win32 port of this latest version with the sources including Visual Studio 6 project files and built executables at http://www.jhrose.dial.pipex.com/x...
by jhrose
Fri Sep 10, 2010 4:49 pm
Forum: Development Tools and Programming
Topic: My command line tools
Replies: 13
Views: 11910

Re: My command line tools

But why doesn't it do that at bootup already then? I'm missing something here, I guess. Not sure but according to [datasheet, section 3.3] the 2232 comes up by default in rs232 mode (unless configured otherwise in the eeprom) and [section 8.0 table 8.1] in rs232 mode pin 13 isn't pulled up. Let me ...
by jhrose
Thu Sep 09, 2010 11:00 pm
Forum: Development Tools and Programming
Topic: My command line tools
Replies: 13
Views: 11910

Re: My command line tools

Are you sure the board resets on the "set bit-bang" command already? Yes when a value of 2 (bit-bang mode MPSSE) is given; whereas giving a value of 0 (bit-bang mode reset) the 2232 does not drive ACBUS1. I tested a number of times by single stepping through the code while watching Q12 wi...
by jhrose
Wed Sep 08, 2010 9:57 pm
Forum: Development Tools and Programming
Topic: My command line tools
Replies: 13
Views: 11910

Re: My command line tools

I'm attempting a port of segher's JTAG tools to Win32 and have run into a problem. While my ported JTAG tools in essence run on Win32, what I get running regs.exe for example is 0xffffffff from each register location. I'm using MSVC6.0 and linking with libusb-win32 version 1.2.1.0 [a version based o...
by jhrose
Sun Jun 27, 2010 9:34 pm
Forum: Development Tools and Programming
Topic: Channel ends
Replies: 6
Views: 6736

Re: Channel ends

Hei, Probably an XC language expert should step in here, but I think your last code snippet is a pretty good illustration. XCORE XS1 Architecture Tutorial, section 4, "Some of the resources are managed by the XCore, in that it maintains a set of available resources. A resource can be allocated ...
by jhrose
Sun Jun 27, 2010 8:13 pm
Forum: Group Discussion
Topic: Operating System Interest Group for XMOS devices (XOSIG)
Replies: 43
Views: 109607

Re: Operating System Interest Group for XMOS devices (XOSIG)

Hei, That looks fine (as a non-XC-compilable). Further to your forum posting on channel ends http://www.xcore.com/forum/viewtopic.php?f=10&t=555&start=0 , I've attached an XC-compilable based on your ideas and using transactions for performing 'protocol-chanend' i/o that reduces the potentia...
by jhrose
Sun Jun 27, 2010 7:37 pm
Forum: Development Tools and Programming
Topic: Channel ends
Replies: 6
Views: 6736

Re: Channel ends

Hei, The Programming XC book describes chanend (ports, timers, cores and clocks) as resource types: Appendix A.3.2 Basic Types, "Channel ends, ports, timers and cores are collectively referred to as having resource types. Except for cores, which do not reserve storage, an object of resource typ...
by jhrose
Sun Jun 27, 2010 1:10 am
Forum: Group Discussion
Topic: Operating System Interest Group for XMOS devices (XOSIG)
Replies: 43
Views: 109607

Re: Operating System Interest Group for XMOS devices (XOSIG)

Hei, ...playing about with channel ends... This looks much better than before with typedef chanend and I think a compiler would stand a better chance of type-checking the protocol. Though in motor_controller you persist using the select statement with the control port in two case statements. This re...
by jhrose
Sat Jun 26, 2010 3:43 pm
Forum: Group Discussion
Topic: Operating System Interest Group for XMOS devices (XOSIG)
Replies: 43
Views: 109607

Re: Operating System Interest Group for XMOS devices (XOSIG)

Hei,
...the PiXC and IoI etc - would be on the Wiki
Ok, XOSIG and PiXC sources are now on the wiki, at http://www.xcore.com/wiki/index.php/XMO ... 28XOSIG%29
by jhrose
Sat Jun 26, 2010 2:44 am
Forum: Group Discussion
Topic: Operating System Interest Group for XMOS devices (XOSIG)
Replies: 43
Views: 109607

Re: Operating System Interest Group for XMOS devices (XOSIG)

Hei, how to make this even more C/XC like and perhaps reuse more what we already have, in particular unions, structures and typedefs I still prefer the protocol extension. But I tried a few changes to your example, and the code below almost compiles as XC: /* * main.xc - project typedef_chan * * 25....