📄 flashdevicememmap.m
字号:
function [startaddress,length]=flashDeviceMemMap(device,flashSectName)
% Based on the device the memory map will vary
% Hard coding the flash memory map
% Copyright 2006 The MathWorks, Inc.
% Selection table for flash memory maps of the below devices
% We can add more devices to the list in the future
deviceList={'F2812',
'F2811'
'F2810'
'F2809'
'F2808'
'F2806'
'F2802'};
%Selection of structure
if ~ismember(device,deviceList)
error('The device %s is not supported',device);
end
switch device
case {'F2812' 'F2811'}
% Structure for 281x devices
F2812.J={'3D8000' '2000'};
F2812.I={'3DA000' '2000'};
F2812.H={'3DC000' '4000'};
F2812.G={'3E0000' '4000'};
F2812.F={'3E4000' '4000'};
F2812.E={'3E8000' '4000'};
F2812.D={'3DC000' '4000'};
F2812.C={'3F0000' '4000'};
F2812.B={'3F4000' '2000'};
F2812.A={'3F6000' '2000'};
startaddress=F2812.(flashSectName){1};
length=F2812.(flashSectName){2};
case 'F2810'
F2810.E={'3E8000' '4000'};
F2810.D={'3DC000' '4000'};
F2810.C={'3F0000' '4000'};
F2810.B={'3F4000' '2000'};
F2810.A={'3F6000' '2000'};
startaddress=F2810.(flashSectName){1};
length=F2810.(flashSectName){2};
% Structure for 280x devices
case 'F2809'
F2809.H={'3D8000' '4000'};
F2809.G={'3DC000' '4000'};
F2809.F={'3E0000' '4000'};
F2809.E={'3E4000' '4000'};
F2809.D={'3E8000' '4000'};
F2809.c={'3EC000' '4000'};
F2809.B={'3F0000' '4000'};
F2809.A={'3F4000' '4000'};
startaddress=F2809.(flashSectName){1};
length=F2809.(flashSectName){2};
case 'F2808'
F2808.D={'3E8000' '4000'};
F2808.c={'3EC000' '4000'};
F2808.B={'3F0000' '4000'};
F2808.A={'3F4000' '4000'};
startaddress=F2808.(flashSectName){1};
length=F2808.(flashSectName){2};
case {'F2806' 'F2802'}
F2806.D={'3F0000' '2000'};
F2806.c={'3F2000' '2000'};
F2806.B={'3F4000' '2000'};
F2806.A={'3F6000' '2000'};
startaddress=F2806.(flashSectName){1};
length=F2806.(flashSectName){2};
case {'F2801' 'F28015' 'F28016'}
F2801.D={'3F0000' '1000'};
F2801.c={'3F2000' '1000'};
F2801.B={'3F4000' '1000'};
F2801.A={'3F6000' '1000'};
startaddress=F2801.(flashSectName){1};
length=F2801.(flashSectName){2};
otherwise
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -