This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

BSL on FG461x Experimenter's Board using Sparkfun/FTDI USB/UART adapter

I'm not sure if anyone needs this or wants it, but I couldn't find the solution and it might save someone futzing about.

I use the sparkfun FTDI adapters all the time.

To get them to work with the bootstrap loader on the FG461x experimented board;

Wiring detail:

Adapter  <-> Experimenters Board

DTR      <-> JTAG-11

RTS      <-> JTAG-7

RX        <-> H2-1

TX        <-> H2-2

(Note: JTAG pin 1 is on the outside of the board but the silkscreen shows it on the inside)

To make this work (here is the trick) you need to invert both DTR >and< RTS from BSLDemo.exe. So;

Using the >depreciated< BSL demo program sources.

Recompile with the line

   level = !level;

added to >both< functions SetRSTpin() and SetTESTpin() in bslcomm.c as follows;

void SetRSTpin(BOOL level)
/* Controls RST/NMI pin (0: GND; 1: VCC) */
{
  //if (level == TRUE)
  //  comDCB.fDtrControl = DTR_CONTROL_ENABLE;
  //else
  //  comDCB.fDtrControl = DTR_CONTROL_DISABLE;
level = !level;
  comDCB.fDtrControl = level ? DTR_CONTROL_ENABLE : DTR_CONTROL_DISABLE;

  SetCommState(hComPort, &comDCB);
} /* SetRSTpin */

void SetTESTpin(BOOL level)
/* Controls TEST pin (0: VCC; 1: GND) */
{
  //if (level == TRUE)
  //  comDCB.fRtsControl = RTS_CONTROL_ENABLE;
  //else
  //  comDCB.fRtsControl = RTS_CONTROL_DISABLE;
level = !level;
  comDCB.fRtsControl = level ? RTS_CONTROL_ENABLE : RTS_CONTROL_DISABLE;

  SetCommState(hComPort, &comDCB);
} /* SetTESTpin */

This will then work perfectly...

Enjoy

  • Thanks for sharing this infor.

    For those who try to use "USB to Serial Converter" similar to the Sparkfun FDTI adapter, please pay attention:

    The DTR, RTS, RX and TX signals used are the 3.3V logic signals directly from/to the FDTI (or other USB to serial converter) chip. Not the inverted RS232 signals.

**Attention** This is a public forum