Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MCU shutdown #4

Open
thecrow159 opened this issue Jan 14, 2024 · 1 comment
Open

MCU shutdown #4

thecrow159 opened this issue Jan 14, 2024 · 1 comment

Comments

@thecrow159
Copy link

thecrow159 commented Jan 14, 2024

Hi apollo80,
thank you for your great work.

I was able to flash your code but very often (10 minutes for example) during a print and even while not printing I get a "MCU shutdown. Timer too close" error. I can attach pictures of the error. My MKS WiFi is connected to my router in STA mode that I enabled in your Arduino code. My printer is a Flsun Q5, all parts are original. The mcu is a Mks Robin Nano v1.2.

Inside the file "wireless_klipper_sta.ino" I changed those lines for my wifi connection to happen:

struct settings_t moduleSettings
{
    /// @brief firmware version
    .version = { 0, 0, 2, 3 },

    /// @brief wifi point name
    "FlsunQ5",

    /// @brief wifi SSID
    "My WiFi SSID",

    /// @brief wifi password
    "My WiFi passowrd",

    /// @brief wifi mode
    .wifi_use_sta = true,


    // default values for the serial port
    .serialPort_baud = 250000,

    .serialPort_rxBuffSize = 256,


    /// @brief port of tcp2serial server
    .tcpServer_port = 8888,

    // buffer size for receiving/transmitting data
    .tcpServer_buffSize = 256,


    /// @brief
    .use_static_ip = true,

    /// @brief
    .static_IPaddress = { 192, 168, 1, 90 },

    /// @brief
    .static_netmask = { 255, 255, 255, 0 },

    /// @brief
    .static_gateway = { 192, 168, 1, 1 },
};

Then I patched klipper source to enable wifi.

My host is a Raspberry Pi 2, I can attach system usages too.

Bye,
Emiliano

IMG_20240114_112441_256

IMG_20240114_112438_419

@apollo80
Copy link
Owner

Hi.
After searching for the problem for a long time and rewriting the code for different SDKs, I finally found the problem.

During the interaction, something happens to the WiFi subsystem and an error is displayed in the UART, which spoils the entire operation of the MCU.

A issue to the SDK developers has been opened - espressif/ESP8266_RTOS_SDK#1282
We'll be watching.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants