Encountered a problem on the RTCS and MQX.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Encountered a problem on the RTCS and MQX.

970件の閲覧回数
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 返答(返信)

766件の閲覧回数
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

766件の閲覧回数
jetli
Contributor II

Hi David,

Thanks  alot , Your reply to my problem.

0 件の賞賛
返信