Hi everone,
How can I learn the size of the code that I sbumit to the f 28377d board?
Also How can I use the flash memory of the device?
Have a nice day
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi everone,
How can I learn the size of the code that I sbumit to the f 28377d board?
Also How can I use the flash memory of the device?
Have a nice day
Hi Fatih,
fatih kara said:How can I learn the size of the code that I sbumit to the f 28377d board?
Once you build the project, a map file gets generated. This map file has all the info!
Check this link: http://e2e.ti.com/support/microcontrollers/c2000/f/171/t/226708.aspx
fatih kara said:Also How can I use the flash memory of the device?
I would like you to go through this workshop which covers the above. Do let me know if you're unable to follow anything.
https://processors.wiki.ti.com/index.php/F2837xD_Workshop
Regards,
Gautam
Hi Gautam,
the map file is like below;
PAGE 0:
BEGIN 00000000 00000002 00000002 00000000 RWIX
RAMM0 00000122 000002de 000002dc 00000002 RWIX
RAMLS0 00008000 00000800 00000800 00000000 RWIX
RAMLS1 00008800 00000800 0000015f 000006a1 RWIX
RAMLS2 00009000 00000800 00000000 00000800 RWIX
RAMLS3 00009800 00000800 00000000 00000800 RWIX
RAMLS4 0000a000 00000800 00000000 00000800 RWIX
RAMD0 0000b000 00000800 000007fb 00000005 RWIX
RESET 003fffc0 00000002 00000000 00000002 RWIX
PAGE 1:
BOOT_RSVD 00000002 00000120 00000000 00000120 RWIX
RAMM1 00000400 00000400 00000400 00000000 RWIX
ADCA_RESULT 00000b00 00000020 00000018 00000008 RWIX
ADCB_RESULT 00000b20 00000020 00000018 00000008 RWIX
ADCC_RESULT 00000b40 00000020 00000018 00000008 RWIX
ADCD_RESULT 00000b60 00000020 00000018 00000008 RWIX
CPU_TIMER0 00000c00 00000008 00000008 00000000 RWIX
CPU_TIMER1 00000c08 00000008 00000008 00000000 RWIX
CPU_TIMER2 00000c10 00000008 00000008 00000000 RWIX
PIE_CTRL 00000ce0 00000020 0000001a 00000006 RWIX
PIE_VECT 00000d00 00000200 000001c0 00000040 RWIX
DMA 00001000 00000200 000000e0 00000120 RWIX
CLA1 00001400 00000040 00000040 00000000 RWIX
EPWM1 00004000 00000100 00000100 00000000 RWIX
EPWM2 00004100 00000100 00000100 00000000 RWIX
EPWM3 00004200 00000100 00000100 00000000 RWIX
EPWM4 00004300 00000100 00000100 00000000 RWIX
EPWM5 00004400 00000100 00000100 00000000 RWIX
EPWM6 00004500 00000100 00000100 00000000 RWIX
EPWM7 00004600 00000100 00000100 00000000 RWIX
EPWM8 00004700 00000100 00000100 00000000 RWIX
EPWM9 00004800 00000100 00000100 00000000 RWIX
EPWM10 00004900 00000100 00000100 00000000 RWIX
EPWM11 00004a00 00000100 00000100 00000000 RWIX
EPWM12 00004b00 00000100 00000100 00000000 RWIX
ECAP1 00005000 00000020 00000020 00000000 RWIX
ECAP2 00005020 00000020 00000020 00000000 RWIX
ECAP3 00005040 00000020 00000020 00000000 RWIX
ECAP4 00005060 00000020 00000020 00000000 RWIX
ECAP5 00005080 00000020 00000020 00000000 RWIX
ECAP6 000050a0 00000020 00000020 00000000 RWIX
EQEP1 00005100 00000040 00000022 0000001e RWIX
EQEP2 00005140 00000040 00000022 0000001e RWIX
EQEP3 00005180 00000040 00000022 0000001e RWIX
DACA 00005c00 00000010 00000008 00000008 RWIX
DACB 00005c10 00000010 00000008 00000008 RWIX
DACC 00005c20 00000010 00000008 00000008 RWIX
CMPSS1 00005c80 00000020 00000020 00000000 RWIX
CMPSS2 00005ca0 00000020 00000020 00000000 RWIX
CMPSS3 00005cc0 00000020 00000020 00000000 RWIX
CMPSS4 00005ce0 00000020 00000020 00000000 RWIX
CMPSS5 00005d00 00000020 00000020 00000000 RWIX
CMPSS6 00005d20 00000020 00000020 00000000 RWIX
CMPSS7 00005d40 00000020 00000020 00000000 RWIX
CMPSS8 00005d60 00000020 00000020 00000000 RWIX
SDFM1 00005e00 00000080 00000080 00000000 RWIX
SDFM2 00005e80 00000080 00000080 00000000 RWIX
MCBSPA 00006000 00000040 00000024 0000001c RWIX
MCBSPB 00006040 00000040 00000024 0000001c RWIX
SPIA 00006100 00000010 00000010 00000000 RWIX
SPIB 00006110 00000010 00000010 00000000 RWIX
*** 00006120 00000010 00000010 00000000 RWIX
SPID 00006130 00000010 00000010 00000000 RWIX
UPP 00006200 00000100 00000048 000000b8 RWIX
WD 00007000 00000040 0000002b 00000015 RWIX
NMIINTRUPT 00007060 00000010 00000007 00000009 RWIX
XINT 00007070 00000010 0000000b 00000005 RWIX
SCIA 00007200 00000010 00000010 00000000 RWIX
SCIB 00007210 00000010 00000010 00000000 RWIX
SCIC 00007220 00000010 00000010 00000000 RWIX
SCID 00007230 00000010 00000010 00000000 RWIX
I2CA 00007300 00000040 00000022 0000001e RWIX
I2CB 00007340 00000040 00000022 0000001e RWIX
ADCA 00007400 00000080 00000080 00000000 RWIX
ADCB 00007480 00000080 00000080 00000000 RWIX
ADCC 00007500 00000080 00000080 00000000 RWIX
ADCD 00007580 00000080 00000080 00000000 RWIX
TRIG 00007900 00000050 00000046 0000000a RWIX
DMACLASRCSEL 00007980 00000040 0000001a 00000026 RWIX
EPWM_XBAR 00007a00 00000040 00000040 00000000 RWIX
CLB_XBAR 00007a40 00000040 00000000 00000040 RWIX
GPIO_OUT_XBAR 00007a80 00000040 00000040 00000000 RWIX
GPIOCTRL 00007c00 00000180 00000180 00000000 RWIX
GPIODAT 00007f00 00000030 00000030 00000000 RWIX
RAMLS5 0000a800 00000800 00000270 00000590 RWIX
RAMD1 0000b800 00000800 00000000 00000800 RWIX
RAMGS0 0000c000 00001000 00000000 00001000 RWIX
RAMGS1 0000d000 00001000 00000000 00001000 RWIX
RAMGS2 0000e000 00001000 00000000 00001000 RWIX
RAMGS3 0000f000 00001000 00000000 00001000 RWIX
RAMGS4 00010000 00001000 00000000 00001000 RWIX
RAMGS5 00011000 00001000 00000000 00001000 RWIX
RAMGS6 00012000 00001000 00000000 00001000 RWIX
RAMGS7 00013000 00001000 00000000 00001000 RWIX
RAMGS8 00014000 00001000 00000000 00001000 RWIX
RAMGS9 00015000 00001000 00000000 00001000 RWIX
RAMGS10 00016000 00001000 00000000 00001000 RWIX
RAMGS11 00017000 00001000 00000000 00001000 RWIX
RAMGS12 00018000 00001000 00000000 00001000 RWIX
RAMGS13 00019000 00001000 00000000 00001000 RWIX
RAMGS14 0001a000 00001000 00000000 00001000 RWIX
RAMGS15 0001b000 00001000 00000000 00001000 RWIX
CPU2TOCPU1RAM 0003f800 00000400 00000000 00000400 RWIX
CPU1TOCPU2RAM 0003fc00 00000400 00000000 00000400 RWIX
EMIF1 00047000 00000800 00000070 00000790 RWIX
EMIF2 00047800 00000800 00000070 00000790 RWIX
DCANA 00048000 00001000 00000200 00000e00 RWIX
DCANB 0004a000 00001000 00000200 00000e00 RWIX
IPC 00050000 00001000 00000026 00000fda RWIX
DEV_CFG 0005d000 00000180 0000012e 00000052 RWIX
ANALOG_SUBSYS 0005d180 00000080 00000048 00000038 RWIX
CLK_CFG 0005d200 00000100 00000032 000000ce RWIX
CPU_SYS 0005d300 00000100 00000082 0000007e RWIX
HWBIST 0005e000 00000100 000000a2 0000005e RWIX
PBIST 0005e200 00000200 000001e6 0000001a RWIX
ROMPREFETCH 0005e608 00000002 00000002 00000000 RWIX
DCSM_Z1 0005f000 00000030 00000024 0000000c RWIX
DCSM_Z2 0005f040 00000030 00000024 0000000c RWIX
DCSM_COMMON 0005f070 00000010 00000008 00000008 RWIX
MEMCFG 0005f400 00000080 00000080 00000000 RWIX
EMIF1CONFIG 0005f480 00000020 00000020 00000000 RWIX
EMIF2CONFIG 0005f4a0 00000020 00000020 00000000 RWIX
ACCESSPROTECTION 0005f4c0 00000040 00000040 00000000 RWIX
MEMORYERROR 0005f500 00000040 00000040 00000000 RWIX
ROMWAITSTATE 0005f540 00000002 00000002 00000000 RWIX
FLASH_CTRL 0005f800 00000300 00000182 0000017e RWIX
FLASH_ECC 0005fb00 00000040 00000028 00000018 RWIX
DCSM_OTP_Z1 00078800 00000020 0000001a 00000006 RWIX
DCSM_OTP_Z2 00078900 00000020 0000001a 00000006 RWIX
Which of these gives the code size? I am confused.
Also, when I compile the code and upload to the board which memory am I using, flash memory or RAM?
As a last thing, just make my other question clear, when I power off the board I want that the code stays inside the board. For this I should use the flash memory or else?
fatih kara said:Which of these gives the code size? I am confused.
Page 0 contains RAM Memory size.
fatih kara said:Also, when I compile the code and upload to the board which memory am I using, flash memory or RAM?
From above info, it indicates that you're using RAM and not Flash.
fatih kara said:As a last thing, just make my other question clear, when I power off the board I want that the code stays inside the board. For this I should use the flash memory or else?
Right click on project; go to build configurations; select set active and choose the configuration you want to build (ie Flash for Standalone).
Regards,
Gautam
Hi everybody,
under CCS environment: -> project folder ->Binaries folder -> right click on executable file -> left click on Properties and you will see SIZE.
Regards,
Igor