> For the complete documentation index, see [llms.txt](https://guide.cronuszen.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.cronuszen.com/zen-es/preguntas-frecuentes/stack-bytecode-error.md).

# Error de pila / bytecode

#### Pregunta:

***

¿Cómo soluciono un error de Stack o Bytecode?

#### Respuesta:

***

Un error de Stack o Bytecode indica memoria corrupta, un script no válido o un proceso de programación fallido.

Esto suele ser causado por:

• Interrumpir la programación\
• Pérdida de energía durante el flasheo\
• Un GamePack o script corrupto

### Solución: Realizar un restablecimiento de fábrica

1. Desconecte todos los cables del Zen.
2. Presione y mantenga pulsado **P1 + P2**.
3. Mientras mantiene presionados ambos botones, conecte el Zen usando el **puerto USB CONSOLE/PC**.
4. Mantenga durante al menos 4 segundos hasta que los LED RGB parpadeen **Rojo → Verde → Azul**.
5. Suelte cuando aparezca el logo.

### Reinstalar el firmware

1. Conéctese al PC mediante el **puerto USB PROG**.
2. Abra **Zen Studio → Herramientas → Actualización de firmware en línea**.
3. Instale el firmware más reciente.

### Importante

Después de restablecer, reinstale sus scripts.\
Si el error vuelve inmediatamente después de instalar un script específico, ese script probablemente esté corrupto o sea incompatible.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guide.cronuszen.com/zen-es/preguntas-frecuentes/stack-bytecode-error.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
