当前位置:网站首页>Ccs7.3 how to erase only part of the flash sector when burning DSP on-chip flash (two projects of on-chip flash burning of a DSP chip)

Ccs7.3 how to erase only part of the flash sector when burning DSP on-chip flash (two projects of on-chip flash burning of a DSP chip)

2022-06-21 09:39:00 ah_ yl

open ccs, First click on  view -> Target configurations, Open the chip configuration window ; 

 

Then click... In the chip configuration window New Target Configuration File; Create a chip configuration for the project NewTaggetConfiguration.ccxml file ;

The creation process is as follows :

Click on finish; 

Then configure the newly created   NewTaggetConfiguration.ccxml  File emulator and chip type ; Here I use TMS320F28377D For example , After selecting, click save;

 

Right click the newly created... In the chip configuration window   NewTaggetConfiguration .ccxml file , choice launch selected Configuration;( We need to ensure that we are connected at this time Emulator )

stay debug Select the configuration we just configured in the small window NewTaggetConfiguration .ccxml; Right click to select Edit NewTaggetConfiguration.ccxml ;( Menu bar debug Buttons can also be configured )

 

  Select us here   Target Options Flash Setting Options ; Choose us right On film Flash What's going on ; choice   Erase and Program; Because we want to only choose for ourselves flash Erase and burn the partition ;

 

The drop-down , Choose what we want to do   FLASH Sector of , The selected sector is the one we want to erase and burn ; In the unselected sector FLASH The content in will not change ;

Click application ; After clicking on continue;

We then burn the program , choice debug The chip in the window , Right click on the Connected target;

Then click... In the menu bar Load Program Options ;

Choose what we need to write   .out file , Click on ok key , So our program is burned into FLASH in , And the contents of unselected sectors will not be erased ;

 

In general , When we need a in the program ( self-written )bootloader Program ( Or part of the code that doesn't need to be changed ), Let's burn it in, for example, a sector Sector A--SectorD in ;

Then we burn the application code in the above way SectorE--SectorN in ;

In this way, there are two engineering codes in our chip ;

原网站

版权声明
本文为[ah_ yl]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202221443018357.html

随机推荐