ESP8266 Developer Zone The Official ESP8266 Forum 2015-10-26T18:04:12+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=1253 2015-10-26T18:04:12+08:00 2015-10-26T18:04:12+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1253&p=4279#p4279 <![CDATA[Re: uart_div_modify failed!]]> Thanks for your information. unfortunately i did not get reference code from Espressif. i reference the richard RBOOT project.
write the source code , Makefile, tool generate the headfile...
{http://richard.burtons.org/}


Best regards!
ZhangWenjin

Statistics: Posted by wjzhang — Mon Oct 26, 2015 6:04 pm


]]>
2015-10-26T15:57:19+08:00 2015-10-26T15:57:19+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1253&p=4273#p4273 <![CDATA[Re: uart_div_modify failed!]]>
wjzhang wrote:
Hi I'm found a interest thing. the PC baudrate set to 230400. the ESP8266 baudrate set to 354461. the ESP8266 will receive right datas.
230400/354461 = 0.65. it seem the CPU freq in call_user_start() is 80Mhz * 0.65 = 52Mhz.
Could some tell me what's going on? :?


Hello,

How do you write the boot loader, does Espressif send you some reference code ?

The problem is , before the digital part has been initialized , the system clock is set to double of the crystal frequency.

That's why if you are using a 40M crystal the uart output is at baud 115200, and if you are using a 26M crystal the uart output is at baud 74880 during booting up. 115200/74880 = 40M / 26M = 80M / 52M.

Statistics: Posted by costaud — Mon Oct 26, 2015 3:57 pm


]]>
2015-10-22T12:16:02+08:00 2015-10-22T12:16:02+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1253&p=4229#p4229 <![CDATA[Re: uart_div_modify failed!]]> 230400/354461 = 0.65. it seem the CPU freq in call_user_start() is 80Mhz * 0.65 = 52Mhz.
Could some tell me what's going on? :?

Statistics: Posted by wjzhang — Thu Oct 22, 2015 12:16 pm


]]>
2015-10-21T09:07:32+08:00 2015-10-21T09:07:32+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1253&p=4194#p4194 <![CDATA[Re: uart_div_modify failed!]]>
Thanks for your help!

Statistics: Posted by wjzhang — Wed Oct 21, 2015 9:07 am


]]>
2015-10-20T18:24:25+08:00 2015-10-20T18:24:25+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1253&p=4184#p4184 <![CDATA[uart_div_modify failed!]]> difference between these 2 UART driver:
1) boot uart driver no interrupt support
2) boot uart driver all function run in RAM. no ICACHE_FLASH_ATTR.

baudrate at 230400: send are 0xC0, 0x16, 0x06, 0x40, 0x00, 0x00, 0xxx, 0xxx, 0xC0, receive are 0x90, 0x8a, 0x40, 0xd9, 0xf0

could someone tell me why the uart_div_modify() failed?

Statistics: Posted by wjzhang — Tue Oct 20, 2015 6:24 pm


]]>