1、我用RT1052 SDK 2.3.1新建了一个工程能正常运行,在工程文件基础之上添加了Nano版RT-Thread操作系统,无论是使用SDRAM还是其他存储都能正常运行,如图1、图2、图3:
2、我使用RT1052 SDK 2.6.0新建工程能正常运行,但是在此基础之上添加Nano版RT-Thread操作系统时,使用SDRAM则编译不通过,提示错误信息如图6:.\Objects\RT1052.axf: Error: L6218E: Undefined symbol Image$$RW_m_config_text$$Base (referred from fsl_flexspi_nor_boot.o).相关的宏定义,(XIP_BOOT_HEADER_ENABLE = 1,XIP_BOOT_HEADER_DCD_ENABLE=1)我也定义过。用SDK2.6.0中的 led_output工程基础上添加RT-Thread 操作系统则如图5程序只打印了 sdram heap, begin: 0x80000000, end: 0x81D00000
3、目前RT1052 SDK2.7.0版本只支持ARM compiler version 6不支持ARM compiler version 5,但是RT-Thread中的文件context_rvds.S却只能支持ARM compiler version 5。因此我选择了较早一点的版本RT1052 SDK2.6.0。
图1 RT-Thread 使用SDRAM配置
图2 SDK2.3.1使用SDRAM
图3 SDK2.3.1不使用SDRAM
图4 SDK2.6.0不使用SDRAM
图5 SDK 2.6.0 历程库LED输出工程使用SDRAM
图5 SDK2.6.0自建工程报错
Hi CQZSB Zhan,
楼主你好!
看到你帖子已经标志为解决了, 不知道你是否还有问题?
RT thread相关文件可能还没有更新到最新。
Kerry
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-----------------------------------------------------------------------------
目前还没解决添加RT-Thread后 使用SDRAM的问题,:.\Objects\RT1052.axf: Error: L6218E: Undefined symbol Image$$RW_m_config_text$$Base (referred from fsl_flexspi_nor_boot.o).我看相关的宏定义都定义了 但是不知道为什么还会报错!
Hi CQZSB Zhan,
单独使用SDRAM是没有问题的对吧?
我看你帖子里面贴的是野火的,因为官方SDK 目前没有退出RT thread这块的代码,所以建议你RT thread的问题还是野火那边问问看,毕竟他们那边提供了代码。或者你也可以去RT Thread那边问问看他们对于ARM compiler version 6的支持情况。 感谢你的谅解。
Kerry
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if yo
好的!我只是试用了野火的板子,自己用SDK包里面的文件搭建的工程,分散文件配置用的野火的配置文件,后面我自己找找问题吧!
好的,如果遇到任何官方代码的问题,欢迎继续交流,主要RT thread不在SDK的例程里面,所以我也没办法帮你去报RT thread的问题,当然如果你用freertos,官方直接支持,如果发现问题,可以直接和我们交流。
Kerry
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-----------------------------------------------------------------------------
好的,谢谢了!
你不如不回答的好!