# LEGO NXT Controller Firmware

{% hint style="info" %}
This article is automatically translated from Russian by Google Translator.
{% endhint %}

TRIK Studio uses [nxtOSEK](http://lejos-osek.sourceforge.net/) firmware as the execution environment for the generated programs, which is compatible in command format and interface appearance with the stock firmware and allows you to run C programs with the ECRobot library.

Before you can load the generated programs on the robot, you have to flash it. You only need to do this once for each robot, unless you use third-party tools that upload their firmware to the robot.

{% hint style="warning" %}
**Warning!** Firmware of the robot requires drivers to be installed.
{% endhint %}

1. Turn the robot on and connect it to your computer via [USB](https://help.trikset.com/en/connect-to-studio#usb-connection).
2. Press the "Reset" button on the back of the robot and hold it down for 4 seconds (see the robot manual supplied with the construction kit for details). If done correctly, the robot will tick characteristically.
3. Press the "Flash" button and wait for the system to tell you that the robot has successfully finished flashing the robot.
4. Reboot the robot.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.trikset.com/en/nxt/firmware.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
