It must be a novice question but I have been trying for days without success. I created RTX First project example using PDF guide but when I built the project and started the simulation it didn't even get to init task. Then I built the already finished project in Full project folder and started the simulation. This one worked fine.
I soon realized that built projects have different code sizes. Full project is 6020 bytes and RTX First project is 5468 bytes in size. Their first part is different. <RTX First project> starts like this:
0x00000000 E59FD00C LDR R13,[PC,#0x000C] _main_scatterload: 0x00000004 EB00029F BL $Ven$AT$I$$__scatterload(0x00000A88) __main_after_scatterload: 0x00000008 E59F0000 LDR R0,[PC] 0x0000000C E12FFF10 BX R0 0x00000010 00000528 ANDEQ R0,R0,R8,LSR #10 __rt_final_cpp: 0x00000014 40000D38 ANDMI R0,R0,R8,LSR R13 .....
And Full project starts like this:
0x00000000 E59FF018 LDR PC,[PC,#0x0018] 605: LDR PC, Undef_Addr 0x00000004 E59FF018 LDR PC,[PC,#0x0018] 606: LDR PC, SWI_Addr 0x00000008 E59FF018 LDR PC,[PC,#0x0018] 607: LDR PC, PAbt_Addr 0x0000000C E59FF018 LDR PC,[PC,#0x0018] 608: LDR PC, DAbt_Addr 0x00000010 E59FF018 LDR PC,[PC,#0x0018] 609: NOP ; Reserved Vector 610: ; LDR PC, IRQ_Addr 0x00000014 E1A00000 NOP
Looks like the project created using PDF guide is missing first part of the code. I tried multiple timer from the start. Step by step using PDF guide and same problem happens each time so please help.
I am using uVision V4.73.00 on Win7 Professional.
I am still wondering what is going on. Could anybody please rebuild this project and report if similar problems occur?
I don't care about RTX First project itself. But I have exactly the same problem with my degree project (missing first part of the program code). I absolutely have to solve it but I ran out of ideas how so please help.
Thank you!
Problem solved. There is a tickbox in 'Options for target' -> 'Linker' tab. it says: 'Use memory layout from target dialog' and it has to be checked.