RTD memory occupation

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

RTD memory occupation

跳至解决方案
1,330 次查看
francescovico
Contributor III

Hello.
I'm using RTD version 5.0.0.

Watching RAM occupation I notice that RTD drivers take a lot of RAM like you can see in attached file.

A reason could be that in this files there is a define that define number of cores 4, also using 1 core:

#define NUMBER_OF_CORES (uint8)(4U)

 

Why this define it's defined in RTD files (example: SchM_Adc.h)  ad not in generated files (example: Adc_Sar_Ip_Cfg.h)  ?

Regards, Francesco.

0 项奖励
回复
1 解答
1,298 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @francescovico,

The SchM files provided with RTD are stubs, intention is to use them as a reference and can be modified/replaced depending on the application needs.

It is indicating the maximum core number for the maximal derivative from the family as the memmap files are generic stubs. The actual core number used at runtime is based on the value provided by Osif, so it will use the correct core in execution.

 
 
number_cores.png

The stubs implementation may be modified by user to meet the actual needs. You can set NUMBER_OF_CORES to 1 to free some SRAM.

Best regards,
Julián

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,299 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @francescovico,

The SchM files provided with RTD are stubs, intention is to use them as a reference and can be modified/replaced depending on the application needs.

It is indicating the maximum core number for the maximal derivative from the family as the memmap files are generic stubs. The actual core number used at runtime is based on the value provided by Osif, so it will use the correct core in execution.

 
 
number_cores.png

The stubs implementation may be modified by user to meet the actual needs. You can set NUMBER_OF_CORES to 1 to free some SRAM.

Best regards,
Julián

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2148479%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERTD%20%E5%86%85%E5%AD%98%E5%8D%A0%E7%94%A8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2148479%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%3CBR%20%2F%3E%E6%88%91%E4%BD%BF%E7%94%A8%E7%9A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F%E5%BE%85%EF%BC%8C%E5%BC%97%E6%9C%97%E5%88%87%E6%96%AF%E7%A7%91%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2148557%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20RTD%20memory%20occupation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2148557%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F153065%22%20target%3D%22_blank%22%3E%40francescovico%3C%2FA%3E%E3%80%81%3C%2FP%3E%0A%3CDIV%3E%0A%3CP%3E%3CSPAN%3ERTD%20%E6%8F%90%E4%BE%9B%E7%9A%84%20SchM%20%E6%96%87%E4%BB%B6%E6%98%AF%E7%9F%AD%E6%88%AA%E7%BA%BF%EF%BC%8C%E7%9B%AE%E7%9A%84%E6%98%AF%E5%B0%86%E5%AE%83%E4%BB%AC%E7%94%A8%E4%BD%9C%E5%8F%82%E8%80%83%EF%BC%8C%E5%8F%AF%E4%BB%A5%E6%A0%B9%E6%8D%AE%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E9%9C%80%E6%B1%82%E8%BF%9B%E8%A1%8C%E4%BF%AE%E6%94%B9%2F%E6%9B%BF%E6%8D%A2%E3%80%82%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%E5%AE%83%E8%A1%A8%E7%A4%BA%E8%AF%A5%E7%B3%BB%E5%88%97%3CSTRONG%3E%E7%9A%84%E6%9C%80%E5%A4%A7%E5%AF%BC%E6%95%B0%E7%9A%84%E6%9C%80%E5%A4%A7%3C%2FSTRONG%3E%E6%A0%B8%E5%BF%83%E6%95%B0%EF%BC%8C%E5%9B%A0%E4%B8%BA%20memmap%20%E6%96%87%E4%BB%B6%E6%98%AF%E9%80%9A%E7%94%A8%E7%9F%AD%E6%88%AA%E7%BA%BF%E3%80%82%E8%BF%90%E8%A1%8C%E6%97%B6%E4%BD%BF%E7%94%A8%E7%9A%84%E5%AE%9E%E9%99%85%E5%86%85%E6%A0%B8%E6%95%B0%E5%9F%BA%E4%BA%8E%20Osif%20%E6%8F%90%E4%BE%9B%E7%9A%84%E5%80%BC%EF%BC%8C%E5%9B%A0%E6%AD%A4%E6%89%A7%E8%A1%8C%E6%97%B6%E4%BC%9A%E4%BD%BF%E7%94%A8%E6%AD%A3%E7%A1%AE%E7%9A%84%E5%86%85%E6%A0%B8%E3%80%82%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorJulin_AragnM_0%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%20id%3D%22tinyMceEditorJulin_AragnM_1%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22number_cores.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22number_cores.png%22%20style%3D%22width%3A%20389px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F351428iBD2088CE553D261A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22number_cores.png%22%20alt%3D%22number_cores.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%0A%3CP%3E%E7%94%A8%E6%88%B7%E5%8F%AF%E4%BB%A5%E4%BF%AE%E6%94%B9%E7%9F%AD%E6%88%AA%E7%BA%BF%E5%AE%9E%E7%8E%B0%E4%BB%A5%E6%BB%A1%E8%B6%B3%E5%AE%9E%E9%99%85%E9%9C%80%E6%B1%82%E3%80%82%E6%82%A8%3CSPAN%3E%20%E5%8F%AF%E4%BB%A5%E5%B0%86%20%3C%2FSPAN%3E%3CSTRONG%20style%3D%22font-family%3A%20inherit%3B%22%3ENUMBER_OF_CORES%3C%2FSTRONG%3E%3CSPAN%3E%20%E8%AE%BE%E7%BD%AE%20%3C%2FSPAN%3E%20%E4%B8%BA%201%EF%BC%8C%E4%BB%A5%E9%87%8A%E6%94%BE%E4%B8%80%E4%BA%9B%20SRAM%E3%80%82%3C%2FP%3E%0A%3CP%3E%E8%87%B4%E4%BB%A5%E6%9C%80%E8%AF%9A%E6%8C%9A%E7%9A%84%E9%97%AE%E5%80%99%EF%BC%8C%3CBR%20%2F%3EJuli%C3%A1n%3C%2FP%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E