This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:tech:tradfri_mod [2021/01/20 10:58] – [Debugger] bullar | en:tech:tradfri_mod [2026/08/12 12:15] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 22: | Line 22: | ||
| A debugger is required to be able to read or write to the FLASH. An inexpensive variant is again available from [[https:// | A debugger is required to be able to read or write to the FLASH. An inexpensive variant is again available from [[https:// | ||
| - | {{ : | + | {{ :media:tech: |
| The 4 wires of the debugger are to connect to the module as follows: | The 4 wires of the debugger are to connect to the module as follows: | ||
| Line 34: | Line 34: | ||
| In addition, the module must be supplied with 3.3V. J-Link from [[https:// | In addition, the module must be supplied with 3.3V. J-Link from [[https:// | ||
| - | ==== Auslesen | + | ==== Read out ==== |
| - | Im Terminal geben wir dann folgendes ein (Pfad anpassen): | + | In the terminal window we then enter the following command |
| ''< | ''< | ||
| - | Es erscheint der '' | + | The '' |
| < | < | ||
| J-Link> | J-Link> | ||
| Line 58: | Line 58: | ||
| </ | </ | ||
| - | Der Cortex-M4 | + | The Cortex-M4 |
| ^ Area ^ ADDR ^ Size ^ | ^ Area ^ ADDR ^ Size ^ | ||
| Line 66: | Line 66: | ||
| | CHIP | '' | | CHIP | '' | ||
| - | Zum Auslesen und Abspeichern geben wir die folgenden Befehle ein: | + | To read out and save, we enter the following commands: |
| < | < | ||
| Line 78: | Line 78: | ||
| </ | </ | ||
| - | Mit dem Befehl | + | With the command |
| - | Zum Glück waren bisher alle von mir ausgelesenen Module nicht lesegeschützt.\\ | + | Fortunately, |
| - | Haben wir alle vier Files können wir jetzt jedes beliebige Modul neu programmieren und so die gewünschte Funktion erhalten. In meinem Fall habe ich die TRÅDFRI | + | If we collect all four files, we can now reprogram any module and thus obtain the desired function. In my case I took the TRÅDFRI |
| - | ==== Programmieren | + | ==== Programming |
| - | Das Programmieren geht genauso einfach wie das Auslesen mit folgenden Befehlen: | + | Programming is just as easy as reading out with the following commands: |
| < | < | ||
| Line 101: | Line 101: | ||
| </ | </ | ||
| - | ==== TRÅDFRI | + | ==== TRÅDFRI |
| - | Das gleiche Verfahren lässt sich übrigens auch für andere | + | The same procedure can also be used for other TRÅDFRI |
| - | Für das [[de:tech:gw60|Rollo Projekt]] habe ich dazu den Standard | + | For the [[en:tech:gw60 | blind project]] I converted the standard |
| - | {{: | + | {{: |
| - | {{: | + | {{:media:tech:tradfri: |
| - | Wie man den Taster öffnet ist [[http:// | + | How to open the button is [[http:// |
| ^ JLINK ^ TRÅDFRI Taster | ^ JLINK ^ TRÅDFRI Taster | ||
| | VCC | VCC | | | VCC | VCC | | ||
| Line 115: | Line 115: | ||
| | SWCLK | CLK | | | SWCLK | CLK | | ||
| | GND | GND | | | GND | GND | | ||
| - | {{: | + | |
| + | {{:media:tech: | ||
| ==== Update ==== | ==== Update ==== | ||
| - | Alle TRÅDFRI | + | All TRÅDFRI |
| - | + | ||
| - | Es wird allerdings nur der MAIN Bereich des FLASH aktualisiert. Die Bereiche USER, LOCK und CHIP ändern sich nicht und sind somit auch nicht online. Will man also ein Modul in eine andere Funktionalität umprogrammieren, | + | |
| - | + | ||
| - | Die geladenen Daten sind in einem exotischen Format gekapselt mit der Abkürzung NGIS. Hier war auch wieder etwas Arbeit nötig um das Format zu entschlüsseln und die Binärdatei zu extrahieren. Eine tolle Unterstützung war dabei übrigens das Program [[https:// | + | |
| - | {{: | + | However, only the MAIN area of the FLASH is updated. The USER, LOCK and CHIP areas do not change and are therefore not online either. If you want to reprogram a module with a different functionality, |
| + | The loaded data is encapsulated in an exotic format with the abbreviation NGIS. Here again some work was necessary to decrypt the format and extract the binary file. The program [[https:// | ||
| - | Zum Extrahieren habe ich ebenfalls ein Python Script geschrieben das auch im Downloadbereich liegt. Bei den bisherigen Tests war die extrahierte Version binäridentisch zur ausgelesenen.\\ | + | {{: |
| + | For extracting I wrote a Python script that is also in the download area. In the previous tests, the extracted version was binary identical to the one that was read out. \\ | ||
| ==== Downloads ==== | ==== Downloads ==== | ||
| - | * {{: | + | * {{:media:tech:tradfri: |
| - | * {{: | + | * {{:media:tech: |
| ==== Donate ==== | ==== Donate ==== | ||
| - | If you line my articles feel to donate a cappuccino or so... | + | If you like my articles feel to donate a cappuccino or so... |
| < | < | ||