Search found 300 matches

by Vader_Mester
Wed Mar 28, 2018 6:33 pm
Forum: General Discussion
Topic: SK6812 RGBW LEDs flickering - RMT Driver
Replies: 10
Views: 15592

Re: SK6812 RGBW LEDs flickering - RMT Driver

Maaaaaan! Your code works perfectly! Check out this video I made of it (sorry for the terrible quality upload). https://www.youtube.com/watch?v=0v79on9xgug It goes from RGBW first and lights up each component individually. I added a 500ms delay between the outputing functions. (I had to put that tra...
by Vader_Mester
Wed Mar 28, 2018 1:27 pm
Forum: General Discussion
Topic: SK6812 RGBW LEDs flickering - RMT Driver
Replies: 10
Views: 15592

Re: SK6812 RGBW LEDs flickering - RMT Driver

Now it works. :D It was a defective LED :roll: RGB is working great but the white LED was broken. Now with a new LED everything works... @Vader_Mester: The color order is GRBW. Well, in my datasheet this is not the color order... but manufacturers are you know... make stuff differently I guess :D I...
by Vader_Mester
Wed Mar 28, 2018 10:32 am
Forum: General Discussion
Topic: Function for reading cycle count of CPU clock
Replies: 8
Views: 16985

Re: Function for reading cycle count of CPU clock

Upon checking the Xtensa documents, I found the CCOUNT register, and it says 32bit. I assume when it reaches the value 0xFFFFFFFF, it will wrap to 0x00000000. I also don't know if anything is writing/resetting this register during runtime. Perhaps someone can enlight me about this? Thanks Vader[BEN]
by Vader_Mester
Wed Mar 28, 2018 6:35 am
Forum: General Discussion
Topic: Function for reading cycle count of CPU clock
Replies: 8
Views: 16985

Function for reading cycle count of CPU clock

Hey Guys,

Is there an function in ESP-IDF to return the number of cycles?

I came across a function somewhere named "_getcyclescount()", but I'm not sure where, and I'm not really sure which header file should I look for.

Thanks in advance
Vader[BEN]
by Vader_Mester
Fri Mar 23, 2018 2:25 pm
Forum: Showcase
Topic: External flash component
Replies: 26
Views: 38049

Re: External flash component

Not yet, but I try. My problem is that my flash is actually a Winbond chip, but I check it further, when I find some time.

If you have updated anything in the code, please post it so I can see.

Vader[BEN]
by Vader_Mester
Thu Mar 22, 2018 2:34 pm
Forum: General Discussion
Topic: Stack&Heap vs IRAM&DRAM
Replies: 6
Views: 14358

Re: Stack&Heap vs IRAM&DRAM

Hi Vader_Mester, Thanks for your "IRAM_ATTR" and its declaration! I've greped the eps source, ESP-IDF did have ten thausand function add this macro. Since the xtensa core is a 32bit core, ist that means all defined functions I used can add this macro (If there is always IRAM available) to accelerat...
by Vader_Mester
Thu Mar 22, 2018 1:30 pm
Forum: General Discussion
Topic: SK6812 RGBW LEDs flickering - RMT Driver
Replies: 10
Views: 15592

Re: SK6812 RGBW LEDs flickering - RMT Driver

Strange... I wish I could test this right now... unfortunatelly I can't yet, but I'll do it as soon as I can. By the way is your color order correct? It should be RGBW, yours is a bit different. Also, try to use a 2nd LEDs, and see if they work in a chain with your setup. See if that works better. V...
by Vader_Mester
Thu Mar 22, 2018 12:06 pm
Forum: General Discussion
Topic: Stack&Heap vs IRAM&DRAM
Replies: 6
Views: 14358

Re: Stack&Heap vs IRAM&DRAM

The main difference between IRAM and DRAM, is that the ESP can run programs from IRAM, and that IRAM is only 32bit accessible, whereas DRAM is byte-addressable. Also, when you use the IRAM_ATTR attribute for functions (that are frequently used), the ESP will put these functions into the IRAM, and ex...
by Vader_Mester
Wed Mar 21, 2018 7:42 am
Forum: General Discussion
Topic: Is there any app to upgrade the code by using OTA?
Replies: 9
Views: 11497

Re: Is there any app to upgrade the code by using OTA?

You can modify demo code a bit and write some client app on android or iPhone that can let user to provide server address and port, path and file name that will be used to OTA update. This is my OTA example which is based on OTA demo: https://github.com/chegewara/esp32-ota-with-ble-setup and this i...