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

esp8266 compiled, but not works. #246

Closed
NsdHSO opened this issue Nov 20, 2024 · 5 comments
Closed

esp8266 compiled, but not works. #246

NsdHSO opened this issue Nov 20, 2024 · 5 comments

Comments

@NsdHSO
Copy link

NsdHSO commented Nov 20, 2024

I want to be able toggle the default led from esp8266. For the moment I want to run a loop in the esp, and to see the logs.

For the moment I builded this program

fn main() {
    esp_idf_sys::link_patches();
    // Loop to toggle the LED 20 times
    for i in 0..20 {
        println!("{} Toggle", i);
    }
}

cargo build

all works good.

but when I want to flesh, Flashing has completed, but I got something like.

espflash flash target/xtensa-esp32-espidf/debug/blink --baud=460800 --monitor
[2024-11-20T09:15:55Z INFO ] 🚀 A new version of espflash is available: v3.2.0
[2024-11-20T09:15:55Z INFO ] Detected 4 serial ports
[2024-11-20T09:15:55Z INFO ] Ports which match a known common dev board are highlighted
[2024-11-20T09:15:55Z INFO ] Please select a port
[2024-11-20T09:15:56Z INFO ] Serial port: '/dev/cu.usbserial-2140'
[2024-11-20T09:15:56Z INFO ] Connecting...
[2024-11-20T09:15:57Z INFO ] Using flash stub
Chip type:         esp8266
Crystal frequency: 26MHz
Flash size:        4MB
Features:          WiFi
MAC address:       8c:ce:4e:c1:d1:81
App size:          474,048 bytes
[00:00:49] [========================================]     463/463     0x0  [2024-11-20T09:16:47Z INFO ] Flashing has completed!
Commands:
    CTRL+R    Reset chip
    CTRL+C    Exit

**###
_��{ll��|�l�<

        �
         d�c|����s�c�
                     b��gn�do'���
                                 #x��lrdrd8�g�
                                              �




                                               c
                                                o�<l�
                                                     #��o'�d��$`�'
                                                                  d`'{���g

�lx�o�

      ��b
         n�<
            �;�d��c��'o�
                        $ �'od�d`g{���g
                                       d``�'
                                            ��c�ol�
                                                   ��ng�
                                                        �dp�'�
                                                              ;���x�

                                                                    cg�|

��c��'o�$�l�o' �dg{���g ���p�n�
;���

cg�|�_**
#��o'��d�nglos�ۓo
ۓ`8�g�
{���l�
co�<l�

 �
  #��o'�l`�o'l`gs�ۓo�l`8�o�
                           ���
                              b
                               '�|�d�Ǐ
                                      �c��'o�
                                             $`�'l�l or�ۓo��l{��g
                                                                 �
                                                                  �$r��'l�|��`�s��o�#�gc8�
@NsdHSO
Copy link
Author

NsdHSO commented Nov 20, 2024

If anyone has encountered this problem before and could help me, I would be grateful.

@ivmarkov
Copy link
Collaborator

ivmarkov commented Nov 20, 2024

If anyone has encountered this problem before and could help me, I would be grateful.

esp8266 will never be supported by the esp-idf-* crates.
Initially, we implemented "some" support, in the hope/anticipation that ESP-IDF will be ported to esp8266, but this would never happen.

We need to remove any reference to esp8266 from esp-idf-sys.

@github-project-automation github-project-automation bot moved this from Todo to Done in esp-rs Nov 20, 2024
@ivmarkov
Copy link
Collaborator

The closest supported chip to esp8266 is esp32c3.
You can use any esp32* chip but it seems esp32c3 specifically is even pin-compatible with esp8266.

@NsdHSO
Copy link
Author

NsdHSO commented Nov 20, 2024

If anyone has encountered this problem before and could help me, I would be grateful.

esp8266 will never be supported by the esp-idf-* crates. Initially, we implemented "some" support, in the hope/anticipation that ESP-IDF will be ported to esp8266, but this would never happen.

We need to remove any reference to esp8266 from esp-idf-sys.

Please can you explain to me why?

@ivmarkov
Copy link
Collaborator

If anyone has encountered this problem before and could help me, I would be grateful.

esp8266 will never be supported by the esp-idf-* crates. Initially, we implemented "some" support, in the hope/anticipation that ESP-IDF will be ported to esp8266, but this would never happen.
We need to remove any reference to esp8266 from esp-idf-sys.

Please can you explain to me why?

Because it does not work, will never work, and there is nobody who is willing to support esp8266. It is really time to move on to a newer chip.

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

No branches or pull requests

2 participants