Project

General

Profile

Folie v2.8 for Mac OSX?

Added by SabineT almost 2 years ago

Is there a compiled version of Folie 2.8 for Mac OSC available? On github I find only V1 binary, but this does'nt show up as shown on http://jeelabs.org/article/1651c/

Regards, Sabine


Replies (9)

RE: Folie v2.8 for Mac OSX? - Added by JohnO almost 2 years ago

The latest one I have is:

Johns-MacBook-Pro:.ssh john$ folie
Folie v2.12
Select the serial port:

RE: Folie v2.8 for Mac OSX? - Added by SabineT almost 2 years ago

I found it, thanks!

RE: Folie v2.8 for Mac OSX? - Added by SabineT almost 2 years ago

The only problem I have now is folie sets the DTR pin on my FTDI adapter to the wrong state. When I connect the JNZv4 to the adapter and them to my Mac, the LED on the JNZ is on. After starting folie the LED goes off and nothing more happens. When I disconnect the DTR line the LED comes back on and I get the reset message from the JNZ ("Mecrisp-Stellaris ...").
So I can not use the !reset command to reset the JNZ :(

RE: Folie v2.8 for Mac OSX? - Added by JohnO almost 2 years ago

Are you starting folie with the -r option?

RE: Folie v2.8 for Mac OSX? - Added by SabineT almost 2 years ago

I tried it with and without -r but always the same. At the moment I pulled out the cable on the FTDI connector the goes to the reset pin on the JNZ and when I need a reset I put it shortly to the pin...

RE: Folie v2.8 for Mac OSX? - Added by JohnO almost 2 years ago

I think we will need to wait for jcw to take a look at this. I think he is still out of the country.

RE: Folie v2.8 for Mac OSX? - Added by SabineT almost 2 years ago

Intersesting thing:

I now swapped in the source of folie in serial.go DTR and RTS (RTS is now toggled to reset the JNZ). Now it starts correctly and I can also send a !reset command.

Original:


func boardReset(enterBoot bool) {
    if !*raw {
        telnetReset(enterBoot)
    } else if tty != nil {
        tty.SetDTR(true)
        tty.SetRTS(!enterBoot)
        time.Sleep(time.Millisecond)
        tty.SetDTR(false)
    }
    time.Sleep(time.Millisecond)
}

my version:


func boardReset(enterBoot bool) {
        if !*raw {
                telnetReset(enterBoot)
        } else if tty != nil {
                tty.SetRTS(true)
                tty.SetDTR(!enterBoot)
                time.Sleep(time.Millisecond)
                tty.SetRTS(false)
        }
        time.Sleep(time.Millisecond)
}

on init I set RTS to false and DTR to true

I tried similar changes to telnet.go, but there I could not solve my problem. So I have to use -r option...

Befor i did this I tried the original setup witch swapped DTR and RTS cables on the FTDI connector, what should do the same. But for what ever reason this did'nt work.

RE: Folie v2.8 for Mac OSX? - Added by SabineT almost 2 years ago

I finaly found out whats wrong with my FTDI-Adapter:

  1. DTR and RTS cables are swapped
  2. DTR is not working (checked this with the example_modem_bits_test.go from the serial.v1 package and 2 LED's + R's connected to the corresponding pins from the FTDI-connector).

I have another adapter, but this has CTS instead of RTS on the connector. But RTS is available on the board so I could test the JNZ on this adapter. Now I can use an unmodified folie, but only with -r parameter. I could now also update Mecrisp-Stellaris to V2.3.6

Tomorrow I will look on the first adapter if I find, why DTR is not working.

Regards, Sabine

    (1-9/9)