1) extract /opt/ti/ccsv5/tools/compiler/tms470/lib/rtssrc.zip
2) copy boot.asm into your Code Composer Studio project
3) apply following patch on boot.asm
--- a/boot.asm 2011-10-20 05:36:52.000000000 +0200 +++ b/boot.asm 2011-11-17 23:22:02.339068102 +0100 @@ -262,11 +262,11 @@ .endif ;*------------------------------------------------------ - ;* SET TO USER MODE + ;* SET TO PRIV MODE ;*------------------------------------------------------ MRS r0, cpsr BIC r0, r0, #0x1F ; CLEAR MODES - ORR r0, r0, #0x10 ; SET USER MODE + ORR r0, r0, #0x1F ; SET PRIV MODE MSR cpsr_cf, r0 ;*------------------------------------------------------
4) When debugging verify that Registers - Core Registers - CPSR - M is set to 11111
rd@radekdostal.com
+43 681 815 945 10
skype: radekdostal
www.mimo-domov.cz - Czech and Slovak people abroad