Updated How to flash the Arduino (markdown)

sanni 2024-08-19 17:50:23 +02:00
parent 73d6539951
commit bffbe540c7

@ -15,11 +15,11 @@ Both compiling and flashing can be done with the **Arduino IDE**. You can either
Each Cart Reader release comes with a pre-configured and tested portable Arduino IDE tailored for that specific release which includes the Cart_Reader.ino sketch as well as all the needed Arduino libraries and SD database files and does not interfere with any previous Arduino installation. Each Cart Reader release comes with a pre-configured and tested portable Arduino IDE tailored for that specific release which includes the Cart_Reader.ino sketch as well as all the needed Arduino libraries and SD database files and does not interfere with any previous Arduino installation.
### To upload the firmware to the Cart Reader please follow these steps: ### To upload the firmware to the Cart Reader please follow these steps:
**0)** Plug your Open Source Cartridge Reader into a USB port of your PC. The ON/OFF switch needs to be set to ON. **0)** Plug your Open Source Cartridge Reader into a USB port of your PC. The 3V/5V switch needs to be set to 5V and the ON/OFF switch needs to be set to ON.
**1)** Download the latest V#.#_Portable.zip from the [Releases](https://github.com/sanni/cartreader/releases) tab and extract it. **1)** Download the latest V#.#_Portable.zip or .7z from the [Releases](https://github.com/sanni/cartreader/releases) tab and extract it.
![image](https://dl.dropboxusercontent.com/s/6s1fegtj00zocw5/portableardu.jpg?dl=1) ![rfeleasezip](https://github.com/user-attachments/assets/b5cb4e70-bf17-4d02-a3a8-c2f5cf9c3ffc)
**2)** Install CH341 drivers if needed by running SETUP.exe in the "CH341 Drivers" folder. **2)** Install CH341 drivers if needed by running SETUP.exe in the "CH341 Drivers" folder.
After the successful installation of the driver, there should be a CH340 entry in the device manager(WIN+R devmgmt.msc). This will also tell you what COM Port you need to select later on. After the successful installation of the driver, there should be a CH340 entry in the device manager(WIN+R devmgmt.msc). This will also tell you what COM Port you need to select later on.
@ -42,17 +42,21 @@ After the successful installation of the driver, there should be a CH340 entry i
![image](https://dl.dropboxusercontent.com/s/7o4wmh2rn4g2der/portableardu4.jpg?dl=1) ![image](https://dl.dropboxusercontent.com/s/7o4wmh2rn4g2der/portableardu4.jpg?dl=1)
**7)** Next you need to go to the config.h tab(earlier version have this in Cart_Reader.ino) and define your hardware version by removing the // in front of your version. You can also remove // before #define enable_XXX to enable add-on modules you need. **7)** Next you need to go to the config.h tab and define your hardware version by removing the // in front of your version.
![image](https://dl.dropboxusercontent.com/s/8kajcakxeghsben/choosemoduleshw.jpg?dl=1) ![config](https://github.com/user-attachments/assets/6d04f3ea-c87d-4f46-9810-6a6cd54bb797)
You can tell which hardware version you got by comparing your OSCR with this image: You can tell which hardware version you got by comparing your OSCR with this image:
![image](https://dl.dropboxusercontent.com/s/wrffv9ldzfu3qv9/telllhwversion.jpeg?dl=1) ![image](https://dl.dropboxusercontent.com/s/wrffv9ldzfu3qv9/telllhwversion.jpeg?dl=1)
You can also remove // before #define ENABLE_XXX to enable add-on modules you need.
![systemmodules](https://github.com/user-attachments/assets/e31db65e-35bd-4c77-ac0b-359189a8a306)
**8)** In case you do **not** have the Clock Generator installed you need to change the line "#define clockgen_installed" to "//#define clockgen_installed". **8)** In case you do **not** have the Clock Generator installed you need to change the line "#define clockgen_installed" to "//#define clockgen_installed".
![image](https://dl.dropboxusercontent.com/s/cj8qe8ewilflknj/clockgeninstalled.jpg?dl=1) ![clockgen](https://github.com/user-attachments/assets/d01ac293-139c-4286-9ac7-b807e33c87bd)
You can tell if you have the clock generator installed by comparing your OSCR with this image: You can tell if you have the clock generator installed by comparing your OSCR with this image: