BRT Community

General Category => General Discussion => Topic started by: mathieu on August 06, 2021, 03:32:55 PM

Title: Linux toolchain
Post by: mathieu on August 06, 2021, 03:32:55 PM
Hello everyone,

I'm using the FT931 chip to provide a UART and SD card bridge through USB on an embedded device. Now that the firmware is almost ready, I would like to automate the compilation.
The target board will run Linux built with Yocto. So the idea would be to build the firmware at the same time.

Is there a toolchain (ft32-elf-gcc and other binutils tools) available for Linux ? Or should I build the toolchain first, and in that case how ?

Thanks in advance
Title: Re: Linux toolchain
Post by: BRT Community on August 10, 2021, 05:07:47 PM
Hello,

We only provide the toolchain for Windows.

However we have heard other customers having the tools compiled for both mac and linux, and everything is functioning just fine.
This is because the tools used are open source.

See AN 325 FT9xx Toolchain Installation Guide (http://brtchip.com/wp-content/uploads/Support/Documentation/Installation_Guides/ICs/MCU/AN-325-FT9xx-Tool-Chain-Installation-Guide.pdf) for more information.

The only issue is programming the part.
You can, of course, use the open-source dfu-util to program the part, however if you end up breaking dfu mode, you have to use windows to recover with the one-wire programmer (FT900Prog.exe).
Your application code should have a DFU interface included if you want to use that. DFU is good for in-field updates but not during the development phase. See the GPIO DFU Example in AN_360 (http://brtchip.com/wp-content/uploads/Support/Documentation/Application_Notes/ICs/MCU/AN-360-FT9xx-Example-Applications.pdf) for reference.

So unfortunately we can’t support the toolchain on anything other than Windows.

Best Regards,
BRT Community