Hi Ben
I can compile an existing ESP32 Program and the LED WS2811 is working (with ESP-IdF V5.12 )
If I copy the .fcfx file in a new folder and force for a new build, the WS2811 is not working anymore.
regards
Stefan
ESP32 ESP-IdF V5.12 Led WS2811 not working after new build
-
- Valued Contributor
- Posts: 758
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 149 times
- Been thanked: 171 times
-
- Matrix Staff
- Posts: 1253
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 167 times
- Been thanked: 277 times
Re: ESP32 ESP-IdF V5.12 Led WS2811 not working after new build
Can you please share the generated C code files for both working and non-working versions. That might help us discover the source of the problem.
-
- Valued Contributor
- Posts: 758
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 149 times
- Been thanked: 171 times
Re: ESP32 ESP-IdF V5.12 Led WS2811 not working after new build
Hi Steve
Here the both c-code.
I have already made a test with only the WS2811 Led. The led worked.
Then I added additional components step by step. This also worked until I ended up with the sd-card(esp32) as the last one. There was a fail with init sd-cards.
Then I created a new program with only the WS2811 Led and sd-cards(esp32). That also worked.
But where the problem is I have no idea.
regards
Stefan
Here the both c-code.
I have already made a test with only the WS2811 Led. The led worked.
Then I added additional components step by step. This also worked until I ended up with the sd-card(esp32) as the last one. There was a fail with init sd-cards.
Then I created a new program with only the WS2811 Led and sd-cards(esp32). That also worked.
But where the problem is I have no idea.
regards
Stefan
- Attachments
-
- post_nofolder.zip
- (150.52 KiB) Downloaded 70 times
-
- Matrix Staff
- Posts: 1253
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 167 times
- Been thanked: 277 times
Re: ESP32 ESP-IdF V5.12 Led WS2811 not working after new build
The only difference I can see with the code is the L24 project has no I2C channel set (I think this is for the LSM9DS1 device). If I set this to "Channel 2" and recompile, then I get the same output code as the SPF project. Perhaps that is the error?
-
- Valued Contributor
- Posts: 758
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 149 times
- Been thanked: 171 times
Re: ESP32 ESP-IdF V5.12 Led WS2811 not working after new build
Hi Steve
No this not comfortable always switch to channel 2 but it's not the problem. I have set this again and again.
Maybe it's a little strange..
The board is :
https://www.sparkfun.com/products/20594
and there is a second strange problem..
If i connect the board to my computer, sometimes it's give a startup problem and in the Device Manager add a Microsoft Serial Ball point.
Sometime it's working, sometime i have to press reset. If i start the board on a USB-C PSU it's always fine.
Do you know of any other ESP32 boards with this 4bit connection to the sd-card?
just if connect the board....
No this not comfortable always switch to channel 2 but it's not the problem. I have set this again and again.
Maybe it's a little strange..
The board is :
https://www.sparkfun.com/products/20594
and there is a second strange problem..
If i connect the board to my computer, sometimes it's give a startup problem and in the Device Manager add a Microsoft Serial Ball point.
Sometime it's working, sometime i have to press reset. If i start the board on a USB-C PSU it's always fine.
Do you know of any other ESP32 boards with this 4bit connection to the sd-card?
just if connect the board....
-
- Matrix Staff
- Posts: 1253
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 167 times
- Been thanked: 277 times
Re: ESP32 ESP-IdF V5.12 Led WS2811 not working after new build
Sorry - I don't know about other boards.
-
- Valued Contributor
- Posts: 758
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 149 times
- Been thanked: 171 times
Re: ESP32 ESP-IdF V5.12 Led WS2811 not working after new build
Hi Steve
ok I will stay with this board. I can add a reset circuit. I also need to add a record and stop button (hardware). The fact that Sparkfun releases the eagle files makes it easy to draw a additional board. I will continue with the sd-cards(esp32) and ws2811 Led testing.
Nice to have the eagle files:
ok I will stay with this board. I can add a reset circuit. I also need to add a record and stop button (hardware). The fact that Sparkfun releases the eagle files makes it easy to draw a additional board. I will continue with the sd-cards(esp32) and ws2811 Led testing.
Nice to have the eagle files:
-
- Valued Contributor
- Posts: 758
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 149 times
- Been thanked: 171 times
Re: ESP32 ESP-IdF V5.12 Led WS2811 not working after new build
Hi Steve
Good news...
With a new driver for the USB Chip, the Board started always on WIN10 and WIN11 computer
Download from here:
https://wch-ic.com/downloads/CH341SER_EXE.html
The WS2811 Led should actually work now.
A small thing is that you can select one led but the next time you start FC there are two led's again. But it still works.
regards
Stefan
Not a problem..
Good news...
With a new driver for the USB Chip, the Board started always on WIN10 and WIN11 computer
Download from here:
https://wch-ic.com/downloads/CH341SER_EXE.html
The WS2811 Led should actually work now.
A small thing is that you can select one led but the next time you start FC there are two led's again. But it still works.
regards
Stefan
Not a problem..