How to add the Serial Library to a project with CPC as SRAM?

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

How to add the Serial Library to a project with CPC as SRAM?

Jump to solution
794 Views
hymalaibello
Contributor III

Hi! It works! thank you very much! Now I would like to use only CPC as SRAM, but the build configuration of Downloads_SRAM does not include the libraries for Serial communication (Printf). I want to know if  there is a way to include them?, because I need to send the data using Serial Port.

Thanks!

Regards,

Hymalai Bello

1 Solution
574 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Hymalai,

SRAM CodeWarrior project doesn't include "printf" to make the debugged ELF file smaller, because CPC or L2 to SRAM is always in a small size. P4080DS CPC to SRAM  is 1M, it could accommodate the ELF(with printf) and performing debug.


Please try to use the following method.

Please follow the bare board project wizards to create a "Download" project(RAM version), then change the lcf file as "e500mc_gcc-eabi_SRAM.lcf" from Project->Properties->C/C++ Build->Settings->PowerPC EABI e500mc C Linker->PowerPC Environment.

Please remember to change the initialization file as SRAM version "P4080DS_init_sram.tcl"  from Run->Debug Configurations->Edit->Edit->Initialization->Initialize target script.


Have a great day,
Yiping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

1 Reply
575 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Hymalai,

SRAM CodeWarrior project doesn't include "printf" to make the debugged ELF file smaller, because CPC or L2 to SRAM is always in a small size. P4080DS CPC to SRAM  is 1M, it could accommodate the ELF(with printf) and performing debug.


Please try to use the following method.

Please follow the bare board project wizards to create a "Download" project(RAM version), then change the lcf file as "e500mc_gcc-eabi_SRAM.lcf" from Project->Properties->C/C++ Build->Settings->PowerPC EABI e500mc C Linker->PowerPC Environment.

Please remember to change the initialization file as SRAM version "P4080DS_init_sram.tcl"  from Run->Debug Configurations->Edit->Edit->Initialization->Initialize target script.


Have a great day,
Yiping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------