> For the complete documentation index, see [llms.txt](https://martijn-hendriks.gitbook.io/archive/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://martijn-hendriks.gitbook.io/archive/geavanceerd/flashen.md).

# Flashen

Nieuwe software op de dongle zetten

Wilt u de dongle zelf van nieuwe firmware voorzien dan is deze gemakkelijk te flashen via de  micro usb poort.

Er zijn meerdere mogelijkheden, namelijk:

* andere DSMR-API versie flashen. zie: <https://github.com/mhendriks/P1-Dongel-ESP32>
* ESPHome versie flashen. zie : <https://github.com/mhendriks/esphome-p1>
* Zelfgemaakte software flashen.

### Driver

Om de usb micro poort van de dongle te gebruiken dient uw computer de juiste driver te hebben geinstalleerd. De uitleg hierover is te vinden in: <https://docs.espressif.com/projects/esp-idf/en/latest/esp32c3/get-started/establish-serial-connection.html>

### JTAG

Op de print zitten onderop ook aansluitingen om de dongle via zo genoemde JTAG methode (TTL - USB adapter) te voorzien van nieuwe software.

Flashen dient via een FTDI interface te gebeuren (115200 baud). Op J2 (onderkant) zitten de aansluitingen voor deze interface. De pinout (v3.5 hardware) is :

[![](https://github.com/mhendriks/DSMR-API-V2/raw/master/manual/dsmr-api/afb/3.4onder.png)](https://github.com/mhendriks/DSMR-API-V2/blob/master/manual/dsmr-api/afb/3.4onder.png)

1. RX
2. TX
3. Flash; download modus = Flash op GND houden + Reset kort naar GND
4. 3.3Volt
5. GND
6. Reset = GND

De software is te vinden op <https://github.com/mhendriks/DSMR-API-V2>
