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,
I'm trying to close my control loop by using DCL library. I have a driverlib based project. I need to add it and use it. My program is FLASH based.
Could you please guide me how to implement to project and use it freely?
Thanks in advance.
You can refer to one of our reference designs. For example, TIDM-02011 within the Digital Power SDK https://www.ti.com/tool/C2000WARE-DIGITALPOWER-SDK
The projectspec at the following path includes DCL by copying DCL files into the workspace and then telling the compiler to include those files in the build by including the corresponding path in the compiler build options. It also uses Driverlib and is Flash based.
C2000Ware_DigitalPower_SDK_4_02_00_00\solutions\tidm_02011\f28003x\ccs\buck_lfu.projectspec
Thanks,
Sira
Hi Sira,
I just copied files to my directory and include the path. I didn't use any function of DCL in main.
I got following two Warnings.
1) Description Resource Path Location Type
#10247-D creating output section ".scratchpad" without a SECTIONS specification F28004x_DCDC C/C++ Problem
2) Description Resource Path Location Type
#10247-D creating output section "Cla1Prog" without a SECTIONS specification F28004x_DCDC C/C++ Problem
Could you please help on it?
This means your linker command file (.cmd) doesn't define .scratchpad or Cla1Prog whereas your code does.
Hi Sira,
I don't know that is .scratchpad and whether I need it or not.
I may need CLA in further.
How can I resolve and add sections to my linker command? How I should design .cmd file?
Gokhan, you will need a .scratchpad section if you're using the CLA.
For linker command file related questions, please open and create a separate e2e. It will get routed to the right expert.
Thanks,
Sira
Hi Sira,
I will create a separate e2e. Howeever, following question may be related with DCL.
1) I did what you offered and I get following errors during loading program to flash. If it is related to cmd file, we can pass.
C28xx_CPU1: GEL Output:
Memory Map Initialization Complete
C28xx_CPU1: GEL Output: ... DCSM Initialization Start ...
C28xx_CPU1: GEL Output: ... DCSM Initialization Done ...
C28xx_CPU1: GEL Output: ... DCSM Initialization Start ...
C28xx_CPU1: GEL Output: ... DCSM Initialization Done ...
C28xx_CPU1: GEL Output: ... DCSM Initialization Start ...
C28xx_CPU1: GEL Output: ... DCSM Initialization Done ...
C28xx_CPU1: Error during Flash Verification. Address 0x000810E0, Expected 0x00008F08, Read 0x0000FFFF
C28xx_CPU1: File Loader: Memory write failed: Unknown error
C28xx_CPU1: GEL: File: C:\Texas\Texas_DCDC\Debug\F28004x_DCDC.out: Load failed.
C28xx_CPU1: Error during Flash Verification. Address 0x00080000, Expected 0x00000048, Read 0x0000FFFF
C28xx_CPU1: Please make sure the memory location you are programming have not already been programmed.
C28xx_CPU1: Error during Flash Verification. Address 0x00081075, Expected 0x00000006, Read 0x0000FFFF
C28xx_CPU1: Please make sure the memory location you are programming have not already been programmed.
C28xx_CPU1: Error during Flash Verification. Address 0x000810DC, Expected 0x00000000, Read 0x0000FFFF
C28xx_CPU1: Please make sure the memory location you are programming have not already been programmed.
2) I investigated the folder. C:\ti\C2000Ware_DigitalPower_SDK_4_03_01_00\c2000ware\libraries\control\DCL\c28
There is a source folder, include folder and cmd folder. I think I also needed to add others to my project or project folder.
I only added \buck_F28004x_lfu\libraries\DCL to my current project.
I want to do it clearly. Can you help on it? There is other documents needed to add to my project I think.
Thanks in advance.
1. Yes, you can ask this in your other ticket.
2. If you refer to the projectspec I mentioned in my earlier reply, and search for all things DCL related, it should guide you correctly.
Thanks,
Sira