ESP8266 Developer Zone The Official ESP8266 Forum 2016-12-11T13:13:07+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=2987 2016-12-11T13:13:07+08:00 2016-12-11T13:13:07+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2987&p=10865#p10865 <![CDATA[Re: PWM can not get supported as well in NON-OS SDK2.0.0 AT version]]> You are probably modifying the wrong LD file. The LD file used for linking depends on your flash config. If in doubt, modify all LD files.

Statistics: Posted by Guest — Sun Dec 11, 2016 1:13 pm


]]>
2016-12-02T01:13:58+08:00 2016-12-02T01:13:58+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2987&p=10751#p10751 <![CDATA[Re: PWM can not get supported as well in NON-OS SDK2.0.0 AT version]]>
But make no difference, still gives " section '.text' will not fit in region iram1_0_seg".

Yiming Li

Statistics: Posted by Guest — Fri Dec 02, 2016 1:13 am


]]>
2016-11-12T20:22:43+08:00 2016-11-12T20:22:43+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2987&p=10516#p10516 <![CDATA[Re: PWM can not get supported as well in NON-OS SDK2.0.0 AT version]]>
In the ld folder of nonOS SDK v.2.0.0, open all ld files and find this line:
*libmbedtls.a:(.literal .text .literal.* .text.*)

Add this line below it:
*libpwm.a:(.literal .text .literal.* .text.*)

This will specify that the pwm library should be placed in the iCache. Let me know if this causes crashes (internal SDK code is not known to me). If this fails, I will request a firmware developer to assist you.

Statistics: Posted by Guest — Sat Nov 12, 2016 8:22 pm


]]>
2016-11-01T23:17:35+08:00 2016-11-01T23:17:35+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2987&p=10371#p10371 <![CDATA[PWM can not get supported as well in NON-OS SDK2.0.0 AT version]]>
In the latest release of SDK 2.0.0 Non-OS, it is hard to add into PWM features by "-lpwm" during link with an error "section .text will not fit into region iram1_0 seg". However, this is not present in previous version such as SDK 1.4.0.

Reproducing Steps:

1. unzip the original SDK package and goto SDK subdirectory "example/AT".
2. Build the original release. Everything will be OK and bin files get generated OK.

3. Add "-lpwm" into the makefile link flags (so as to link the pwm libray). Meanwhle, add a call of a pwm_init() into the user_init() of user_main.c (so as to the pwm libray will be linked really). Keep untouched anything else.

4. Then build. And you will encounter an error " "section .text will not fit into region iram1_0 seg" in the last step of linking.

Please fix this issue if any or optimise the iram usage for AT version, or give some suggstions. Thanks!

Related issue: viewtopic.php?f=7&t=2794

Statistics: Posted by Guest — Tue Nov 01, 2016 11:17 pm


]]>