Hi Laksen,
OMG, what a quick response with fix.
I`ve tried again to compile for arm/WinCE.. it seems little bit better but we have still some issue somewhere further..
Take a look on this (especially lines with ASCII arrow on left side - follow BL asm instruction):
.text:00016170 EXPORT start
.text:00016170 start
.text:00016170 STMFD SP!, {LR}
.text:00016174 MOV R1, #0
.text:00016178 LDR R0, =byte_18150
.text:0001617C STRB R1, [R0]
--> .text:00016180 BL sub_16144
.text:00016184 LDMFD SP!, {PC}
.text:00016144 STMFD SP!, {R11,R12,LR,PC}
.text:00016148 SUB R11, R12, #4
.text:0001614C SUB SP, SP, #0x2C
.text:00016150 MOV R1, #0
.text:00016154 LDR R0, =byte_18140
.text:00016158 STRB R1, [R0]
.text:0001615C MOV R11, #0
--> .text:00016160 BL loc_11334
.text:00011334 ; START OF FUNCTION CHUNK FOR sub_16144
.text:00011334
.text:00011334 loc_11334
--??--> .text:00011334 BL loc_12E44
.text:00011334 ; END OF FUNCTION CHUNK FOR sub_16144
.text:00011338 ; ---------------------------------------------------------------------------
.text:00011338 LDR R1, =aTest_txt ; "\\test.txt"
.text:0001133C LDR R0, =unk_1B000
.text:00011340 BL loc_16F84
.text:00012E44 loc_12E44
-->.text:00012E44 BL loc_11484
.text:00011484 loc_11484
.text:00011484 LDR R0, =byte_18140
.text:00011488 LDRB R0, [R0]
.text:0001148C CMP R0, #0
-?->.text:00011490 BLEQ loc_114A4
.text:00011494 LDMFD SP!, {PC}
.text:000114A4 loc_114A4
.text:000114A4 LDR R1, =0x30F031F
.text:000114A8 MOV R0, #0xC0003
-->.text:000114B0 BL sub_110E4
.text:000114B4 LDMFD SP!, {PC}
.text:000110E4 sub_110E4
.text:000110E4
.text:000110E4 LDR PC, [R12]
.text:000110E4 ; End of function sub_110E4
Offset 11338 never get executed, we have some loop again.
Where the problem can be?