Skip to content

Commit 6dfd45b

Browse files
Uelectronics-CH552-Arduino-Package-v3
0 parents  commit 6dfd45b

File tree

152 files changed

+19918
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

152 files changed

+19918
-0
lines changed

.vscode/settings.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"files.associations": {
3+
"neo.h": "c",
4+
"config.h": "c"
5+
}
6+
}

LICENSE

Lines changed: 504 additions & 0 deletions
Large diffs are not rendered by default.

README-sp.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Uelectronics-CH552-Arduino-Package
2+
3+
¡Bienvenido al Uelectronics-CH552-Arduino-Package! Este paquete ofrece un núcleo de Arduino que es una versión adaptada de [CH55xduino](https://github.com/DeqingSun/ch55xduino/tree/ch55xduino), basada en el trabajo realizado por [DeqingSun](https://github.com/DeqingSun). Específicamente diseñado para el microcontrolador CH55x, esta adaptación utiliza el compilador gcc para una integración sin problemas con los entornos de desarrollo de Arduino. Si estás listo para explorar este paquete más a fondo, adéntrate en los detalles a continuación sobre las placas compatibles y las instrucciones de instalación a través del Administrador de placas de Arduino. ¡Comencemos!
4+
5+
## Placas Compatibles
6+
- CH552
7+
8+
## Instalación con el Administrador de Placas de Arduino
9+
---
10+
Para instalar, sigue estos pasos:
11+
12+
1. Abre el IDE de Arduino y navega a Archivo -> Preferencias.
13+
2. En el cuadro de diálogo que aparece, ingresa la siguiente URL en el campo "URLs adicionales del Administrador de placas":
14+
15+
16+
> https://raw.githubusercontent.com/Cesarbautista10/Uelectronics-CH552-Arduino-Package-/main/package_duino_mcs51_index.json
17+
18+
![Añadir URL](./images/board_json.png)
19+
20+
3. Haz clic en OK para cerrar el cuadro de diálogo.
21+
4. Ve a Herramientas -> Placas -> Administrador de placas en el IDE.
22+
5. Escribe "CH" en el cuadro de búsqueda y selecciona "Instalar".
23+
24+
![Administrador de Placas](./images/manager.png)
25+
26+
## Licencia
27+
Este paquete se distribuye bajo la Licencia Pública General Menor de GNU, Versión 2.1, febrero de 1999.
28+
29+
## Contribuciones
30+
Si deseas contribuir o tienes correcciones de errores, por favor abre un problema o una solicitud de extracción
31+
32+
## Licencias y Créditos
33+
* El [IDE de Arduino y ArduinoCore-API](https://arduino.cc) son desarrollados y mantenidos por el equipo de Arduino y están licenciados bajo GPL.
34+
* El proyecto [ch55xduino](https://github.com/DeqingSun/ch55xduino/tree/ch55xduino) sirve como base para este repositorio, con actualizaciones proporcionadas por su mantenedor.

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Uelectronics-CH552-Arduino-Package v3
2+
3+
Welcome to the Uelectronics-CH552-Arduino-Package! This package offers an Arduino core that is a ported version of [CH55xduino](https://github.com/DeqingSun/ch55xduino/tree/ch55xduino), building upon the groundwork laid by [DeqingSun](https://github.com/DeqingSun). Specifically tailored for the CH55x microcontroller, this port utilizes the gcc compiler for seamless integration with Arduino development environments. If you're ready to explore this package further, delve into the details below on supported boards and installation instructions via the Arduino Boards Manager. Let's get started!
4+
5+
## Supported Boards
6+
- CH552
7+
8+
## Installing with Arduino Boards Manager
9+
---
10+
To install, follow these steps:
11+
12+
1. Open the Arduino IDE and navigate to File -> Preferences.
13+
2. In the dialog that appears, enter the following URL into the "Additional Boards Manager URLs" field:
14+
15+
> https://raw.githubusercontent.com/Cesarbautista10/Uelectronics-CH552-Arduino-Package-/main/package_duino_mcs51_index.json
16+
17+
![Adding URL](./images/board_json.png)
18+
19+
3. Click OK to close the dialog.
20+
4. Proceed to Tools -> Boards -> Boards Manager in the IDE.
21+
5. Type "CH" in the search box and select "Install".
22+
23+
![Boards Manager](./images/manager.png)
24+
25+
## License
26+
This package is distributed under the GNU Lesser General Public License, Version 2.1, February 1999.
27+
28+
## Contributing
29+
If you wish to contribute or have bug fixes, please open an issue or pull request
30+
31+
## Licensing and Credits
32+
* The [Arduino IDE and ArduinoCore-API](https://arduino.cc) are developed and maintained by the Arduino team and are licensed under GPL.
33+
* The [ch55xduino](https://github.com/DeqingSun/ch55xduino/tree/ch55xduino) project serves as the foundation for this repository, with updates provided by its maintainer.

ch55x/boards.txt

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# See: http://code.google.com/p/arduino/wiki/Platforms
2+
3+
menu.usb_settings=USB Settings
4+
menu.upload_method=Upload method
5+
menu.clock=Clock Source
6+
menu.bootloader_pin=Bootloader pin
7+
##############################################################
8+
9+
ch552.name=CH552 Board
10+
ch552.upload.protocol=ch55x2_3_1
11+
#ch552.upload.mcu=ch552
12+
#CH552 has 16K flash, but 2K is for bootloader, 14K usable
13+
ch552.upload.maximum_size=14336
14+
ch552.build.mcu=mcs51
15+
ch552.menu.clock.24internal=24 MHz (internal), 5V
16+
ch552.menu.clock.24internal.build.f_cpu=24000000L
17+
ch552.menu.clock.24internal.build.f_oscillator_external=0L
18+
ch552.menu.clock.16internal=16 MHz (internal), 3.3V or 5V
19+
ch552.menu.clock.16internal.build.f_cpu=16000000L
20+
ch552.menu.clock.16internal.build.f_oscillator_external=0L
21+
ch552.menu.clock.12internal=12 MHz (internal), 3.3V or 5V
22+
ch552.menu.clock.12internal.build.f_cpu=12000000L
23+
ch552.menu.clock.12internal.build.f_oscillator_external=0L
24+
ch552.menu.clock.24external=24 MHz (external 24M osc), 5V
25+
ch552.menu.clock.24external.build.f_cpu=24000000L
26+
ch552.menu.clock.24external.build.f_oscillator_external=24000000L
27+
ch552.menu.clock.16external=16 MHz (external 24M osc), 3.3V or 5V
28+
ch552.menu.clock.16external.build.f_cpu=16000000L
29+
ch552.menu.clock.16external.build.f_oscillator_external=24000000L
30+
ch552.build.board=ch55x
31+
ch552.build.core=ch55x
32+
ch552.build.variant=ch552
33+
ch552.build.mcu=CH552
34+
35+
ch552.upload.use_1200bps_touch=true
36+
ch552.upload.wait_for_upload_port=false
37+
38+
## USB Memory Settings
39+
## ----------------------------------------------
40+
ch552.menu.usb_settings.usbcdc=Default CDC
41+
ch552.menu.usb_settings.usbcdc.upload.maximum_data_size=876
42+
ch552.menu.usb_settings.usbcdc.upload.xdata_location=148
43+
ch552.menu.usb_settings.usbcdc.build.extra_flags=-DEP0_ADDR=0 -DEP1_ADDR=10 -DEP2_ADDR=20
44+
## ----
45+
ch552.menu.usb_settings.user148=USER CODE w/ 148B USB ram
46+
ch552.menu.usb_settings.user148.upload.maximum_data_size=876
47+
ch552.menu.usb_settings.user148.upload.xdata_location=148
48+
ch552.menu.usb_settings.user148.build.extra_flags=-DUSER_USB_RAM=148
49+
## ----
50+
ch552.menu.usb_settings.user0=USER CODE w/ 0B USB ram
51+
ch552.menu.usb_settings.user0.upload.maximum_data_size=1024
52+
ch552.menu.usb_settings.user0.upload.xdata_location=0
53+
ch552.menu.usb_settings.user0.build.extra_flags=-DUSER_USB_RAM=0
54+
## ----
55+
ch552.menu.usb_settings.user266=USER CODE w/ 266B USB ram
56+
ch552.menu.usb_settings.user266.upload.maximum_data_size=758
57+
ch552.menu.usb_settings.user266.upload.xdata_location=266
58+
ch552.menu.usb_settings.user266.build.extra_flags=-DUSER_USB_RAM=266
59+
60+
## ----------------------------------------------
61+
ch552.menu.upload_method.usb=USB
62+
ch552.menu.upload_method.usb.upload.tool=vnproch55x_usb
63+
## ----
64+
ch552.menu.upload_method.serial=Serial
65+
ch552.menu.upload_method.serial.upload.tool=vnproch55x_serial
66+
67+
## ----------------------------------------------
68+
ch552.menu.bootloader_pin.p36=P3.6 (D+) pull-up
69+
ch552.menu.bootloader_pin.p36.upload.bootcfg=3
70+
## ----
71+
ch552.menu.bootloader_pin.p15=P1.5 pull-down
72+
ch552.menu.bootloader_pin.p15.upload.bootcfg=1
73+
74+
# meaningless variables just to keep the makefile happy
75+
76+
ch552.upload.speed=1

0 commit comments

Comments
 (0)