about latest RTOS SDK

valmik thakar
Posts: 13
Joined: Thu Jun 30, 2016 7:53 pm

about latest RTOS SDK

Postby valmik thakar » Fri Jul 22, 2016 9:16 pm

hi,
i want to port latest RTOS SDK in my project.
so, please guide me how can i port it.
from git hub i got SDK but when i compiled that file i got error like,
e:/valmik/study/espwebframework-master/sdk/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106- elf/bin/ld.exe: build/app.out section `.irom1.text' will not fit in region `iram1_0_seg'
collect2.exe: error: ld returned 1 exit status.
i got this error.
please help me to port latest SDK.
and please explain me why this error occurs.

regards,
valmik thakar

pratik

Re: about latest RTOS SDK

Postby pratik » Sat Jul 23, 2016 5:04 pm

Hello,

Are you storing any large constant arrays such as HTML files? It seems like something is being put into RAM instead of the ROM.

valmik thakar
Posts: 13
Joined: Thu Jun 30, 2016 7:53 pm

Re: about latest RTOS SDK

Postby valmik thakar » Sat Jul 23, 2016 5:54 pm

thanks pratik for your support.
but i found that code which is being compiled has all functions in flash memory using
FUNC_FLASHMEM -> __attribute__((section(".irom0.text"))),
MTD_FLASHMEM ->__attribute__((section(".irom1.text")))
TMTD_FLASHMEM -> __attribute__((section(".irom4.text")))
STC_FLASHMEM ->__attribute__((section(".irom3.text")))

one thing i found that precompile binary is more in latest SDK then previous SDK i use.

valmik thakar
Posts: 13
Joined: Thu Jun 30, 2016 7:53 pm

Re: about latest RTOS SDK

Postby valmik thakar » Tue Jul 26, 2016 7:29 pm

hi,
i port SDK 1.4.0 in my code and i compiled and i got error as src/uart.cpp:238:55: error: 'uart_div_modify' was not declared in this scope.

definition of uart_div_modify was not present.
as per search, i found that definition is present in libmain.a. i include libmain.a but even i got error.
can i declare function in uart.h?
is any issue occurred because of this changes.

valmik thakar
Posts: 13
Joined: Thu Jun 30, 2016 7:53 pm

Re: about latest RTOS SDK

Postby valmik thakar » Wed Jul 27, 2016 8:27 pm

hi,

i use uart.c from example code but UART not work correctly.
please anyone help me how can i up UART and make console.

and i made code in c++ , so i changed extension of uart.c to uart.cpp , i think no any issue because of this .

please anyone help me for how to drive GPIO and UART.

regards,
valmik thakar

Who is online

Users browsing this forum: No registered users and 3 guests