On Mon, 20 Jun 2011 16:37:32 +0000, Tomek CEDRO wrote: > Laurent, > > 1. If you create cable that have ADC onboard (like KT-LINK) then it > is > easier to write simple TCL script to read ADC than rewrite whole > driver in the source code. Yes, easy but dangerous, because you are layout specific !!! > > 2. If you need to program I2C, SPI, or other kind of memory, you > simply write simple TCL script to do so, no need to rewrite source > code from scratch. Again, layout specific > > 3. If you care not to short-cirtuit your internal buffers, put 27R > resistor in series between FT2232 and buffer output. 27R as protection is not enough ... U=RI P=UI ... at 5V ??? 27R are as serial resistor termination not protection ... do not confuse. > > 4. No interface has hardcoded signals by default, Wrong ... it is depending on the configuration of the ft2232 UART or FIFO ... so noone is > obligated to use ANY pin configuration for their device. This > functionality is meant to be placed inside interface configuration, > or > work on generic signals defined by the interface configuration (ie > LED, RnW, MOSI, MISO, CLK, ...), so yes in fact external scripts also > can work with interface-specific configuration :-) Yes ... > > 5. I see no reason that non-aware users should block functionalities > for people that need them and know how to use them, otherwise we need > no development. My objective is not to block feature.Never,never,never ... But we have to avoid any trouble in generic ft2232 driver regarding specific layout. That's all. Your TCL bitbang will control the port of the FTDI from an higher level than FT2232.c. OK but you TCL bitbang is specific to the layout used. How do you accept or not the use of the TCL procedure, if you do not have the notion of layout in this function ??? You have two solutions: You need to write a specifc driver (), or you need to filter the TCL bitbang action in the ft2232 generic driver. The filter must be specifc to the open layout ... The same is for SRST TRST control. The ft2232.c driver has specific functions for SRST TRST regarding layout used ... we have to do this for ANY other specific layout signal in the ft2232.c or write a specific driver. > > If you have any additional questions of doubts feel free to ask :-) How does the ADC controlled from K T ? > > Regards, > Tomek
Laurent http://www.amontec.com _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development