- Fri Apr 17, 2015 1:19 pm
#14850
I installed this yesterday. It compiles, flashes great.
blinky works. ( using loop: GPIO_OUTPUT_SET(LED_GPIO, state); os_delay_us(DELAY); )
blink2 does not. (using
os_timer_setfn(&blink_timer, (os_timer_func_t *)blink_cb, (void *)0);
os_timer_arm(&blink_timer, DELAY, 1); )
What it does is, lights up the gpio01 led immediately, but never blinks. It's like the timer is not executing the callback or something.
Any Ideas??
This is on a esp-12 module.
Compile output follows. Does this look "OK"?
Code: Select all13:09:04 **** Build of configuration Default for project blinky2 ****
mingw32-make.exe -f C:/Espressif/examples/blinky2/Makefile all
CC user/user_main.c
AR build/app_app.a
LD build/app.out
------------------------------------------------------------------------------
Section info:
build/app.out: file format elf32-xtensa-le
Sections:
Idx Name Size VMA LMA File off Algn
0 .data 000009f8 3ffe8000 3ffe8000 000000e0 2**4
CONTENTS, ALLOC, LOAD, DATA
1 .rodata 00000438 3ffe8a00 3ffe8a00 00000ae0 2**4
CONTENTS, ALLOC, LOAD, READONLY, DATA
2 .bss 00008a40 3ffe8e38 3ffe8e38 00000f18 2**4
ALLOC
3 .text 0000661e 40100000 40100000 00000f18 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
4 .irom0.text 000258c8 40240000 40240000 00007540 2**4
CONTENTS, ALLOC, LOAD, READONLY, CODE
------------------------------------------------------------------------------
Section info:
Section| Description| Start (hex)| End (hex)|Used space
------------------------------------------------------------------------------
data| Initialized Data (RAM)| 3FFE8000| 3FFE89F8| 2552
rodata| ReadOnly Data (RAM)| 3FFE8A00| 3FFE8E38| 1080
bss| Uninitialized Data (RAM)| 3FFE8E38| 3FFF1878| 35392
text| Cached Code (IRAM)| 40100000| 4010661E| 26142
irom0_text| Uncached Code (SPI)| 40240000| 402658C8| 153800
Total Used RAM : 39024
Free RAM : 42896
Free IRam : 6644
------------------------------------------------------------------------------
Run objcopy, please wait...
objcopy done
Run gen_appbin.exe
No boot needed.
Generate eagle.flash.bin and eagle.irom0text.bin successully in folder firmware.
eagle.flash.bin-------->0x00000
eagle.irom0text.bin---->0x40000
Done
13:09:07 Build Finished (took 2s.493ms)
Thanks!