Ну, короче, прошил - мало чего изменилось.
У девайса крышу сносит, время от времени звуковыми и световыми сигналами передаёт какие-то шифровки в центр.
Хотя должен тупо мигать светодиодами на порту P4
Вот листинг:
Disassembly of section .text:
00001100 <_reset_vector__>:
1100: b2 40 80 5a mov #23168, &0x0120 ;#0x5a80
1104: 20 01
1106: 3f 40 f0 11 mov #4592, r15 ;#0x11f0
110a: 3e 40 00 02 mov #512, r14 ;#0x0200
110e: 3d 40 00 02 mov #512, r13 ;#0x0200
1112: 0d 9e cmp r14, r13 ;
1114: 05 24 jz $+12 ;abs 0x1120
1116: fe 4f 00 00 mov.b @r15+, 0(r14) ;
111a: 1e 53 inc r14 ;
111c: 0e 9d cmp r13, r14 ;
111e: fb 2b jnc $-8 ;abs 0x1116
1120: 3f 40 00 02 mov #512, r15 ;#0x0200
1124: 3d 40 00 02 mov #512, r13 ;#0x0200
1128: 0d 9f cmp r15, r13 ;
112a: 05 24 jz $+12 ;abs 0x1136
112c: cf 43 00 00 mov.b #0, 0(r15) ;r3 As==00
1130: 1f 53 inc r15 ;
1132: 0f 9d cmp r13, r15 ;
1134: fb 2b jnc $-8 ;abs 0x112c
1136: 30 40 40 11 br #0x1140 ;
0000113a <__ctors_end>:
113a: 30 40 3e 11 br #0x113e ;
0000113e <_unexpected_>:
113e: 00 13 reti
00001140 <main>:
#include "hardware.h"
int main(void) {
1140: 31 40 f6 09 mov #2550, r1 ;#0x09f6
1144: 04 41 mov r1, r4 ;
int i,j;
int o = 0;
1146: 84 43 04 00 mov #0, 4(r4) ;r3 As==00
WDTCTL = WDTCTL_INIT; //Init watchdog timer
114a: b2 40 80 5a mov #23168, &0x0120 ;#0x5a80
114e: 20 01
P4OUT = P1OUT_INIT; //Init output data of port1
1150: c2 43 1d 00 mov.b #0, &0x001d ;r3 As==00
P5OUT = P2OUT_INIT; //Init output data of port2
1154: c2 43 31 00 mov.b #0, &0x0031 ;r3 As==00
P4SEL = P1SEL_INIT; //Select port or module -function on port1
1158: c2 43 1f 00 mov.b #0, &0x001f ;r3 As==00
P5SEL = P2SEL_INIT; //Select port or module -function on port2
115c: c2 43 33 00 mov.b #0, &0x0033 ;r3 As==00
P4DIR = P1DIR_INIT; //Init port direction register of port1
1160: f2 43 1e 00 mov.b #-1, &0x001e ;r3 As==11
P5DIR = P2DIR_INIT; //Init port direction register of port2
1164: f2 43 32 00 mov.b #-1, &0x0032 ;r3 As==11
P1IES = P1IES_INIT; //init port interrupts
1168: c2 43 24 00 mov.b #0, &0x0024 ;r3 As==00
P2IES = P2IES_INIT;
116c: c2 43 2c 00 mov.b #0, &0x002c ;r3 As==00
P1IE = P1IE_INIT;
1170: c2 43 25 00 mov.b #0, &0x0025 ;r3 As==00
P2IE = P2IE_INIT;
1174: c2 43 2d 00 mov.b #0, &0x002d ;r3 As==00
while (1) { //main loop, never ends...
for (j=0; j<8; j++, o++) {
1178: 84 43 02 00 mov #0, 2(r4) ;r3 As==00
117c: b4 92 02 00 cmp #8, 2(r4) ;r2 As==11
1180: 01 38 jl $+4 ;abs 0x1184
1182: fa 3f jmp $-10 ;abs 0x1178
P4OUT = (1<<j) | (0x80>>(o&7));
1184: 1f 43 mov #1, r15 ;r3 As==01
1186: 94 44 02 00 mov 2(r4), 6(r4) ;
118a: 06 00
118c: 0e 4f mov r15, r14 ;
118e: 1d 44 06 00 mov 6(r4), r13 ;
1192: 0d 93 cmp #0, r13 ;r3 As==00
1194: 03 24 jz $+8 ;abs 0x119c
1196: 0e 5e rla r14 ;
1198: 1d 83 dec r13 ;
119a: fd 23 jnz $-4 ;abs 0x1196
119c: 1f 44 04 00 mov 4(r4), r15 ;
11a0: 3f f0 07 00 and #7, r15 ;#0x0007
11a4: 3d 40 80 00 mov #128, r13 ;#0x0080
11a8: 84 4f 08 00 mov r15, 8(r4) ;
11ac: 0f 4d mov r13, r15 ;
11ae: 84 93 08 00 cmp #0, 8(r4) ;r3 As==00
11b2: 04 24 jz $+10 ;abs 0x11bc
11b4: 0f 11 rra r15 ;
11b6: 94 83 08 00 dec 8(r4) ;
11ba: fc 23 jnz $-6 ;abs 0x11b4
11bc: 4e df bis.b r15, r14 ;
11be: c2 4e 1d 00 mov.b r14, &0x001d ;
for (i = 0; i<0x4fff; i++) {
11c2: 84 43 00 00 mov #0, 0(r4) ;r3 As==00
11c6: b4 90 ff 4f cmp #20479, 0(r4) ;#0x4fff
11ca: 00 00
11cc: 01 38 jl $+4 ;abs 0x11d0
11ce: 05 3c jmp $+12 ;abs 0x11da
nop();
11d0: 03 43 nop
nop();
11d2: 03 43 nop
11d4: 94 53 00 00 inc 0(r4) ;
11d8: f6 3f jmp $-18 ;abs 0x11c6
11da: 94 53 02 00 inc 2(r4) ;
11de: 94 53 04 00 inc 4(r4) ;
11e2: cc 3f jmp $-102 ;abs 0x117c
}
}
}
}
11e4: 31 50 0a 00 add #10, r1 ;#0x000a
11e8: 30 40 ec 11 br #0x11ec ;
000011ec <__stop_progExec__>:
11ec: 02 df bis r15, r2 ;
11ee: fe 3f jmp $-2 ;abs 0x11ec
Disassembly of section .vectors:
0000ffe0 <InterruptVectors>:
ffe0: 3a 11 3a 11 3a 11 3a 11 3a 11 3a 11 3a 11 3a 11 :.:.:.:.:.:.:.:.
fff0: 3a 11 3a 11 3a 11 3a 11 3a 11 3a 11 3a 11 00 11 :.:.:.:.:.:.:...

Помогите кто может!