Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
freem
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Openai/6925e179-6234-8008-a078-8a1d6d75e202
(section)
Add languages
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==== Antes de tocar PlatformIO, necesitamos instalar herramientas: ==== # Instalar Python 3.10+ - Descargar desde python.org - Durante la instalación, marcar “Add Python to PATH”. - Verificar en cmd: ``<code> python --version pip --version <syntaxhighlight>2. Instalar Git - Descargar desde git-scm.com - Durante la instalación, aceptar “Git from the command line and also from 3rd-party software”. # Instalar PlatformIO - Opción recomendada: VSCode + PlatformIO IDE. - Descargar VSCode. - Abrir VSCode → Extensiones → buscar PlatformIO IDE → Instalar. - Verificar instalación: </syntaxhighlight> pio --version <syntaxhighlight>4. Instalar STM32CubeProgrammer (para flashear) - Descargar desde la web de ST (STM32CubeProgrammer) - Instalar en Windows. ==== Abrir cmd o PowerShell: ==== </syntaxhighlight>bash git clone https://github.com/meshtastic/Meshtastic-device.git cd Meshtastic-device <syntaxhighlight> : ==== El LR20-900M22SP usa STM32L072CZ, así que necesitamos la board correcta en PlatformIO: ==== # Abrir VSCode → PlatformIO → Open Project → seleccionar la carpeta Meshtastic-device. # Editar el archivo platformio.ini: </syntaxhighlight>ini [env:dxlr20] platform = ststm32 board = nucleo_l072cz framework = arduino build_flags = -D MESHTASTIC_DEVICE_NAME="DXLR20" monitor_speed = 115200 <syntaxhighlight> : ==== En VSCode → Terminal: ==== </syntaxhighlight>bash pip install -r requirements.txt <syntaxhighlight> : ==== Si quieres usar radio Semtech SX1262 (LR20 lo tiene): ==== # Edita config.h o user_config.h en el proyecto: </syntaxhighlight>c #define RADIO_DEVICE sx1262 #define RADIO_FREQ 915000000 // Frecuencia según tu región <syntaxhighlight> # Guarda cambios. ==== En VSCode → PlatformIO → Terminal: ==== </syntaxhighlight>bash pio run -e dxlr20 <syntaxhighlight> * Si todo va bien, PlatformIO compilará el firmware. * El archivo .bin o .hex resultante estará en: </syntaxhighlight> .pio\build\dxlr20\firmware.bin </code>``
Summary:
Please note that all contributions to freem are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 (see
Freem:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)