RTD memory occupation

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RTD memory occupation

Jump to solution
859 Views
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 Kudos
Reply
1 Solution
827 Views
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

View solution in original post

0 Kudos
Reply
1 Reply
828 Views
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 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2148479%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERTD%20memory%20occupation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2148479%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello.%3CBR%20%2F%3EI'm%20using%20RTD%20version%205.0.0.%3C%2FP%3E%3CP%3EWatching%20RAM%20occupation%20I%20notice%20that%26nbsp%3BRTD%20drivers%20take%20a%20lot%20of%20RAM%20like%20you%20can%20see%20in%20attached%20file.%3C%2FP%3E%3CP%3EA%20reason%20could%20be%20that%20in%20this%20files%20there%20is%20a%20define%20that%20define%20number%20of%20cores%204%2C%20also%20using%201%20core%3A%3C%2FP%3E%3CP%3E%3CSPAN%3E%23define%20NUMBER_OF_CORES%20(uint8)(4U)%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EWhy%20this%20define%20it's%20defined%20in%20RTD%20files%20(example%3A%20SchM_Adc.h)%26nbsp%3B%20ad%20not%20in%20generated%20files%26nbsp%3B(example%3A%20Adc_Sar_Ip_Cfg.h)%26nbsp%3B%20%3F%3C%2FP%3E%3CP%3ERegards%2C%20Francesco.%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%3EHi%26nbsp%3B%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%2C%3C%2FP%3E%0A%3CDIV%3E%0A%3CP%3E%3CSPAN%3EThe%20SchM%20files%20provided%20with%20RTD%20are%20stubs%2C%20intention%20is%20to%20use%20them%20as%20a%20reference%20and%20can%20be%20modified%2Freplaced%20depending%20on%20the%20application%20needs.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EIt%20is%20indicating%20the%20%3CSTRONG%3Emaximum%3C%2FSTRONG%3E%20core%20number%20for%20the%20maximal%20derivative%20from%20the%20family%20as%20the%20memmap%20files%20are%20generic%20stubs.%20The%20actual%20core%20number%20used%20at%20runtime%20is%20based%20on%20the%20value%20provided%20by%20Osif%2C%20so%20it%20will%20use%20the%20correct%20core%20in%20execution.%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%3EThe%20stubs%20implementation%20may%20be%20modified%20by%20user%20to%20meet%20the%20actual%20needs.%20You%3CSPAN%3E%26nbsp%3Bcan%20set%20%3C%2FSPAN%3E%3CSTRONG%20style%3D%22font-family%3A%20inherit%3B%22%3ENUMBER_OF_CORES%3C%2FSTRONG%3E%3CSPAN%3E%20to%201%20to%20free%20some%20SRAM.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3CBR%20%2F%3EJuli%C3%A1n%3C%2FP%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E