最新RTOS版SDK overlap问题
-
- Posts: 25
- Joined: Thu Oct 08, 2015 4:00 pm
最新RTOS版SDK overlap问题
Postby zhangjinliang » Wed Jan 20, 2016 4:10 pm
你好:
我把代码从旧版本的SDK切换到最新的RTOS版本的SDK上。初始化HSPI的overlap后(如下),
SET_PERI_REG_MASK(0x3ff00028, BIT(7));
//set higher priority for spi than hspi
SET_PERI_REG_MASK(SPI_EXT3(SPI), 0x1);
SET_PERI_REG_MASK(SPI_EXT3(HSPI), 0x3);
SET_PERI_REG_MASK(SPI_USER(HSPI), BIT(5));
做了以上初始化后,用spi_flash_read这个接口去访问SPI外挂的FLASH,无法返回,卡住一段时间后异常复位,异常信息时乱码。
如果没有以上初始化overlap的过程,访问时OK的。同时旧版本也是OK的。
麻烦帮忙定位一下问题所在?
我把代码从旧版本的SDK切换到最新的RTOS版本的SDK上。初始化HSPI的overlap后(如下),
SET_PERI_REG_MASK(0x3ff00028, BIT(7));
//set higher priority for spi than hspi
SET_PERI_REG_MASK(SPI_EXT3(SPI), 0x1);
SET_PERI_REG_MASK(SPI_EXT3(HSPI), 0x3);
SET_PERI_REG_MASK(SPI_USER(HSPI), BIT(5));
做了以上初始化后,用spi_flash_read这个接口去访问SPI外挂的FLASH,无法返回,卡住一段时间后异常复位,异常信息时乱码。
如果没有以上初始化overlap的过程,访问时OK的。同时旧版本也是OK的。
麻烦帮忙定位一下问题所在?
-
- Posts: 25
- Joined: Thu Oct 08, 2015 4:00 pm
Re: 最新RTOS版SDK overlap问题
Postby zhangjinliang » Sat Jan 23, 2016 8:28 pm
请乐鑫的FAE帮忙验证一下, 最新的RTOS sdk是否有上述问题!!多谢
-
- Posts: 45
- Joined: Tue Jan 19, 2016 2:39 pm
Re: 最新RTOS版SDK overlap问题
Postby tobewinner » Thu Mar 31, 2016 6:03 pm
我使用的1.3.1 2016-11-16的RTOS SDK有同样的问题,是否RTOS SDK不支持overlap?
Re: 最新RTOS版SDK overlap问题
Postby ESP_Faye » Fri Apr 01, 2016 10:40 am
您好,
麻烦基于 ESP8266_RTOS_SDK_V1.4.0 更新附件 lib。
如果您的问题仍未解决,请再告知。
感谢您对 ESP8266 的关注!
麻烦基于 ESP8266_RTOS_SDK_V1.4.0 更新附件 lib。
如果您的问题仍未解决,请再告知。
感谢您对 ESP8266 的关注!
- Attachments
-
- libmain_for_ESP8266_RTOS_SDK_V1.4.0.zip
- (54.4 KiB) Downloaded 777 times
Re: 最新RTOS版SDK overlap问题
Postby Han » Mon Oct 31, 2016 5:56 am
Hello,
I may be experiencing this very same problem with the NONOS SDK V1.5.3 (PlatformIO/Arduino).
Whenever the statement is executed, subsequent calls to SPIFFS (e.g. file.open) fail and cause an exception.
Was the solution to this problem ever added to the NONOS SDKs?
What exactly does the above statement do? I understand that the SPI port priorities are set, but the exact definition of the the lower two bits of the SPI_EXT3 register is unclear to me.
Han
I may be experiencing this very same problem with the NONOS SDK V1.5.3 (PlatformIO/Arduino).
Whenever the statement
Code: Select all
SET_PERI_REG_MASK(SPI_EXT3(SPI), 0x1)
Was the solution to this problem ever added to the NONOS SDKs?
What exactly does the above statement do? I understand that the SPI port priorities are set, but the exact definition of the the lower two bits of the SPI_EXT3 register is unclear to me.
Han
Who is online
Users browsing this forum: No registered users and 322 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.