GitHub address: https://github.com/WallBreakerX/mcu_firmware_writing_via_androidphone
Use< /h1>
- The hex firmware of the microcontroller can be programmed on the Android phone.
Notes
-
Currently only NXP’s LPC8xx series chips are supported, so the following pin connection methods are only applicable to this series of chips temporarily.
Added support for STM32 and other Cortex-M series chips.
-
When selecting Flash, it needs to correspond to the actual Flash size (default is 16KB), otherwise it may cause Flash erase and write failure.
-
Connect the RTS and DTS pins to allow APP to control the pin level to make the chip enter the ISP mode. You can also enter the ISP manually.
Hardware requirements and connections
-
Android 6.0 phones and above
li>
-
OTG adapter cable
-
CH340 USB to TTL
-
The MCU you want to burn
-
Connect the USB port of CH340 to the USB port of the mobile phone
Connect the TX of the TTL end to PIO0_0, and RX to PIO0_4
RTS is connected to RESET, DTS is connected to PIO0_12
(Most CH340s have RTS and DTS, but only holes, you need to solder the pins)
VCC and GND can be connected well, and the power supply must be connected separately. The voltage of the USB port of the mobile phone is not enough to adjust the level.
Use steps
-
Select hex file
-
Select the size of the on-chip Flash
-
Start burning!
Contact information
Currently only NXP’s LPC8xx series chips are supported, so the following pin connection methods are only applicable to this series of chips temporarily.
Added support for STM32 and other Cortex-M series chips.
When selecting Flash, it needs to correspond to the actual Flash size (default is 16KB), otherwise it may cause Flash erase and write failure.
Connect the RTS and DTS pins to allow APP to control the pin level to make the chip enter the ISP mode. You can also enter the ISP manually.
Android 6.0 phones and above
li>
OTG adapter cable
CH340 USB to TTL
The MCU you want to burn
Connect the USB port of CH340 to the USB port of the mobile phone
Connect the TX of the TTL end to PIO0_0, and RX to PIO0_4
RTS is connected to RESET, DTS is connected to PIO0_12
(Most CH340s have RTS and DTS, but only holes, you need to solder the pins)
VCC and GND can be connected well, and the power supply must be connected separately. The voltage of the USB port of the mobile phone is not enough to adjust the level.
Select hex file
Select the size of the on-chip Flash
Start burning!
If you encounter any problems during use, just contact me, thank you!
Thanks for the following open source libraries
-
https://github.com/felHR85/UsbSerial
-
https://github.com/leonHua/LFilePicker
-
https://blog.csdn.net/zf_c_cqupt/article/details/52676716 CSDN< /p>
WeChat: xmh849873336Email: [email protected]