We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
How do I go about picking an architecture ? My first thoughts suggested Cortex M3 but the more I look into it the less sure I am.
Obviously I don't to go to the trouble of learning a new technology only to find that I've made a bad processor choice (ie nearly end of line). I've spent many hours looking at many websites and have yet to find any high-level stuff on choosing my first ARM device.
If there's one thing wrong with ARM its the almost infinite number of devices
I'm an embedded developer wanting to undertake my first ARM project, so I'm completely new to the ARM architecture. I want a low power device with serial, USB and some ADC channels.
look man, I'm serious now. you are a danger to society. do you understand? you are dangerous by writing delay loops like that. confide it: you are indeed dangerous. don't write software for: planes missile space systems cars trains etc.
stick to flashing LEDs and bad English, please...
Tapeer.
a nother example to cklarimfy.
void SmallLoop(void) { volatile int a; for (a=10000;a!=0;--a) { volatile int b; for (b=10000;b!=0;--b) { volatile int c; for (c=10000;c!=0;--c) { ; } } } }
SmallLoop PROC ;;;783 ;;;784 void SmallLoop(void) 000ba4 e59f211c LDR r2,|L1.3272| ;;;785 { ;;;786 volatile int a; ;;;787 ;;;788 for (a=10000;a!=0;--a) 000ba8 e1a03002 MOV r3,r2 |L1.2988| ;;;789 { ;;;790 volatile int b; ;;;791 ;;;792 for (b=10000;b!=0;--b) 000bac e1a01003 MOV r1,r3 |L1.2992| ;;;793 { ;;;794 volatile int c; ;;;795 ;;;796 for (c=10000;c!=0;--c) 000bb0 e1a00003 MOV r0,r3 |L1.2996| 000bb4 e2500001 SUBS r0,r0,#1 000bb8 1afffffd BNE |L1.2996| 000bbc e2511001 SUBS r1,r1,#1 ;792 000bc0 1afffffa BNE |L1.2992| 000bc4 e2522001 SUBS r2,r2,#1 ;788 000bc8 1afffff7 BNE |L1.2988| ;;;797 { ;;;798 ; ;;;799 } ;;;800 } ;;;801 } ;;;802 } 000bcc e12fff1e BX lr ;;;803 ENDP
are r0 r1 r2 r3 all return values? have keil got big code problems? no!
plz wake up and read.
Always yo're freind.
Zeusti.
are you sure this code is compiled at ARM mode?
Tapeer,.
YES IT IS ARM MODE!
TRY IT UR SELF!
leave the compilers aside. can you provide a quote from the documentation founding your claim? how many times do I need to ask? come on, show us. I'm still waiting. If you can then I am wrong - not the end of the world. but you must show the quote first (I didn't find it).
i told u so many many many times b4 but u seem prejudiced aginst things i say.
look at
infocenter.arm.com/.../IHI0042C_aapcs.pdf
page 16
A subroutine must preserve the contents of the registers r4-r8, r10, r11 and SP (and r9 in PCS variants that designate r9 as v6).
it does not say must preserve r0-r3. dos it?
why does ity not say r0-r3? bcoz they do not need preserve.
i think i am correct
now plz. u reciover { and maybe apologise }.
Zeusti
(i bare no gruges)
I will not provide a quote but in this particular instance you are right - R0-R3 can freely be corrupted at any processor mode (I don't know the M3).
<quote>
</quote>
u r magnanimous in yo're learning.
(holding no gruge)