> 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-pt/perguntas-frequentes/stack-bytecode-error.md).

# Erro de stack/bytecode

#### Pergunta:

***

Como corrijo um erro de Stack ou Bytecode?

#### Resposta:

***

Um erro de Stack ou Bytecode indica memória corrompida, um script inválido ou um processo de programação falho.

Isto é normalmente causado por:

• Interrupção da programação\
• Perda de energia durante o flashing\
• Um GamePack ou script corrompido

### Solução – Realize um Reset de Fábrica

1. Desconecte todos os cabos do Zen.
2. Pressione e segure **P1 + P2**.
3. Enquanto segura ambos os botões, conecte o Zen usando a **porta USB CONSOLE/PC**.
4. Mantenha pressionado por pelo menos 4 segundos até os LEDs RGB piscarem **Vermelho → Verde → Azul**.
5. Solte quando o logo aparecer.

### Reinstalar o Firmware

1. Conecte ao PC via a **porta USB PROG**.
2. Abra **Zen Studio → Tools → Online Firmware Update**.
3. Instale o firmware mais recente.

### Importante

Após o reset, reinstale seus scripts.\
Se o erro retornar imediatamente após instalar um script específico, esse script provavelmente está corrompido ou incompatível.


---

# 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-pt/perguntas-frequentes/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.
