Encountered a problem on the RTCS and MQX.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Encountered a problem on the RTCS and MQX.

1,283 次查看
jetli
Contributor II

In my project, I encountered a problem:

In Kinetis K66,my board with a 16MB SDRAM,I need change ram pool to SDRAM, so I use this code at the first task:

_mem_pool_id test_id , old_id ;
test_id = _mem_create_pool((void *)0x08000000,(_mem_size)0x00A00000);  //10MB
old_id = _mem_set_default_pool(test_id);

so , I can use function "malloc" in my project allocate memory at address 0x08000000;

but, I encountered a problem use this with RTCS , when i set SDRAM address at "0x70000000", "0x80000000","0x88000000", RTCS working properly , but when I  set SDRAM address at "0x08000000", RTCS will not working properly,but the rest of the system work all normal。

ps:MQX and RTCS version is 4.2.0  

2 回复数

1,079 次查看
DavidS
NXP Employee
NXP Employee

Hi jet,

It might actually be the memory map accesses that are (or are not) allowed.

Look at the Reference Manual Table 5-1 "System memory map" on Chapter 5.

The 0x0800_0000 - 0x0FFF_FFFF allows only core access.

The other addresses that work for you allow "All masters".

Regards,

David

1,079 次查看
jetli
Contributor II

Hi David,

Thanks  alot , Your reply to my problem.

0 项奖励
回复