Code Security Module (CSM)
CSM Caveats
CSM Caveats
Never program all the PWL’s as 0x0000
Never program all the PWL’s as 0x0000
Doing so will permanently lock the CSM
Doing so will permanently lock the CSM
Flash addresses 0x3F7F80 to 0x3F7FF5,
Flash addresses 0x3F7F80 to 0x3F7FF5,
inclusive, must be programmed to 0x0000 to
inclusive, must be programmed to 0x0000 to
securely lock the CSM
securely lock the CSM
Remember that code running in unsecured
Remember that code running in unsecured
RAM cannot access data in secured memory
RAM cannot access data in secured memory
Don’t link the stack to secured RAM if you have
Don’t link the stack to secured RAM if you have
any code that runs from unsecured RAM
any code that runs from unsecured RAM
Do not embed the passwords in your code!
Do not embed the passwords in your code!
Generally, the CSM is unlocked only for debug
Generally, the CSM is unlocked only for debug
Code Composer Studio can do the unlocking
Code Composer Studio can do the unlocking
CSM Password Match Flow
CSM Password Match Flow
Flash device
Flash device
secure after
secure after
reset or runtime
reset or runtime
Do dummy read of PWL
Do dummy read of PWL
0x3F 7FF8
0x3F 7FF8
–
–
0x3F 7FFF
0x3F 7FFF
Start
Start
Device permanently locked
Device permanently locked
CPU access is limited
CPU access is limited
–
–
device cannot be debugged
device cannot be debugged
or reprogrammed
or reprogrammed
Device unlocked
Device unlocked
User can access on
User can access on
-
-
chip secure memory
chip secure memory
Write password to KEY registers
Write password to KEY registers
0x00 0AE0
0x00 0AE0
–
–
0x00 0AE7
0x00 0AE7
(EALLOW) protected
(EALLOW) protected
Correct
Correct
password?
password?
Is PWL =
Is PWL =
all Fs?
all Fs?
Is PWL =
Is PWL =
all 0s?
all 0s?
Yes
Yes
Yes
Yes
Yes
Yes
No
No
No
No
No
No
C28x - System Design
10 - 17
Summary of Contents for C28 Series
Page 64: ...Summary 3 16 C28x Peripheral Registers Header Files ...
Page 78: ...Interrupt Sources 4 14 C28x Reset and Interrupts ...
Page 218: ...Lab 9 DSP BIOS 9 22 C28x Using DSP BIOS ...
Page 244: ...Lab 10 Programming the Flash 10 26 C28x System Design ...
Page 273: ...Appendix A eZdsp F2812 C28x Appendix A eZdsp F2812 A 1 ...
Page 276: ...Appendix P2 Expansion Interface A 4 C28x Appendix A eZdsp F2812 ...
Page 277: ...Appendix P4 P8 P7 I O Interface C28x Appendix A eZdsp F2812 A 5 ...
Page 278: ...Appendix A 6 C28x Appendix A eZdsp F2812 ...
Page 279: ...Appendix P5 P9 Analog Interface C28x Appendix A eZdsp F2812 A 7 ...
Page 282: ...Appendix A 10 C28x Appendix A eZdsp F2812 TP1 TP2 Test Points ...