Search found 70 matches

by scargill
Wed Jul 01, 2015 5:04 pm
Forum: General Q&A
Topic: Reading FLASH arrays?
Replies: 4
Views: 3843

Re: Reading FLASH arrays?

Good idea ... but I think maybe you have to force the 4-byte alignment or something? It crashes the processor every time you try to access it.. static const uint32_t petes[] ICACHE_RODATA_ATTR = { 55,45,66,77,88,12,76,23,45,67,34,65,25,74,234,67,3,643,646, 55,45,66,77,88,12,76,23,45,67,34,65,25,74,2...
by scargill
Wed Jul 01, 2015 8:15 am
Forum: General Q&A
Topic: Reading FLASH arrays?
Replies: 4
Views: 3843

Reading FLASH arrays?

Does anyone have a simple example of reading data from a FLASH array - that is without having to hard code locations etc.... As a pseudo example (which clearly is fictional) uint8_t fred[10]={ 1,2,3,4,5,6,7,8,9,10 } a=fred[6]; but any array I've seen - event with CONST written all over it, still end...
by scargill
Thu Jun 25, 2015 7:19 pm
Forum: ESP8266 SDK
Topic: esp8266 math function
Replies: 2
Views: 3976

Re: esp8266 math function

Can't read this - can we use functions like log(), sin() etc? I tried including math.h but no joy.
by scargill
Wed Jun 24, 2015 3:31 pm
Forum: ESP8266 SDK
Topic: PWM and SNTP issues
Replies: 8
Views: 5050

Re: PWM and SNTP issues

I've adjusted my bootloader to ensure 80Mhz SPI speed. I've adjusted the period to 1000us. I accept current limit of 90% or thereabouts duty cycle. HOWEVER... given code that runs a callback to update a serial LED... once you start PWM, even then setting PWM to 0,0,0 something has CHANGED which stop...
by scargill
Wed Jun 24, 2015 5:11 am
Forum: ESP8266 SDK
Topic: SDK 1.1.1 linker reference missing
Replies: 12
Views: 7916

Re: SDK 1.1.1 linker reference missing

Yup solved that one thanks. Other issues with new PWM affecting other code such as serial LED even after setting values for duty to zero....
by scargill
Wed Jun 24, 2015 2:46 am
Forum: ESP8266 SDK
Topic: PWM and SNTP issues
Replies: 8
Views: 5050

Re: PWM and SNTP issues

And for today's HIGHLY embarrassing climb-down...

FORGET the GPIO16 issue - nothing to do with the ESP-12s AT ALL.... my friendly PCB designer thoughtfully shorted GPIO16 to RESET to aid with SLEEP !!!

I'll just go away and crawl into a corner...
by scargill
Wed Jun 24, 2015 2:18 am
Forum: ESP8266 SDK
Topic: PWM and SNTP issues
Replies: 8
Views: 5050

Re: PWM and SNTP issues

I note you say to use 80Mhz SPI clock speed. It appears from the startup info that I'm using 40Mhz SPI speed. No idea how to change it.. ??? 1. The new PWM module. (a) It does not appear possible to achieve 100% pulse width (100% on). I cannot get past around 90% - I've tried frequencies of 1024 and...
by scargill
Tue Jun 23, 2015 8:01 pm
Forum: ESP8266 SDK
Topic: PWM and SNTP issues
Replies: 8
Views: 5050

Re: PWM and SNTP issues

Hi 1. Is there any chance this 90% will improve? Could be worth a bodge to set to 100% manually at full duty. 2. 80Mhz is default. 3. Understand. 4. No. Setting to 0,0,0 is definitely NOT the same has having never used the PWM. I have routines to run serial LEDs - they disable interrupts briefly whe...
by scargill
Tue Jun 23, 2015 5:59 pm
Forum: ESP8266 SDK
Topic: GPIO16 WOES
Replies: 10
Views: 19201

Re: GPIO16 WOES

Hi Well, I just wanted to be able to use GPIO16 as an additional output - I have a flashing indicator on the board which indicates "all is well" and it seems a waste of an otherwise useful output. However, things are as they are and it does seem that at least some ESP-12 and ESP-12e have G...
by scargill
Tue Jun 23, 2015 5:56 pm
Forum: ESP8266 SDK
Topic: PWM and SNTP issues
Replies: 8
Views: 5050

Re: PWM and SNTP issues

Nice in theory - but if I have a background (callback) job updating a serial LED display - and turn on the PWM - then the serial display output all goes to hell... If I then send 3 zeros to the PWM - the serial display stays messed up - suggesting that something is still happening with the PWM.

Go to advanced search