Wednesday, December 3, 2014

Flashing GL865-QUAD's firmware

If you bought a GSM Click board from MikroElektronika, chances are that the GL865-QUAD modem comes with older firmware. That might work for you, but my board came with version 10.00.144, which doesn't support SSL.

The GL865-QUAD chip can be easily upgraded via its AUX serial interface. Note that the AUX port is not the same serial port we use to operate the modem normally via AT commands, and it's actually not broken out to external pins so a bit of soldering is required.

Set up

A quick look at the datasheet reveals the location of the TX/RX pins:

I used a couple of breadboard jumper cables soldered directly to those pins:

To communicate with the GL865-QUAD I used this FTDI USB-serial converter from Sparkfun. According to Telit's datasheet, the AUX port is 2.8V CMOS logic, so I bridged across the two pads next to the 3.3V mark on the FTDI board with a bit of solder:

The GL865 hardware guide states that the absolute maximum input on 2.8V CMOS pins is 3.1V. I found the output of the FTDI chip was slightly over 3.1V, so I simply tied the TX/RX pairs together and hoped for the best. It turned out okay, but if you want to be extra careful, I suggest you use a simple level converter like this:

GL865 pin 45 (TXD_AUX) -------------- FTDI RXD
GL865 pin 44 (RXD_AUX) ----+---|<|--- FTDI TXD
                           |  1N4148
                           \ 4K7
GL865 any GND pin      ----+--------- FTDI GND

The diode will provide the necessary ~0.6V drop so that the FTDI output is within safe levels while the resistor pulls the CMOS input down to 0V when the FTDI TXD outputs a logic 0.

My whole setup looked like this:

Besides the RX/TX cables, I tied both the GL865 and FTDI grounds together (blue cable), and of course you need a 3.3V source to power the whole board. I used some batteries and a 3.3V regulator for this (not shown in the picture above).

Get the firmware

As of today, the latest firmware version is 10.01.140. It's not publicly available neither on Telit nor MikroE's websites, but you can request it directly through MikroE's contact page. Ask them for the XFP tool, too. They answer within 24 hours. The XFP tool runs on Windows, if you are on Linux or OS X you can run it from a Windows virtual machine.

Flash the firmware

With the GSM Click powered off, load up Xfp, select the firmware and hit program. As soon as Xfp says "Linking", power on the GSM Click. It has to be done in that very order. If you hit the program button after the Click has booted, Xfp will stay in a never ending "Linking" loop. It takes about 10 minutes to finish:

Test it!

To check the firmware version you can use the AT+CGMR command, which should output something like this:

<-- 10.01.140\r\n

And... done!


  1. Hi Javi can you contact me at . this regarding trackuino project. tq

  2. Thank you for posting this, really helped me out. Also here's the FW:

  3. Hi Javi. I'm applying the instructions, Xfp tool starts to write "Linking" in status bar and sending character 'U' to serial port continously, after a few seconds I power on the GL865 module, Xfp tool communicates with module, GL865 stops flashing status led, I assume it gets in flashing mode because module doesn't respond to AT command's in that mode. But everything stops at that point. Xfp tool says it's "Programming" but there isn't any activity in the serial port. After a minute Xfp pops up a messagebox saying Timeout error with code -9. How can I solve the problem I use Aux port and tried both Trace service and AT1 Instance in aux port settings using command AT#SII. They are both didn't solved my problem. Please help :)

    1. I can't help much because it's always worked for me as long as the programming / power-on sequence is done right. Maybe try a different version of xfp? Quick google and some forums suggest so.

  4. I have been reading out a lot of your articles and that i ought to say pretty nice stuff. I will certainly bookmark your internet website
    Devops Online Training
    Adobe cq5 Training
    Dell Boomi Training

  5. we are offering best devops online training with job support and high quality training facilities and well expert faculty .
    to Register you free demo please visit ,devops training in hyderabad


  6. this blog post is really helpful especially with me that is just starting learning about devops Jobs in Hyderabad follow in 2017.It is very informative and you explain it well

  7. Firmware playing a key role in many electronic systems, MaxCure has good equipment for Orthopedics for knee procedures.

  8. In electronic world, there was a complete firmware systems only. Good article to read. keep updating the articles. thank you.

    In Queen's NRI Hospitals - Vishakapatnam , have good equipment's for all treatments.

  9. Hi Javi, I need your support and advice to do a sounding balloon project. First, what card do I need (Arduino Mega, Trackuino, Intel Galileo, APRS, etc), and what kind of transmitter and receiver do I need and where do I get them?

    I hope to have your support please, it is for an educational project.

    You can also write to my email:

    Receive a cordial greeting. Best regards. Federico A. Heredia

  10. yes I read this paragraph fully about the resemblance of most up-to-date and earlier technologies, it's amazing article.
    Feel free to visit my homepage Orthopedic Hospital in Hyderabad

  11. Great article, resonated with me from start to finish about Health care.Orthopedic Surgeon in Hyderabad

  12. I appreciate that you took a simple, how to article by explaining the process step by step and how to about Health care.Best Heart Hospital in Hyderabad

  13. Very helpful post!! Followed you over here from Mugwump. Being from India I have never needed such knowledge, but you never know when things will change. Orthopedic Surgeon in Hyderabad

  14. How does this fit into APRS? Since the frequencies for APPRS are much lower.

  15. Boa noite, posso usar um cabo RS232 para fazer a conexão.

  16. I have a strong aversion to routine. But when you have kids, if you, the adult, don't establish a routine, the kids will take over and life will descend into chaos really fast. john barban after dinner routine

  17. social media in any kind of services or business field is really going to give them the hundred percent results in their Social Media Marketing campaigns. SMM can be learned with digital marketing courses. data science course syllabus

  18. thank you very much
    i like it