From c0a14d76cc8492340d2c20370c06fba97d3d19da Mon Sep 17 00:00:00 2001 From: "v.chau" Date: Mon, 24 Mar 2025 14:22:05 +0100 Subject: [PATCH] works --- .vscode/settings.json | 3 +- Software/TTS_FT24/CANdb/TTS.cangaroo | 6 +- Software/TTS_FT25/Core/Inc/HTPA_32x32d.h | 2 +- Software/TTS_FT25/Core/Src/HTPA_32x32d.c | 13 +- .../TTS_FT25/Debug/Core/Src/HTPA_32x32d.cyclo | 10 +- .../TTS_FT25/Debug/Core/Src/HTPA_32x32d.o | Bin 793912 -> 793936 bytes .../TTS_FT25/Debug/Core/Src/HTPA_32x32d.su | 10 +- Software/TTS_FT25/Debug/TTS_FT25.elf | Bin 816772 -> 816776 bytes Software/TTS_FT25/Debug/TTS_FT25.list | 13456 ++++++++-------- Software/TTS_FT25/Debug/TTS_FT25.map | 442 +- 10 files changed, 6983 insertions(+), 6959 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index c86e921..6352efb 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,6 @@ { "files.associations": { - "htpa_32x32d.h": "c" + "htpa_32x32d.h": "c", + "htpa_lookuptable_short-300degc.h": "c" } } \ No newline at end of file diff --git a/Software/TTS_FT24/CANdb/TTS.cangaroo b/Software/TTS_FT24/CANdb/TTS.cangaroo index e9bcc9c..02e1c18 100644 --- a/Software/TTS_FT24/CANdb/TTS.cangaroo +++ b/Software/TTS_FT24/CANdb/TTS.cangaroo @@ -1,6 +1,6 @@ - + @@ -8,10 +8,10 @@ - + - + diff --git a/Software/TTS_FT25/Core/Inc/HTPA_32x32d.h b/Software/TTS_FT25/Core/Inc/HTPA_32x32d.h index a3462ac..8214cdf 100644 --- a/Software/TTS_FT25/Core/Inc/HTPA_32x32d.h +++ b/Software/TTS_FT25/Core/Inc/HTPA_32x32d.h @@ -46,7 +46,7 @@ #define TABLENUMBER 114 #define PCSCALEVAL 100000000 //327000000000 //PixelConst scale value for table... lower 'L' for (long) #define NROFTAELEMENTS 12 -#define NROFADELEMENTS 1595 //130 possible due to Program memory, higher values possible if NROFTAELEMENTS is decreased +#define NROFADELEMENTS 293 //130 possible due to Program memory, higher values possible if NROFTAELEMENTS is decreased #define TAEQUIDISTANCE 100 //dK #define ADEQUIDISTANCE 64 //dig #define ADEXPBITS 6 //2^ADEXPBITS=ADEQUIDISTANCE diff --git a/Software/TTS_FT25/Core/Src/HTPA_32x32d.c b/Software/TTS_FT25/Core/Src/HTPA_32x32d.c index 49830e4..7459155 100644 --- a/Software/TTS_FT25/Core/Src/HTPA_32x32d.c +++ b/Software/TTS_FT25/Core/Src/HTPA_32x32d.c @@ -218,6 +218,15 @@ uint32_t HTPA_calcPowerTwo(uint8_t power) { return 2 * HTPA_calcPowerTwo(power / 2) * HTPA_calcPowerTwo(power / 2); } +/*uint32_t HTPA_calcPowerTwo(uint8_t power) { + if (power == 0) + return 1; + else if ((power % 2) == 0) + return HTPA_calcPowerTwo(power / 2) * HTPA_calcPowerTwo(power / 2); + else + return 2 * HTPA_calcPowerTwo(power / 2) * HTPA_calcPowerTwo(power / 2); +}*/ + void HTPA_ReadSensor(uint32_t dataArray[32]) { uint8_t config = 0; @@ -281,7 +290,7 @@ void HTPA_ReadSensor(uint32_t dataArray[32]) { */ int64_t vij_pixc_and_pcscaleval; int64_t vdd_calc_steps; - uint8_t table_row, table_col; + uint16_t table_row, table_col; int32_t vx, vy, ydist, dta; // 11.1 ambient temperature: @@ -293,7 +302,7 @@ void HTPA_ReadSensor(uint32_t dataArray[32]) { table_col = i; } } - dta = ambient_temperature - XTATemps[1]; + dta = ambient_temperature - XTATemps[table_col]; ydist = (int32_t)ADEQUIDISTANCE; for(int i=0; i<32; i++) { diff --git a/Software/TTS_FT25/Debug/Core/Src/HTPA_32x32d.cyclo b/Software/TTS_FT25/Debug/Core/Src/HTPA_32x32d.cyclo index 84cbf58..a5ed252 100644 --- a/Software/TTS_FT25/Debug/Core/Src/HTPA_32x32d.cyclo +++ b/Software/TTS_FT25/Debug/Core/Src/HTPA_32x32d.cyclo @@ -1,7 +1,7 @@ ../Core/Src/HTPA_32x32d.c:90:6:HTPA_Init 9 ../Core/Src/HTPA_32x32d.c:212:10:HTPA_calcPowerTwo 3 -../Core/Src/HTPA_32x32d.c:222:6:HTPA_ReadSensor 7 -../Core/Src/HTPA_32x32d.c:340:6:HTPA_WriteRegister 1 -../Core/Src/HTPA_32x32d.c:353:6:HTPA_ReadRegister 1 -../Core/Src/HTPA_32x32d.c:364:6:HTPA_GetStatus 1 -../Core/Src/HTPA_32x32d.c:382:9:HTPA_ReadEEPROM_byte 1 +../Core/Src/HTPA_32x32d.c:231:6:HTPA_ReadSensor 7 +../Core/Src/HTPA_32x32d.c:349:6:HTPA_WriteRegister 1 +../Core/Src/HTPA_32x32d.c:362:6:HTPA_ReadRegister 1 +../Core/Src/HTPA_32x32d.c:373:6:HTPA_GetStatus 1 +../Core/Src/HTPA_32x32d.c:391:9:HTPA_ReadEEPROM_byte 1 diff --git a/Software/TTS_FT25/Debug/Core/Src/HTPA_32x32d.o b/Software/TTS_FT25/Debug/Core/Src/HTPA_32x32d.o index 271d790f58e9a8e24c2ae15ce63d96f9ca97ad81..34dab301df1416ba9ea12812c089f002a284d43d 100644 GIT binary patch delta 3214 zcmZWpeNa@_6+dT}x4?T3c5xN=OJUg+nSurcTR|H?Fnq1w*mPyliXue=1Usl?HgzSY zLN$JDH{-=w)7Ci7#A;MlrqCFzRy#GZ?PwAwM)Cnk$LO>*Q8Qx_Gp6Ufw-{6Zc<*+FxXO8SOar? z(OS-Kj|E!-aJJ9^6`G>ZD&4Wl%3w~nV6fVX0B{mAERw7V=WW=5C8RrG(nz~@+A?8(WB+OFEcV{P>g7JGBtD{TXIXM1i{ z6r%p&OyenX-h)(Q6EBu{a@+w5)6LdR#aTJ-YAtY)?JYYNT3hwRoXV8@_Ism!uEr8i zlpS58wA7I)9&f^dq0?oNTdus&g{pha0f^SP;7xtB%mL?VE7heA_#2lE7Hv~T7;>D8 zJ1#iv@E00KVb6loI{N>t&(*x)I2E5csVkJPSIc*zeqi*y`hLnebp_qcijp0sMZO*42&_?9i>L`y4@M(l@0h9Ev~{C? z2b^ePXEP~0DlrMq*yvi&Xl zrp(jueA&v`)=in9(Ag{6X-1Q+n+&jx#_I2}=26as!1P>wA2*yA2Y zS7U`jj)3NH`agCAo2yIf-L^<@T=LHzb=Q8+{fX_w%3+VQ%kTPb-9?YCo2l2igj`Ol zz|mD1Sv4+WB*lL>lV#OrBI(&#a=O-$+$fP**$voq{9v|}f}N40h4xSZjO(`?OjlT7B&6F_37 zo@s-*HkUn#hNd3KhzY;w2_Z1-rDrI7_iBSTBkJskAu4N`rgtDFAlQVF^CX;Gr>mI5g&kI)v+bKtS0TO9T(f#oFd(D4k=C;2owFN`8(6 z<51xmjNwxu<=WH);#1T0vshtS-wxR*yR_;4kY)WdL{oLz8&akn1>z%^8^Q}L^=);K z9T_{>UYLUN52!>#xE|EQG~2*uLgiUjLmsB;rPaaM*#>|bqb3&}Uo&~oXt0DJ3&3 z+cSzF6CfqwO~gC>dUr@Qxu75G4mlv?6Ww3$d>kCmFUFJ1_SlJqCJsoIsC6 zkBOc{dXoAs_a=9)5&?%?N452xa>&_?lR>lZYoVO{e#Rn%*BQ$ZPBT)W=NKzO2XE_O^%uo)>>gRCDP9#kE8=3$KghBy~LI zivotv#S(@l(LrEmkQLAN`LYw%U`s|nDq^vqkOUnVWKzt}u zrBlR0g#tplbU#J)haj!^8AwE+jo>>9#qS(&!VdAD<;-&GN zr^OIk?vhj_eoPj1r3^D@eXe1fUPEprz%CRU66mNEa{BP_(70UQ;*mDiAH{WH>{r>0=U#w0s_sW~PYr`E-k7 zfdl~Efk?H0C0)sG>TYA+>}H7S19yDV&T<=08tb> z%oK5pg^Fr`2`ExI=gc$`)-48@2;vCm470GG1Umb%T;~uAeO1X#FR^f(gq-*-x@{y3kdTz17rB-M z>65+mKN54PYs48gL|#I8j&4Bz9MbG0jrtuzoLYcA?Ntte^cK7=}PlKY~E z+|tX$59r?pI*6CQOn+)|QsrYJZi)~O#JBjFLT#^aaY)a0b3ejF(VR~1TO92=fYhh@ zm*ym%M|_!Rrfhgy{KlzfOIt~46DOUj2iwIEdGNkSb`d-#3K-hN5{6@veY@8 delta 3004 zcmZYA3s6+&6#(G#-(`91T^_O+_TF6{%OYYi7DPMYF$wq}z}hNc+vU*&kXSH?V3jPz zaivWwjER-5&4F2G3T@Mh$&7+@AYdk;u@jhdTBvCYGO^IKDO!_CY#S}c^qjj3wRLCi z{r>a+=lqX*FFHArIy{nkDqiID+rDN?cR8-QguNtZb^uatPqo?0;E+QBL;Po--2d#L z!{V|GSR{4efTNsRrmdC%@4$XfzwJqP=|gqSmAWsl)RjC?S5#;^2KLsysdKFjRq16= z=24okZk_$ZQflfzQ0SR8z?X?f>Ep4z)7Vo}Az{Usb?vYD}EVOiZ@zG0!R% zS8|~jyw2sB5~*^_%2csIlUep;TRD~al1+`73CXq+t+3eqTScT(k2Wz+6_|2mCdy&0 zUG4B}vnK}h&cB)GS+uTqZ;=7U3zznngSX5IZ~IzLsqjlWLdjMYF7tLFLOYBO=G8HO z#yhG4Z&2F{-Me1*>Ad6{E1OV9{Uam39-6OTn{TvcHhQV%=QL+lHNBJSOphtiwDY__ zD+XqxV_~FzslHhGM(#+>QcWLKslfMl)w5drr*xlG`K|)ruh2fUM+*x4K0 zE>Cx2Ojf(L53f^&(R$82>EG82{{GQQ+D~OiA=rm&@78KB3}ncxX|4H=XE8CZ;;29W zh(ABtmK<-OXKQMd>AB0=v-XCV8YMVEZL=%O?$!FrtW5;|7 z`7nNTQFJR;B%zl&_2Ms5APAu^06nckCz!*YK@lzfhQotmqx7kC{N|vbi`CH;K$o7b zK)QnH3Ld&S7;^j>Jfs>bX=6jbR}D!)wj6CPo^KyS(w+W1{J(t=POZ~JF$spZ!nxp2 zX@-*~w@L|yrvxOjl>*kYUlhO-Nm&B6vDpIh*&G2o*vAFzVxOQ7gv}M;WVZ;YVCijE zvY7&E*c}3D*#rTnNdtWVAG6iM4Uf|kHhhT^**yZj#a0WrstmZL~1^1p#lebi&K* zdI96?qXK@#eqO*NyFtLa>~;auY=M9|Hc!Bx*+KyetWCg8)-K={>k#k{_V|Z+hM^Dh zK)fGhOc0Z33pTD5 zRxDtqv59eFHz6(L;V*)XN#YD%=kQJ*Mut#m#*7e33dSm?0y`Kp_A>`@hDkzUAlh*q z(~L#TIJPk7v6lgyV7$0UNDIZN$~1QY=E~F?k9Ewmz9=7G z%m}0L2CQOgv4eRY`;$j^ z{>wnmKN;(&OGIHOLnmdrah?GTSw(EZG=@&fRAC#FgMG~RaEfu^U8Wyxkwgy`FoW2{ zOky_^i(`xvuM_%Dze-!cXTpq$m|>!B1*@1I>|nC6pBcv)<_3x=ZEPLWibc!?Y+;_q zUM3$Wm>amr45PA|xQw}s6YCfgb~3~G8dHk%%rOjkgt&}p%qc8o4q_YAg?-GAaEg#_ zUBiDrLT@h%ZPC;_jRj0HHZj52%~aqRlY`fpAL1%A(T*9++gQa6V+Zpa>}Pi24C6+j z5b?N<5m-b>3pena3N833_Hu6}PB15Nk(owCCDJjMIfZqM8#@W<)<-y^QsGsc=UzIZ zg$TwphF&6L#x_D)Sj2M{W0Jo4WdTk2JB!gy>)hppzoN~mUH?teZm}7XI ZiNIAc#DCEqS~P`gVCMIoX;+EEqYflzTIuRtA`JGqw@R^?froQjhy}z^F z?c8(EeN|6>J*4LAA)BJZj-(4mvJhf*ttX*J*%~4Ev4J2Wgdi?A@t24zt1XYEia$O6 zL??}Pjtm!$qj+jxcKbd-X$ax#4C_LfZRDzN;(* z)bw_J8&FESekjnuc6~cg@4NKhg1#e8_?q1Y`Oo>TN)1BYfMRyXDDK_iK=&9ZAvPg6M_H5kQB7=yWBdy_+$nR8Sj&R99shP<^}p zNTAo+^+y5y-glRQ^)N6RWF6GNIMRVO8Ys}oU!jv3psj0{7z0#gkyr_dDWEL_%_UY~ zW~Kr?WT0h0g+TLxX6;_evvwa~siDr3J`-rBfdb7v2xC6b^7TW>{V7Gimh7QKJv=3k ze%5EEc<38_73xRzBd9m(U#4uQ`TDcNJv3e4H9U_7=&h)`^_USu?k#Cmd(sKfy!ZBV z`7vHc{Le#Yl|6%6v{0J=*b?CVQC~Kqi!Zy4JnV}Lf9eoN&FO8LhrMr(fl`3j>+Uzu zKp^(I0t5AK>*`^z%QH|Mc6J4Q0KN9PZ&_Lfx_Fo`7x`bg=oIoqKF3? z)YSFLv@17zqVdD6qB*|JhT6W?kn>#b1;yD`m4A9QCCtb?vs?84{*%WOW{Fk#PSF7- zuibnU#(3>qyC2CfL9GkCw{CZ(ern_}-)n}|wLx2}Ve9P8(toj460}u+v#8zHeHL4V z6T4K4gsKMypRZa{K5UkloL^VUEjo8sEh!QIHOwV)4N5p#-m*I{uWHFGp}J>GuSzt; zv;Rdr!y=xc?;6$3my#b-6D@Av7}ut_M_`ql?g;m-8)ZMMZkIc`9q;^!@env|T0)=r zy6DqRkgGtQXR{U_Fmx+1nz2}`}(HCx-%p7s+X6Z&{cpcRnqQk@px z$1{WVrmUVG{i&0Nb*T&(W>ca4|8goS-|ZclP{$%Q-P%oOx2bNYJI;Ok#zQTtI~wJ& zo2sZ$#{#uEF7ZBwIwRX9-s8?8#^1UT z0qqN}w}TQNxSZlG)a%67f~G)O^ydI?)=}5tAm>nk0(*N5dj}SriE3NW2%DqkVXfwk z^gUGdP-8`F#jP8)ZHfpN`xmq=*d0{rAf7;s z!o}Y%!QX#Dw{G1Shpsxs7K8eVLCw$p(siI5jhF9V)V3(l;##ygH_&7q_oy5_Dj&J1 zD#*@j@6a>GXzGew;y?vAP#YZG^FjK7G8it~I8h`tdRx7>ZWI`rBNtRHsL>iL3tb-TNJ`XqL6e(J1_YZ6b6pP$pEI!=UR>BEh+tPAT>t%zq(kFGJ-cb0ou zo+{3W7*}0%ohT`C3)qNf8D~(&RpZSKheU}X5mWScy>3kS!Z%t~@qfvd-X;5G^nv-N zy_lLJ_nlU!|7)vpfnF9vDhBPlYV!1F$2eWf%$Dx(wn4`MjiD_S>q_Aq5s%j z4$|~96JzpkW3>~?MtL2>T;3{Y-D;=cx*JaW(~agJFT~)L7(90m=6o6Cuucr23Ytr3u}3w;1_>cSd$qx#RpkZ$$3R z8{70(mJYEEULzct4X2h4QaTo)%1rTU(xucNRz(eUU_qsJsfcbm zrHV)C^TEQg*3fw!I^jE>R>VqEXqAY5_}7Yfh&DqgVE7x;@Iw?Au(YaExvw7!4Sg__ zEmw9rvQYqz4Ya#LL{EN{#B3^pjdY`-crDnu+2k>8R6i90nV|u=QnJh(lMJLfcfw7c}o*R>dW0q<#lN-kVt{>5ghQ+`C zRi~~^$${jUUOdtXP3%QV{I>q{j&A8)!KgRpY7}VQADrh9U8!p?WT{GRsk_jtWvr<>;Ki+A=+*gQ-)stq$eo`;D;iNKWx?t6NnLy#W2R^PdE z0&UTM+?hfH8j^O645te27!&?EZnccW>)zVh9ERHMKAZldca*xhK@ zy+=HZxs9J{xOGL>RQ+%7#`pLzRfujd^D%fC+l07*lByM3g+mNHqW65S4;42|cyFLh z(Z=YjK0MI31(%DihPlw)=%$l8o&+V)pv1lfE&9UsdpJjhUUIyIa&-UkB>KAH;_-vw zbhhE;Q#xUfr<{o*D%2;R&8O!Yww{d%p^x;v=l_jf)dyb~N2U783r|yZ!|e-MM8_I3 zzx+a_b$aZTY|7Q=UwH8d{MY9VC*a5aP8Xt;d!awyg7$G=@p2lcGx9}!Mc zuaBo~x)0wi4ewrmlW0%FW8W`Us9FD?AC^;}hPgl1Y1Aa!6sn~K{%2L%Yg0ld%A7Fj zOO0|#7^Tza{@24uw*zKG(m0Bf>mwuBIXLmRb$+5Vn#zQ);PqZkmwGW zOPk8kFJu-r^c0hlDZ50|S5*32CrzLNnd_v9u9hOB*W>7K%oEZ%ZW$P%4 z?Yjj5^&+~wcBpXt0j0Tt%#CI4(f}j#`=>*tf6B zeHm!tBY7%=?)O{;^#rE0alCMB!YuP=B%a({;ox$eoR&!=IyM4M;x(Hn9A)y{7>bhh znN%9K0Js$DP5#I%8bo1zrV7XVP-~WXW3l3UWbIfQ(YK{QINktt+qA%@Or90eV*C8GjH&ZyafYm66WYdJOg8PI+vtt1A@obDfVy^s;Y?=c1xSmbxeVa79 zvHW&p@$JUa+XF}F5ZJJZ5N<`-4JRPG;R9qhT)=KP0NIW8Cwm}{_q8e+u3$GDfzSi^ zf!*)|vai7EPZGVw2ul-&N7xO2up8cBH+;b!h>6{;hQE_Z8X@EyD1IrbL0V;n`X-@H4His3hL z;XL+ra?b=x3}e^%P_ZM(T$n%$9PBY?L+nj*axS$x41Xbevz(Ggqv0+a^QeEK;Vxu1 zyoKzBvjjSJP_Y}XqT1`_nLO&{Fg%6qjWTQ^B`2_>Y`n)_I$JpQ1iDfk&~pbn4%aE0 zNF%7_=`9nNA$J-!M9lMIlt>|<{$GPenNp($s0h; zAe%b&fQ`-tj1!Ef%YNS|ljw7~>KkPc=J1c-D822|cmt^K2(on;rYPJG7Ulh*o&+&$ z=p7<&5A{nyDT->!@m^7z?;>6F$Ns2<+37of-&;zPoqm%42vKvXMh>&7Pm$NZ-=>xl zRmv#4dJ>1)S9WzQW%>s>)Mz_GXl^HUK2^y2PU>(c?*nx!CaJ?98$F@mybg4(MYeTP zS7B%PS45}}JE+iqK3e?&r?vkxm+B(~)%)CPSSPBMW&PFbR4S(@sj2j;d?pDkf8@WK zr2f@TSN(^R)$>G+{+EWUIYhbg;s~`Dt@DScs*=yqS2ENiIA#40WU8Aw;Mlz}QFRbC zy*WwU7DavJ_W5cVHTyd(Q1{ztkN=%T>N!Gqd*xwuA#Iak73w@n_E%J>5kv>&V~f=` zs`sy1q82)EHh;8Iof+PUfT?c8kizFm-zwGR&t0W%bzl&G_o-?KmHIC~p=J{zr@#Mt z^#=$1-}9V`Cj^fTPbeNc9tWN^?hCl$%oSS{9O z#9DbPR*SJ20as=vX;H@e;6hm(rwxLOZHUui;9{@ELEMP8a$3CB#nyt@wOL+ZW>NfP4CDWj?+Tqrg$v`XEAtP~1&CGlFk z?L1EB9Jwq(TM8$-z(OY_C8FOgvPYt}%BGFMc`C1`XkGmEiJF&eg&_PSr=@C9a&Ry0 zNn1fC!VwEZ$rHfvrJ238Z&moxxc*uReCg%>F#4)I(qF5BFO5#p>_k`PxB(cj5l&^~ zaOhSK&=PG%L^WndHVx21Z0itIhX-t*AE2$U8RxUCO@n;pK=1?S^d~7=tbfZu?F5Ae z4r)1PkmkbX-Y{7E?+|!id5V?*&s(3O^+u*BcMRA5W;3EMn~t#=5!k3wvOGQl>v2$a zOhu>b<$zS}dAQ#pMvd}Zs`fF?lO1V5rSf>1wu+DG@gub_Y%Rza&l)4~XO7YqknLnS zu7fgi47%Esj;>w=&Xr$}(VYIjr)!}h({ga@hnFB)Vg>LiKvv168a&GHV8i1CU$O&y zq=NX|!A96e-jJ51{p{l-)Zin7g4rAod~fg)%y>HRZ-SR(#%yK*a(z>uo8i3Aia8{inB_NGFyzMy&JC>s`2DLL zvq4T8t^9))%={*qH(87Iaagm8rQ#A{Vix1v(!^d=PFOJWIo-7Ky*MRJ%zTcFCT9IN zEO@yh>QCQKn7N21UlTJ0rga6XH9$W{UQbkMmVi znp>;DZN|hb#)+(nnO}sA*2K)`4A;cW_afCbG4nb8nwa?qEqkmEqmfg!A=5bHwF-GH zn2m7eYvsRh!OZ7ez{+oyX$4xW$AR!|l39%7yNSK16v$#0<0x;ES&XB+6`z$`A?B;b zEzBf;2LF6Kcq=pgvk+Oe$!9a1Yn%8Qg_toF~mJDAn@@G${5DLXNnnL~3-$uLW$_Fxb_m~(Ofe?! zv0zr?#L>#1B)3D&#}_Fpxu*CIX0_K@HWaM?%n9GTX zmFt$ynII>%pR57rNR@d^9{dY(x?BVDkUOWiUEpPSdom(KsCeNnY!^Ei%cC=KjPH|S z_i2MXuVKUXLmxWB5krvO@P8Q)3`9II=hs=X_&&7Ff2rWEvRF3A%j5yzi$2gPaH8yfhh81aZDN8OY(qfg4 zW8|-kw1G5D?khsJohADg;|O|eXy9!fk7gY*xsT-{kdg0f<>Hb&TCBxRvrZ6hbz(G* zOMYj^N}YkN{CMCE!Pjrh9|&wiBqAS=} z2KflWjTg(tjhtsJTVV||=PW@nPNtP;J~Xkf1f#Szu`7&cx%HRiA3@HPX{EfMgMJb9?FK{mKY`LLSn|oIy^(-b^OOaZ(!n^pTHhb4UK|UpmXQPqd3=V`_?tV}F zP-JanAn;!~fe+4E3h-9BeYTdsSHzEIYa=81e?Bl~jQ(k`pOnry+EmZ?7V*9 zxAFn7M{a-^EtaR|V3PhSTj#)C7Rj`^@L+2XHsL3W0=WoeIwd!t@XSQ2m=kR9GjOfa z{A*5@Jj&8D<+Zum(z|Re#E($Z=%pU#?D$O)5;-)U0AN| zqGA~~55985pEgf>DT1Dqryjx0jc+eG^424`SQSXma;>+G?<)mz@^Vm$h7CLF;^ymayVx0!Hv@b7RoV0QJz7kEJ&}te>pQgN^_Wj;{&ce*Ap)+JuPaJfY4VBm`d$5Ja>P#O+%C5-F1!YLcn) zjmLi1O=q3vVM2QoSHotHe=k~72w#VAe+*au{Qv)D*<@RMZ?|c~-8-Fi5{ws~Q3$ul zi927~`F5GRJ_@v}H@L%ZLOvDfM-#OG^#S@PP*A%!&{-1&wO@mFU(il;N@M^Xzu{+v zpvV@8#{>qY{- z(y2cRsIgN&7igXT76YqcARpwXK@E;059qfh3U=~Qbg}@nm7Nl!f$p}B!YByHk{#|1~?zbCX4c$hwj5Wi&RBY@RRzhjU72J0>5{GBsR(?h8MMuSj z*KRylmgv(`e;GWx`Wf6M2<5`Y%R$~o<1e#FYs`T=?d) zBJOTcN32%LPhRZ>=ew?m3ke+#-0ip$cADGQKd<pTT5W;)2p-o%~oZ|)+<+McG{X@ zvsGRiTQAa9-96~^swFi;W{c9Y#<}d#wR6>yIpV*DxW#yr5(&@icTOl-wPdzXJu{}S zN;ky||4ls4CZ1>P$nD`DT$cD$g1B*Me23!6!BcX1qCM9yRsW)T+@9=Cy!{&E0SMYr zX&I@F317HGT5MhV=~3w!-uVe9T!||)N*hIEC0nY4rSwkCD;;Vt=h57>4DTFh1!ZIF zMx|zWXRzMbmD3YGbiH8yhLa;nI%UIihj4M;r>?-RTwwFvJ<-+~R%i6mt9ZOL4Gp z#=Soz@sZml-o<^RcyZd^U|YE-$eaCvdv}P_8l=G98>YS83r@s$EO-+(bMF$y@cgLA z-*+e?QnW7USg^yGn(rFA4RUV5-^bls&HGpJebmk0Zo%JwgXim)O3)jZ_`ONpWNgfL zMb>v(T5s&nkM&RP#7~*MX{>aM-HTcKxlr$(4bgX3qgT~Wmx{EveOG+fFIAYDqZX`M zusS4>3yD?LqkOA;BNjij`1++}QzAw@8nX0oNG{%+kp(|B)S_D8pWJSkAP|_%eX=^?v=)-(e8z@ zo>=)+!tVK&fy9-So||r_|GS%%V7F#LDiIFdD@%;cqh0P*mZzKi)L4^mOfN|765knW z#-jxZG|7+!lj(lrY{5K7-CaV-ppV|QrO)A*q@QPDaK zz093>6^|{gI@cFA#O+( z2V0(>{E(M)BVy@;^jE{bG_A*;%jVAPn=x)xjduDkzUbnsmv$O~rP&V8Lqf}HIlpwE z5>3e^lc&cbAfBNxh5RX!yNYpq=!`+duo>zsRy0DHR@Md)U-@4LXs{ zPb#9;5?Ub=?)?u%)KEQyf`-4h4A)Rf(9()-HU54qGiYAWWH4! zn*2$9pVq{erh>m=PGs2*r*Ko3k>+3vBNLLa;aadbGPk!wc!I-H8{YLt-WVAM+#~32 ze)RH{B8j?qpsO~#?T=pm5Mb9J+~tovvt0mpXRI_#i(as-2GA9R75eR&B1&6=ft|y! zqVEx5M)XE^LK<}q8ox{Qs?QSIbk$^Lwv64_kLbRZ+CMznEv_jiSeep>{oRD<{U++s z*NtDAd*lf)n#{S%1+C|zyEG9;alKI@Dh+czJ;C*W8^*i=3pC*(buX~eP$@ivjcMCG zG{vah-Yczsh|uayGfB_G#NKG&IurN(VxcC;2=^J=w@;+Uji0v?#53tNA$kQ0>j^$M zD+oW0eixhWdz>?#+nuP~$T42qJ(9jK&hB0~=IAh?bv3!l_mHnU2;3!z-vOS#=O+FT zxMCMDCIrEuyZ}7D$#`Z@7ENk-d(U>lvRm}dLONv}c_)j$ZMphRlrv^-uF$685z>b4 zY4bHPtHMY)SVVUkRRv>(|MNrziDe{K-g_|OyaM1{uWwlaFA z<;AwdFlsg4JpCJ5YYaLw9;MmxGf&dumK$fr5FKhM{OXiSON`{N$5DnRjdx_i&Sr^#6CNt{`%q+}&HD;pNdE4h^1_i-fDc68Y{SZJ@JwHA=Iu&j03 zB*)}Yveydm3@n5V5a$o4&G$pNT0X{NO`*uOBG`&-E8>sJ{Sc#5@=PA}aar-WY`D-) z!&t=##61Q+S94I&5f8=Dzv#!ZwkbWp@9?;H&tkd zq1Gl##^Q-@k_}^Nc;EJELVF$5b>+cDnKE5yPXO~L4_3DVUqHKFUW9mrK2vDx!P+9T z$I--yyxWDQJ23$H*f@;-+MV*1aWn_>j;;C>ar#L*4Tjb67AZHc=LJ@}D(jbsB z%)S+x-(5oAX6!i4$Z@vI=J6EIadU7y%|hIyOh5$W$-)VgLWgC|1p08W88*Q|K5Uvu zcbXC7T#E?lXHrsZ-kR$)mengQf+n(?EW0;8N}@Hm&qT@xuifLQXSSf*sqVIL%N|o$KX^66&p) zkwVTbGNP1n(l}6_?dmM9656g{SL%a$o>0dTI@P5#oZ6pUUrK@XrAp7mbYEb{TS~Y} z{Q__OMcGO8Mc|&@${tjLf!=$SKN5W#`0yR&IMMBam-i`$i2e~+^d8GS6L7!J{6m3v z4k&*nY7X3UNLi{Ndw%`_)29U<`AB(_kj;i1fxK3W+CUXPP1c-Jk^}lD${C$b%I{Ao zhhtJ4;cFe*EJv3?4rPENS^H0Us7-k&JgRh-BjZ6?a#C40j6+=gn?eqy!9i!0a6#lK z5e|ieUOmn9W(WPKIGOGSotJ_7os2!D^fwoSdR+-jJf#e9(&KXZS!D|OFacH^s5ErP{;0e(8-{2g7FO5|9fQ;y)S?By)uxh z1AqQr>EkTt=vNO2a&#G@DBKSg<;9>L2QgysO(L%i^(#R`71fgCg`!@#g>*EK`m++@ zq*H;c>&iYSeIw6@sl~KR4s)naP(@&`L!C=BSGt|*aqMV6IMuO~6&S3k2~OnCvTo{p zs+2prsl!~n2-FubNnHjy=ywV>>tN^F<&AFY3M`AjifHv-jS2%_C8$4Ps}6kbR{eyG zI?JO*bfd*`ex`bnisj5Kbp)-I&t<`LYv8*q_3utP9@w9wo+jE7cx9McM3f`H9gHMIqz z7O1Tb+7vi^k9v}j=3c#5T}bPszF57BQUXgCtINrBm3=CMU{-h!B)1Omuh2e7G3diNdrQwRe)g_SrT;v@M zvfZmk%V(4IY05Q+Je92Xq9S=cSxG}%CWdu+$Ta698p04{)#YtCh z{bfg9Arg-1O&;&9Kh6QuNB==Zz?5X_a~x*=Wbg5EUnY8EX40Ve=}f&EAv7jScM=_! zCH>*oOri2jHac71U(axuS=3aI*oD*566DcgLGAYb`Z7e;tO3vp?#QN-lp%U?plyJ@ z7THJE4&qr3tQn;LcbLOWvvSQ)klF%I57qmiE|hN!)4#+B8-|0rPQJlSiaa(P&ta>K z83D9jW{=RHM{wSo^qg}Im^$G#e& zMawf@Jw75QNr#q#24-4!^Or-z4?55m!%H&hjW{K-S<$gLXMuWw@1clhvOnp;(% z>crrq*jorbkgw&*zmCQFNs#Bq>QiI*eSj&B<~7_D%gN(Fwnl?GMSKl%QJ{I8 zK2W7Wfs+&PJTU1=#d?94-**JHv6JA2-=o=aUf_{p{RhSW6ppGvy4fr7whgmh+rV4- zyt`QP%zxO1F)G2U-p=1=!_4R1#>P(-d8oK80t;|GW?>(0>Sfd<-S6j`%p#9O6-l83 zvx3>202~uK=`x-U{8;ED%$UtgLqTupvl}k%?3mM#g;{>34MTpc;JjoP_?Hc{L9Pt# z{H-?3d{i-$^<+P9ly_Y6>!6@f1BhM(+$ue({BOHu8}v`pbUKrk08iHT1Ne8mH>ne$LW%p$Z#jBV6d( z`MYeG`JB$}{5BhAJ|FGv{D0Xn_%d^v9)kr~HBC?U7LL9t%euS)Sh|c4%Z(88b1iL= zKSSKshK^)b+!msww)m{Z8-<0xg?tHcF$k9Yvo=1<^G0IHGj6qE{I5jjmg_O)T$o!z zK32jB&%&(4+l_^ppN{>-!p!IG$BviCjpY~{m-7~x)lTC?Xkk|4{m8;zso9+*|oaZJ7B*Rk!l_cxJcXju%Q6hW+V+-!NGO zHt;cO3kz#F>C(yfYPqVju}P%Z6E=`9b;ME}11aR_MtwT%uTJSZu320y6EB=b6g| zik+*;q?sTmbndvpoitreX0qp3OvbMy%yC7Fi@!92d`O-LIh%hKVHtTBWUBy)#tV~=fUk$%^0BqAfcwk*J1|*) zl2vH3YoI+TX*Y5u-Tntr?}h&o z*_{jk-p_S?XwHTLua?bKdKw=SKdsV7#qcj|V9Xr-lVI1$q&xMg-Y;$B10dfPT0iXN zBj6~x24XZzp1c#2v|nDo6X7yb=FdX}+k3DU|F6iCwII_0xdx4Q3`)qNki*ZwwM+BA za{9|7EIme^pQkUq#nwWcsq$rQHMrl(HQbz)&DH1yCaC&X566R*RW9>uAcR#|qwk>c zGU_hGN^>CpF8$?bs*@-0$6<_5HG?EQfHP*EyzK$KkAu%Kd9s`-Me;$W@KP(1n?Z4K zzQDQi0X;r&`T_l6q8_s9K}cSek3EPp+7P*oo0akyH#zbOH@l>FIhrC_!p%&1-*P?v Fe*u32L-+sy diff --git a/Software/TTS_FT25/Debug/TTS_FT25.list b/Software/TTS_FT25/Debug/TTS_FT25.list index 0b8967a..1e5b38a 100644 --- a/Software/TTS_FT25/Debug/TTS_FT25.list +++ b/Software/TTS_FT25/Debug/TTS_FT25.list @@ -5,25 +5,25 @@ Sections: Idx Name Size VMA LMA File off Algn 0 .isr_vector 000000c0 08000000 08000000 00001000 2**0 CONTENTS, ALLOC, LOAD, READONLY, DATA - 1 .text 00006170 080000c0 080000c0 000010c0 2**2 + 1 .text 00006184 080000c0 080000c0 000010c0 2**2 CONTENTS, ALLOC, LOAD, READONLY, CODE - 2 .rodata 0000170c 08006230 08006230 00007230 2**2 + 2 .rodata 0000170c 08006244 08006244 00007244 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA - 3 .ARM.extab 00000000 0800793c 0800793c 0000900c 2**0 + 3 .ARM.extab 00000000 08007950 08007950 0000900c 2**0 CONTENTS, READONLY - 4 .ARM 00000008 0800793c 0800793c 0000893c 2**2 + 4 .ARM 00000008 08007950 08007950 00008950 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA - 5 .preinit_array 00000000 08007944 08007944 0000900c 2**0 + 5 .preinit_array 00000000 08007958 08007958 0000900c 2**0 CONTENTS, ALLOC, LOAD, DATA - 6 .init_array 00000004 08007944 08007944 00008944 2**2 + 6 .init_array 00000004 08007958 08007958 00008958 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA - 7 .fini_array 00000004 08007948 08007948 00008948 2**2 + 7 .fini_array 00000004 0800795c 0800795c 0000895c 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA - 8 .data 0000000c 20000000 0800794c 00009000 2**2 + 8 .data 0000000c 20000000 08007960 00009000 2**2 CONTENTS, ALLOC, LOAD, DATA - 9 .bss 0000089c 2000000c 08007958 0000900c 2**2 + 9 .bss 0000089c 2000000c 0800796c 0000900c 2**2 ALLOC - 10 ._user_heap_stack 00000600 200008a8 08007958 000098a8 2**0 + 10 ._user_heap_stack 00000600 200008a8 0800796c 000098a8 2**0 ALLOC 11 .ARM.attributes 00000028 00000000 00000000 0000900c 2**0 CONTENTS, READONLY @@ -37,15 +37,15 @@ Idx Name Size VMA LMA File off Algn CONTENTS, READONLY, DEBUGGING, OCTETS 16 .debug_macro 00018401 00000000 00000000 00014ae4 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 17 .debug_line 0000c415 00000000 00000000 0002cee5 2**0 + 17 .debug_line 0000c418 00000000 00000000 0002cee5 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 18 .debug_str 00088c39 00000000 00000000 000392fa 2**0 + 18 .debug_str 00088c39 00000000 00000000 000392fd 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 19 .comment 00000043 00000000 00000000 000c1f33 2**0 + 19 .comment 00000043 00000000 00000000 000c1f36 2**0 CONTENTS, READONLY - 20 .debug_frame 000020bc 00000000 00000000 000c1f78 2**2 + 20 .debug_frame 000020bc 00000000 00000000 000c1f7c 2**2 CONTENTS, READONLY, DEBUGGING, OCTETS - 21 .debug_line_str 0000007f 00000000 00000000 000c4034 2**0 + 21 .debug_line_str 0000007f 00000000 00000000 000c4038 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS Disassembly of section .text: @@ -67,7 +67,7 @@ Disassembly of section .text: 80000da: bd10 pop {r4, pc} 80000dc: 2000000c .word 0x2000000c 80000e0: 00000000 .word 0x00000000 - 80000e4: 08006218 .word 0x08006218 + 80000e4: 0800622c .word 0x0800622c 080000e8 : 80000e8: 4b04 ldr r3, [pc, #16] @ (80000fc ) @@ -82,7 +82,7 @@ Disassembly of section .text: 80000fa: 46c0 nop @ (mov r8, r8) 80000fc: 00000000 .word 0x00000000 8000100: 20000010 .word 0x20000010 - 8000104: 08006218 .word 0x08006218 + 8000104: 0800622c .word 0x0800622c 08000108 <__udivsi3>: 8000108: 2200 movs r2, #0 @@ -2738,7 +2738,7 @@ Disassembly of section .text: 800159e: 46c0 nop @ (mov r8, r8) 80015a0: 000007ff .word 0x000007ff 80015a4: fffffc01 .word 0xfffffc01 - 80015a8: 08006230 .word 0x08006230 + 80015a8: 08006244 .word 0x08006244 80015ac: fffff801 .word 0xfffff801 80015b0: 000003f3 .word 0x000003f3 80015b4: fffffc0d .word 0xfffffc0d @@ -4375,28 +4375,28 @@ void HTPA_Init(I2C_HandleTypeDef *hi2c){ 8002294: 601a str r2, [r3, #0] eeprom_float[0] = HTPA_ReadEEPROM_byte(0x0000); 8002296: 2000 movs r0, #0 - 8002298: f000 ff52 bl 8003140 + 8002298: f000 ff5c bl 8003154 800229c: 0003 movs r3, r0 800229e: 001a movs r2, r3 80022a0: 197b adds r3, r7, r5 80022a2: 701a strb r2, [r3, #0] eeprom_float[1] = HTPA_ReadEEPROM_byte(0x0001); 80022a4: 2001 movs r0, #1 - 80022a6: f000 ff4b bl 8003140 + 80022a6: f000 ff55 bl 8003154 80022aa: 0003 movs r3, r0 80022ac: 001a movs r2, r3 80022ae: 197b adds r3, r7, r5 80022b0: 705a strb r2, [r3, #1] eeprom_float[2] = HTPA_ReadEEPROM_byte(0x0002); 80022b2: 2002 movs r0, #2 - 80022b4: f000 ff44 bl 8003140 + 80022b4: f000 ff4e bl 8003154 80022b8: 0003 movs r3, r0 80022ba: 001a movs r2, r3 80022bc: 197b adds r3, r7, r5 80022be: 709a strb r2, [r3, #2] eeprom_float[3] = HTPA_ReadEEPROM_byte(0x0003); 80022c0: 2003 movs r0, #3 - 80022c2: f000 ff3d bl 8003140 + 80022c2: f000 ff47 bl 8003154 80022c6: 0003 movs r3, r0 80022c8: 001a movs r2, r3 80022ca: 197b adds r3, r7, r5 @@ -4408,28 +4408,28 @@ void HTPA_Init(I2C_HandleTypeDef *hi2c){ 80022d4: 601a str r2, [r3, #0] eeprom_float[0] = HTPA_ReadEEPROM_byte(0x0004); 80022d6: 2004 movs r0, #4 - 80022d8: f000 ff32 bl 8003140 + 80022d8: f000 ff3c bl 8003154 80022dc: 0003 movs r3, r0 80022de: 001a movs r2, r3 80022e0: 197b adds r3, r7, r5 80022e2: 701a strb r2, [r3, #0] eeprom_float[1] = HTPA_ReadEEPROM_byte(0x0005); 80022e4: 2005 movs r0, #5 - 80022e6: f000 ff2b bl 8003140 + 80022e6: f000 ff35 bl 8003154 80022ea: 0003 movs r3, r0 80022ec: 001a movs r2, r3 80022ee: 197b adds r3, r7, r5 80022f0: 705a strb r2, [r3, #1] eeprom_float[2] = HTPA_ReadEEPROM_byte(0x0006); 80022f2: 2006 movs r0, #6 - 80022f4: f000 ff24 bl 8003140 + 80022f4: f000 ff2e bl 8003154 80022f8: 0003 movs r3, r0 80022fa: 001a movs r2, r3 80022fc: 197b adds r3, r7, r5 80022fe: 709a strb r2, [r3, #2] eeprom_float[3] = HTPA_ReadEEPROM_byte(0x0007); 8002300: 2007 movs r0, #7 - 8002302: f000 ff1d bl 8003140 + 8002302: f000 ff27 bl 8003154 8002306: 0003 movs r3, r0 8002308: 001a movs r2, r3 800230a: 197b adds r3, r7, r5 @@ -4441,20 +4441,20 @@ void HTPA_Init(I2C_HandleTypeDef *hi2c){ 8002314: 601a str r2, [r3, #0] gradscale = HTPA_ReadEEPROM_byte(0x0008); 8002316: 2008 movs r0, #8 - 8002318: f000 ff12 bl 8003140 + 8002318: f000 ff1c bl 8003154 800231c: 0003 movs r3, r0 800231e: 001a movs r2, r3 8002320: 4bbf ldr r3, [pc, #764] @ (8002620 ) 8002322: 701a strb r2, [r3, #0] tablenumber = HTPA_ReadEEPROM_byte(0x000C) << 8 | HTPA_ReadEEPROM_byte(0x000B); 8002324: 200c movs r0, #12 - 8002326: f000 ff0b bl 8003140 + 8002326: f000 ff15 bl 8003154 800232a: 0003 movs r3, r0 800232c: b21b sxth r3, r3 800232e: 021b lsls r3, r3, #8 8002330: b21c sxth r4, r3 8002332: 200b movs r0, #11 - 8002334: f000 ff04 bl 8003140 + 8002334: f000 ff0e bl 8003154 8002338: 0003 movs r3, r0 800233a: b21b sxth r3, r3 800233c: 4323 orrs r3, r4 @@ -4464,27 +4464,27 @@ void HTPA_Init(I2C_HandleTypeDef *hi2c){ 8002344: 801a strh r2, [r3, #0] epsilon = HTPA_ReadEEPROM_byte(0x000D); 8002346: 200d movs r0, #13 - 8002348: f000 fefa bl 8003140 + 8002348: f000 ff04 bl 8003154 800234c: 0003 movs r3, r0 800234e: 001a movs r2, r3 8002350: 4bb5 ldr r3, [pc, #724] @ (8002628 ) 8002352: 701a strb r2, [r3, #0] arraytype = HTPA_ReadEEPROM_byte(0x0022); 8002354: 2022 movs r0, #34 @ 0x22 - 8002356: f000 fef3 bl 8003140 + 8002356: f000 fefd bl 8003154 800235a: 0003 movs r3, r0 800235c: 001a movs r2, r3 800235e: 4bb3 ldr r3, [pc, #716] @ (800262c ) 8002360: 701a strb r2, [r3, #0] vddth1 = HTPA_ReadEEPROM_byte(0x0027) << 8 | HTPA_ReadEEPROM_byte(0x0026); 8002362: 2027 movs r0, #39 @ 0x27 - 8002364: f000 feec bl 8003140 + 8002364: f000 fef6 bl 8003154 8002368: 0003 movs r3, r0 800236a: b21b sxth r3, r3 800236c: 021b lsls r3, r3, #8 800236e: b21c sxth r4, r3 8002370: 2026 movs r0, #38 @ 0x26 - 8002372: f000 fee5 bl 8003140 + 8002372: f000 feef bl 8003154 8002376: 0003 movs r3, r0 8002378: b21b sxth r3, r3 800237a: 4323 orrs r3, r4 @@ -4494,13 +4494,13 @@ void HTPA_Init(I2C_HandleTypeDef *hi2c){ 8002382: 801a strh r2, [r3, #0] vddth2 = HTPA_ReadEEPROM_byte(0x0029) << 8 | HTPA_ReadEEPROM_byte(0x0028); 8002384: 2029 movs r0, #41 @ 0x29 - 8002386: f000 fedb bl 8003140 + 8002386: f000 fee5 bl 8003154 800238a: 0003 movs r3, r0 800238c: b21b sxth r3, r3 800238e: 021b lsls r3, r3, #8 8002390: b21c sxth r4, r3 8002392: 2028 movs r0, #40 @ 0x28 - 8002394: f000 fed4 bl 8003140 + 8002394: f000 fede bl 8003154 8002398: 0003 movs r3, r0 800239a: b21b sxth r3, r3 800239c: 4323 orrs r3, r4 @@ -4510,7 +4510,7 @@ void HTPA_Init(I2C_HandleTypeDef *hi2c){ 80023a4: 801a strh r2, [r3, #0] eeprom_float[0] = HTPA_ReadEEPROM_byte(0x0034); 80023a6: 2034 movs r0, #52 @ 0x34 - 80023a8: f000 feca bl 8003140 + 80023a8: f000 fed4 bl 8003154 80023ac: 0003 movs r3, r0 80023ae: 001a movs r2, r3 80023b0: 002c movs r4, r5 @@ -4518,21 +4518,21 @@ void HTPA_Init(I2C_HandleTypeDef *hi2c){ 80023b4: 701a strb r2, [r3, #0] eeprom_float[1] = HTPA_ReadEEPROM_byte(0x0035); 80023b6: 2035 movs r0, #53 @ 0x35 - 80023b8: f000 fec2 bl 8003140 + 80023b8: f000 fecc bl 8003154 80023bc: 0003 movs r3, r0 80023be: 001a movs r2, r3 80023c0: 193b adds r3, r7, r4 80023c2: 705a strb r2, [r3, #1] eeprom_float[2] = HTPA_ReadEEPROM_byte(0x0036); 80023c4: 2036 movs r0, #54 @ 0x36 - 80023c6: f000 febb bl 8003140 + 80023c6: f000 fec5 bl 8003154 80023ca: 0003 movs r3, r0 80023cc: 001a movs r2, r3 80023ce: 193b adds r3, r7, r4 80023d0: 709a strb r2, [r3, #2] eeprom_float[3] = HTPA_ReadEEPROM_byte(0x0037); 80023d2: 2037 movs r0, #55 @ 0x37 - 80023d4: f000 feb4 bl 8003140 + 80023d4: f000 febe bl 8003154 80023d8: 0003 movs r3, r0 80023da: 001a movs r2, r3 80023dc: 193b adds r3, r7, r4 @@ -4544,28 +4544,28 @@ void HTPA_Init(I2C_HandleTypeDef *hi2c){ 80023e6: 601a str r2, [r3, #0] eeprom_float[0] = HTPA_ReadEEPROM_byte(0x0038); 80023e8: 2038 movs r0, #56 @ 0x38 - 80023ea: f000 fea9 bl 8003140 + 80023ea: f000 feb3 bl 8003154 80023ee: 0003 movs r3, r0 80023f0: 001a movs r2, r3 80023f2: 193b adds r3, r7, r4 80023f4: 701a strb r2, [r3, #0] eeprom_float[1] = HTPA_ReadEEPROM_byte(0x0039); 80023f6: 2039 movs r0, #57 @ 0x39 - 80023f8: f000 fea2 bl 8003140 + 80023f8: f000 feac bl 8003154 80023fc: 0003 movs r3, r0 80023fe: 001a movs r2, r3 8002400: 193b adds r3, r7, r4 8002402: 705a strb r2, [r3, #1] eeprom_float[2] = HTPA_ReadEEPROM_byte(0x003A); 8002404: 203a movs r0, #58 @ 0x3a - 8002406: f000 fe9b bl 8003140 + 8002406: f000 fea5 bl 8003154 800240a: 0003 movs r3, r0 800240c: 001a movs r2, r3 800240e: 193b adds r3, r7, r4 8002410: 709a strb r2, [r3, #2] eeprom_float[3] = HTPA_ReadEEPROM_byte(0x003B); 8002412: 203b movs r0, #59 @ 0x3b - 8002414: f000 fe94 bl 8003140 + 8002414: f000 fe9e bl 8003154 8002418: 0003 movs r3, r0 800241a: 001a movs r2, r3 800241c: 193b adds r3, r7, r4 @@ -4577,13 +4577,13 @@ void HTPA_Init(I2C_HandleTypeDef *hi2c){ 8002426: 601a str r2, [r3, #0] ptatth1 = HTPA_ReadEEPROM_byte(0x003D) << 8 | HTPA_ReadEEPROM_byte(0x003C); 8002428: 203d movs r0, #61 @ 0x3d - 800242a: f000 fe89 bl 8003140 + 800242a: f000 fe93 bl 8003154 800242e: 0003 movs r3, r0 8002430: b21b sxth r3, r3 8002432: 021b lsls r3, r3, #8 8002434: b21c sxth r4, r3 8002436: 203c movs r0, #60 @ 0x3c - 8002438: f000 fe82 bl 8003140 + 8002438: f000 fe8c bl 8003154 800243c: 0003 movs r3, r0 800243e: b21b sxth r3, r3 8002440: 4323 orrs r3, r4 @@ -4593,13 +4593,13 @@ void HTPA_Init(I2C_HandleTypeDef *hi2c){ 8002448: 801a strh r2, [r3, #0] ptatth2 = HTPA_ReadEEPROM_byte(0x003F) << 8 | HTPA_ReadEEPROM_byte(0x003E); 800244a: 203f movs r0, #63 @ 0x3f - 800244c: f000 fe78 bl 8003140 + 800244c: f000 fe82 bl 8003154 8002450: 0003 movs r3, r0 8002452: b21b sxth r3, r3 8002454: 021b lsls r3, r3, #8 8002456: b21c sxth r4, r3 8002458: 203e movs r0, #62 @ 0x3e - 800245a: f000 fe71 bl 8003140 + 800245a: f000 fe7b bl 8003154 800245e: 0003 movs r3, r0 8002460: b21b sxth r3, r3 8002462: 4323 orrs r3, r4 @@ -4609,34 +4609,34 @@ void HTPA_Init(I2C_HandleTypeDef *hi2c){ 800246a: 801a strh r2, [r3, #0] vddscgrad = HTPA_ReadEEPROM_byte(0x004E); 800246c: 204e movs r0, #78 @ 0x4e - 800246e: f000 fe67 bl 8003140 + 800246e: f000 fe71 bl 8003154 8002472: 0003 movs r3, r0 8002474: 001a movs r2, r3 8002476: 4b74 ldr r3, [pc, #464] @ (8002648 ) 8002478: 701a strb r2, [r3, #0] vddscoff = HTPA_ReadEEPROM_byte(0x004F); 800247a: 204f movs r0, #79 @ 0x4f - 800247c: f000 fe60 bl 8003140 + 800247c: f000 fe6a bl 8003154 8002480: 0003 movs r3, r0 8002482: 001a movs r2, r3 8002484: 4b71 ldr r3, [pc, #452] @ (800264c ) 8002486: 701a strb r2, [r3, #0] globaloff = HTPA_ReadEEPROM_byte(0x0054); 8002488: 2054 movs r0, #84 @ 0x54 - 800248a: f000 fe59 bl 8003140 + 800248a: f000 fe63 bl 8003154 800248e: 0003 movs r3, r0 8002490: b25a sxtb r2, r3 8002492: 4b6f ldr r3, [pc, #444] @ (8002650 ) 8002494: 701a strb r2, [r3, #0] globalgain = HTPA_ReadEEPROM_byte(0x0056) << 8 | HTPA_ReadEEPROM_byte(0x0055); 8002496: 2056 movs r0, #86 @ 0x56 - 8002498: f000 fe52 bl 8003140 + 8002498: f000 fe5c bl 8003154 800249c: 0003 movs r3, r0 800249e: b21b sxth r3, r3 80024a0: 021b lsls r3, r3, #8 80024a2: b21c sxth r4, r3 80024a4: 2055 movs r0, #85 @ 0x55 - 80024a6: f000 fe4b bl 8003140 + 80024a6: f000 fe55 bl 8003154 80024aa: 0003 movs r3, r0 80024ac: b21b sxth r3, r3 80024ae: 4323 orrs r3, r4 @@ -4646,7 +4646,7 @@ void HTPA_Init(I2C_HandleTypeDef *hi2c){ 80024b6: 801a strh r2, [r3, #0] nrofdefpix = HTPA_ReadEEPROM_byte(0x007F); 80024b8: 207f movs r0, #127 @ 0x7f - 80024ba: f000 fe41 bl 8003140 + 80024ba: f000 fe4b bl 8003154 80024be: 0003 movs r3, r0 80024c0: 001a movs r2, r3 80024c2: 4b65 ldr r3, [pc, #404] @ (8002658 ) @@ -4670,7 +4670,7 @@ void HTPA_Init(I2C_HandleTypeDef *hi2c){ 80024e0: 4463 add r3, ip 80024e2: b29b uxth r3, r3 80024e4: 0018 movs r0, r3 - 80024e6: f000 fe2b bl 8003140 + 80024e6: f000 fe35 bl 8003154 80024ea: 0003 movs r3, r0 80024ec: b21b sxth r3, r3 80024ee: 021b lsls r3, r3, #8 @@ -4686,7 +4686,7 @@ void HTPA_Init(I2C_HandleTypeDef *hi2c){ 8002502: 18db adds r3, r3, r3 8002504: b29b uxth r3, r3 8002506: 0018 movs r0, r3 - 8002508: f000 fe1a bl 8003140 + 8002508: f000 fe24 bl 8003154 800250c: 0003 movs r3, r0 800250e: b21b sxth r3, r3 8002510: 197a adds r2, r7, r5 @@ -4728,7 +4728,7 @@ void HTPA_Init(I2C_HandleTypeDef *hi2c){ 800254c: 4463 add r3, ip 800254e: b29b uxth r3, r3 8002550: 0018 movs r0, r3 - 8002552: f000 fdf5 bl 8003140 + 8002552: f000 fdff bl 8003154 8002556: 0003 movs r3, r0 8002558: b21b sxth r3, r3 800255a: 021b lsls r3, r3, #8 @@ -4744,7 +4744,7 @@ void HTPA_Init(I2C_HandleTypeDef *hi2c){ 800256e: 18db adds r3, r3, r3 8002570: b29b uxth r3, r3 8002572: 0018 movs r0, r3 - 8002574: f000 fde4 bl 8003140 + 8002574: f000 fdee bl 8003154 8002578: 0003 movs r3, r0 800257a: b21b sxth r3, r3 800257c: 197a adds r2, r7, r5 @@ -4786,7 +4786,7 @@ void HTPA_Init(I2C_HandleTypeDef *hi2c){ 80025b8: 4463 add r3, ip 80025ba: b29b uxth r3, r3 80025bc: 0018 movs r0, r3 - 80025be: f000 fdbf bl 8003140 + 80025be: f000 fdc9 bl 8003154 80025c2: 0003 movs r3, r0 80025c4: b21b sxth r3, r3 80025c6: 021b lsls r3, r3, #8 @@ -4802,7 +4802,7 @@ void HTPA_Init(I2C_HandleTypeDef *hi2c){ 80025da: 18db adds r3, r3, r3 80025dc: b29b uxth r3, r3 80025de: 0018 movs r0, r3 - 80025e0: f000 fdae bl 8003140 + 80025e0: f000 fdb8 bl 8003154 80025e4: 0003 movs r3, r0 80025e6: b21b sxth r3, r3 80025e8: 197a adds r2, r7, r5 @@ -4868,7 +4868,7 @@ void HTPA_Init(I2C_HandleTypeDef *hi2c){ 8002684: 4463 add r3, ip 8002686: b29b uxth r3, r3 8002688: 0018 movs r0, r3 - 800268a: f000 fd59 bl 8003140 + 800268a: f000 fd63 bl 8003154 800268e: 0003 movs r3, r0 8002690: b21b sxth r3, r3 8002692: 021b lsls r3, r3, #8 @@ -4884,7 +4884,7 @@ void HTPA_Init(I2C_HandleTypeDef *hi2c){ 80026a6: 18db adds r3, r3, r3 80026a8: b29b uxth r3, r3 80026aa: 0018 movs r0, r3 - 80026ac: f000 fd48 bl 8003140 + 80026ac: f000 fd52 bl 8003154 80026b0: 0003 movs r3, r0 80026b2: b21b sxth r3, r3 80026b4: 197a adds r2, r7, r5 @@ -4926,7 +4926,7 @@ void HTPA_Init(I2C_HandleTypeDef *hi2c){ 80026f0: 4463 add r3, ip 80026f2: b29b uxth r3, r3 80026f4: 0018 movs r0, r3 - 80026f6: f000 fd23 bl 8003140 + 80026f6: f000 fd2d bl 8003154 80026fa: 0003 movs r3, r0 80026fc: b21b sxth r3, r3 80026fe: 021b lsls r3, r3, #8 @@ -4942,7 +4942,7 @@ void HTPA_Init(I2C_HandleTypeDef *hi2c){ 8002712: 18db adds r3, r3, r3 8002714: b29b uxth r3, r3 8002716: 0018 movs r0, r3 - 8002718: f000 fd12 bl 8003140 + 8002718: f000 fd1c bl 8003154 800271c: 0003 movs r3, r0 800271e: b21b sxth r3, r3 8002720: 4323 orrs r3, r4 @@ -4973,12 +4973,12 @@ void HTPA_Init(I2C_HandleTypeDef *hi2c){ 8002744: 4b92 ldr r3, [pc, #584] @ (8002990 ) 8002746: 681b ldr r3, [r3, #0] 8002748: 0018 movs r0, r3 - 800274a: f002 f951 bl 80049f0 + 800274a: f002 f95b bl 8004a04 800274e: 1e03 subs r3, r0, #0 8002750: d001 beq.n 8002756 { Error_Handler(); - 8002752: f000 feab bl 80034ac + 8002752: f000 feb5 bl 80034c0 } htpa_hi2c->Init.Timing = 0x00000107; 8002756: 4b8e ldr r3, [pc, #568] @ (8002990 ) @@ -4990,12 +4990,12 @@ void HTPA_Init(I2C_HandleTypeDef *hi2c){ 8002760: 4b8b ldr r3, [pc, #556] @ (8002990 ) 8002762: 681b ldr r3, [r3, #0] 8002764: 0018 movs r0, r3 - 8002766: f002 f89d bl 80048a4 + 8002766: f002 f8a7 bl 80048b8 800276a: 1e03 subs r3, r0, #0 800276c: d001 beq.n 8002772 { Error_Handler(); - 800276e: f000 fe9d bl 80034ac + 800276e: f000 fea7 bl 80034c0 } __HAL_SYSCFG_FASTMODEPLUS_ENABLE(I2C_FASTMODEPLUS_I2C1); 8002772: 4b88 ldr r3, [pc, #544] @ (8002994 ) @@ -5007,7 +5007,7 @@ void HTPA_Init(I2C_HandleTypeDef *hi2c){ 800277e: 601a str r2, [r3, #0] HAL_Delay(100); 8002780: 2064 movs r0, #100 @ 0x64 - 8002782: f001 fb39 bl 8003df8 + 8002782: f001 fb43 bl 8003e0c /* @@ -5016,59 +5016,59 @@ void HTPA_Init(I2C_HandleTypeDef *hi2c){ HTPA_WriteRegister(HTPA_SENSOR_CONFIG, 0x01); // wakeup 8002786: 2101 movs r1, #1 8002788: 2001 movs r0, #1 - 800278a: f000 fc5b bl 8003044 + 800278a: f000 fc65 bl 8003058 HAL_Delay(10); 800278e: 200a movs r0, #10 - 8002790: f001 fb32 bl 8003df8 + 8002790: f001 fb3c bl 8003e0c HTPA_WriteRegister(HTPA_SENSOR_TRIM_1, 0x0C); // bit 5,4 = 00 -> amplification = 0, bit 3-0 = 1100 -> 16bit ADC-Resolution (4 + m=12) 8002794: 210c movs r1, #12 8002796: 2003 movs r0, #3 - 8002798: f000 fc54 bl 8003044 + 8002798: f000 fc5e bl 8003058 HAL_Delay(10); 800279c: 200a movs r0, #10 - 800279e: f001 fb2b bl 8003df8 + 800279e: f001 fb35 bl 8003e0c HTPA_WriteRegister(HTPA_SENSOR_TRIM_2, 0x0C); 80027a2: 210c movs r1, #12 80027a4: 2004 movs r0, #4 - 80027a6: f000 fc4d bl 8003044 + 80027a6: f000 fc57 bl 8003058 HAL_Delay(10); 80027aa: 200a movs r0, #10 - 80027ac: f001 fb24 bl 8003df8 + 80027ac: f001 fb2e bl 8003e0c HTPA_WriteRegister(HTPA_SENSOR_TRIM_3, 0x0C); 80027b0: 210c movs r1, #12 80027b2: 2005 movs r0, #5 - 80027b4: f000 fc46 bl 8003044 + 80027b4: f000 fc50 bl 8003058 HAL_Delay(10); 80027b8: 200a movs r0, #10 - 80027ba: f001 fb1d bl 8003df8 + 80027ba: f001 fb27 bl 8003e0c HTPA_WriteRegister(HTPA_SENSOR_TRIM_4, 0x14); // clock frequency set to 0x14 -> 4.75MHz -> time for quarter frame: ~27ms 80027be: 2114 movs r1, #20 80027c0: 2006 movs r0, #6 - 80027c2: f000 fc3f bl 8003044 + 80027c2: f000 fc49 bl 8003058 HAL_Delay(10); 80027c6: 200a movs r0, #10 - 80027c8: f001 fb16 bl 8003df8 + 80027c8: f001 fb20 bl 8003e0c HTPA_WriteRegister(HTPA_SENSOR_TRIM_5, 0x0C); 80027cc: 210c movs r1, #12 80027ce: 2007 movs r0, #7 - 80027d0: f000 fc38 bl 8003044 + 80027d0: f000 fc42 bl 8003058 HAL_Delay(10); 80027d4: 200a movs r0, #10 - 80027d6: f001 fb0f bl 8003df8 + 80027d6: f001 fb19 bl 8003e0c HTPA_WriteRegister(HTPA_SENSOR_TRIM_6, 0x0C); 80027da: 210c movs r1, #12 80027dc: 2008 movs r0, #8 - 80027de: f000 fc31 bl 8003044 + 80027de: f000 fc3b bl 8003058 HAL_Delay(10); 80027e2: 200a movs r0, #10 - 80027e4: f001 fb08 bl 8003df8 + 80027e4: f001 fb12 bl 8003e0c HTPA_WriteRegister(HTPA_SENSOR_TRIM_7, 0x88); 80027e8: 2188 movs r1, #136 @ 0x88 80027ea: 2009 movs r0, #9 - 80027ec: f000 fc2a bl 8003044 + 80027ec: f000 fc34 bl 8003058 HAL_Delay(10); 80027f0: 200a movs r0, #10 - 80027f2: f001 fb01 bl 8003df8 + 80027f2: f001 fb0b bl 8003e0c /* * Calculations @@ -5356,6 +5356,9 @@ uint32_t HTPA_calcPowerTwo(uint8_t power) { ... 08002a48 : + else + return 2 * HTPA_calcPowerTwo(power / 2) * HTPA_calcPowerTwo(power / 2); +}*/ void HTPA_ReadSensor(uint32_t dataArray[32]) { @@ -5398,25 +5401,25 @@ void HTPA_ReadSensor(uint32_t dataArray[32]) { 8002a80: 781b ldrb r3, [r3, #0] 8002a82: 0019 movs r1, r3 8002a84: 2001 movs r0, #1 - 8002a86: f000 fadd bl 8003044 + 8002a86: f000 fae7 bl 8003058 HAL_Delay(30); // conversion around 27ms in standard config 8002a8a: 201e movs r0, #30 - 8002a8c: f001 f9b4 bl 8003df8 + 8002a8c: f001 f9be bl 8003e0c HTPA_GetStatus(); - 8002a90: f000 fb18 bl 80030c4 + 8002a90: f000 fb22 bl 80030d8 HAL_Delay(5); 8002a94: 2005 movs r0, #5 - 8002a96: f001 f9af bl 8003df8 + 8002a96: f001 f9b9 bl 8003e0c while(htpa_statusReg.eoc != 1) { 8002a9a: e004 b.n 8002aa6 HAL_Delay(5); 8002a9c: 2005 movs r0, #5 - 8002a9e: f001 f9ab bl 8003df8 + 8002a9e: f001 f9b5 bl 8003e0c HTPA_GetStatus(); - 8002aa2: f000 fb0f bl 80030c4 + 8002aa2: f000 fb19 bl 80030d8 while(htpa_statusReg.eoc != 1) { - 8002aa6: 4b78 ldr r3, [pc, #480] @ (8002c88 ) + 8002aa6: 4b7b ldr r3, [pc, #492] @ (8002c94 ) 8002aa8: 78da ldrb r2, [r3, #3] 8002aaa: 2301 movs r3, #1 8002aac: 4053 eors r3, r2 @@ -5427,23 +5430,23 @@ void HTPA_ReadSensor(uint32_t dataArray[32]) { HTPA_ReadRegister(HTPA_SENSOR_READTOP, data_topBlock, 258); 8002ab4: 2381 movs r3, #129 @ 0x81 8002ab6: 005a lsls r2, r3, #1 - 8002ab8: 4b74 ldr r3, [pc, #464] @ (8002c8c ) + 8002ab8: 4b77 ldr r3, [pc, #476] @ (8002c98 ) 8002aba: 0019 movs r1, r3 8002abc: 200a movs r0, #10 - 8002abe: f000 fadf bl 8003080 + 8002abe: f000 fae9 bl 8003094 ptat_topBlock = (data_topBlock[0] << 8) | data_topBlock[1]; - 8002ac2: 4b72 ldr r3, [pc, #456] @ (8002c8c ) + 8002ac2: 4b75 ldr r3, [pc, #468] @ (8002c98 ) 8002ac4: 781b ldrb r3, [r3, #0] 8002ac6: b21b sxth r3, r3 8002ac8: 021b lsls r3, r3, #8 8002aca: b21a sxth r2, r3 - 8002acc: 4b6f ldr r3, [pc, #444] @ (8002c8c ) + 8002acc: 4b72 ldr r3, [pc, #456] @ (8002c98 ) 8002ace: 785b ldrb r3, [r3, #1] 8002ad0: b21b sxth r3, r3 8002ad2: 4313 orrs r3, r2 8002ad4: b21b sxth r3, r3 8002ad6: b29b uxth r3, r3 - 8002ad8: 4a6d ldr r2, [pc, #436] @ (8002c90 ) + 8002ad8: 4a70 ldr r2, [pc, #448] @ (8002c9c ) 8002ada: 8013 strh r3, [r2, #0] /* @@ -5475,19 +5478,19 @@ void HTPA_ReadSensor(uint32_t dataArray[32]) { 8002b04: 781b ldrb r3, [r3, #0] 8002b06: 0019 movs r1, r3 8002b08: 2001 movs r0, #1 - 8002b0a: f000 fa9b bl 8003044 + 8002b0a: f000 faa5 bl 8003058 HAL_Delay(30); // conversion around 27ms in standard config 8002b0e: 201e movs r0, #30 - 8002b10: f001 f972 bl 8003df8 + 8002b10: f001 f97c bl 8003e0c while(htpa_statusReg.eoc != 1) { 8002b14: e004 b.n 8002b20 HAL_Delay(5); 8002b16: 2005 movs r0, #5 - 8002b18: f001 f96e bl 8003df8 + 8002b18: f001 f978 bl 8003e0c HTPA_GetStatus(); - 8002b1c: f000 fad2 bl 80030c4 + 8002b1c: f000 fadc bl 80030d8 while(htpa_statusReg.eoc != 1) { - 8002b20: 4b59 ldr r3, [pc, #356] @ (8002c88 ) + 8002b20: 4b5c ldr r3, [pc, #368] @ (8002c94 ) 8002b22: 78da ldrb r2, [r3, #3] 8002b24: 2301 movs r3, #1 8002b26: 4053 eors r3, r2 @@ -5498,24 +5501,24 @@ void HTPA_ReadSensor(uint32_t dataArray[32]) { HTPA_ReadRegister(HTPA_SENSOR_READTOP, elOffset_topBlock, 258); 8002b2e: 2381 movs r3, #129 @ 0x81 8002b30: 005a lsls r2, r3, #1 - 8002b32: 4b58 ldr r3, [pc, #352] @ (8002c94 ) + 8002b32: 4b5b ldr r3, [pc, #364] @ (8002ca0 ) 8002b34: 0019 movs r1, r3 8002b36: 200a movs r0, #10 - 8002b38: f000 faa2 bl 8003080 + 8002b38: f000 faac bl 8003094 vdd_topBlock = (elOffset_topBlock[0] << 8) | elOffset_topBlock[1]; - 8002b3c: 4b55 ldr r3, [pc, #340] @ (8002c94 ) + 8002b3c: 4b58 ldr r3, [pc, #352] @ (8002ca0 ) 8002b3e: 781b ldrb r3, [r3, #0] 8002b40: b21b sxth r3, r3 8002b42: 021b lsls r3, r3, #8 8002b44: b21a sxth r2, r3 - 8002b46: 4b53 ldr r3, [pc, #332] @ (8002c94 ) + 8002b46: 4b56 ldr r3, [pc, #344] @ (8002ca0 ) 8002b48: 785b ldrb r3, [r3, #1] 8002b4a: b21b sxth r3, r3 8002b4c: 4313 orrs r3, r2 8002b4e: b21b sxth r3, r3 8002b50: b29b uxth r3, r3 - 8002b52: 4a51 ldr r2, [pc, #324] @ (8002c98 ) + 8002b52: 4a54 ldr r2, [pc, #336] @ (8002ca4 ) 8002b54: 8013 strh r3, [r2, #0] /* @@ -5534,7 +5537,7 @@ void HTPA_ReadSensor(uint32_t dataArray[32]) { 8002b5c: 6e7b ldr r3, [r7, #100] @ 0x64 8002b5e: 3361 adds r3, #97 @ 0x61 8002b60: 005a lsls r2, r3, #1 - 8002b62: 4b4a ldr r3, [pc, #296] @ (8002c8c ) + 8002b62: 4b4d ldr r3, [pc, #308] @ (8002c98 ) 8002b64: 5c9b ldrb r3, [r3, r2] 8002b66: b21b sxth r3, r3 8002b68: 021b lsls r3, r3, #8 @@ -5543,13 +5546,13 @@ void HTPA_ReadSensor(uint32_t dataArray[32]) { 8002b6e: 005b lsls r3, r3, #1 8002b70: 33c3 adds r3, #195 @ 0xc3 8002b72: 001a movs r2, r3 - 8002b74: 4b45 ldr r3, [pc, #276] @ (8002c8c ) + 8002b74: 4b48 ldr r3, [pc, #288] @ (8002c98 ) 8002b76: 5c9b ldrb r3, [r3, r2] 8002b78: b21b sxth r3, r3 8002b7a: 430b orrs r3, r1 8002b7c: b21b sxth r3, r3 8002b7e: b298 uxth r0, r3 - 8002b80: 4946 ldr r1, [pc, #280] @ (8002c9c ) + 8002b80: 4949 ldr r1, [pc, #292] @ (8002ca8 ) 8002b82: 6e7b ldr r3, [r7, #100] @ 0x64 8002b84: 005a lsls r2, r3, #1 8002b86: 1c03 adds r3, r0, #0 @@ -5563,7 +5566,7 @@ void HTPA_ReadSensor(uint32_t dataArray[32]) { 8002b8a: 6e7b ldr r3, [r7, #100] @ 0x64 8002b8c: 3361 adds r3, #97 @ 0x61 8002b8e: 005a lsls r2, r3, #1 - 8002b90: 4b40 ldr r3, [pc, #256] @ (8002c94 ) + 8002b90: 4b43 ldr r3, [pc, #268] @ (8002ca0 ) 8002b92: 5c9b ldrb r3, [r3, r2] 8002b94: b21b sxth r3, r3 8002b96: 021b lsls r3, r3, #8 @@ -5572,13 +5575,13 @@ void HTPA_ReadSensor(uint32_t dataArray[32]) { 8002b9c: 005b lsls r3, r3, #1 8002b9e: 33c3 adds r3, #195 @ 0xc3 8002ba0: 001a movs r2, r3 - 8002ba2: 4b3c ldr r3, [pc, #240] @ (8002c94 ) + 8002ba2: 4b3f ldr r3, [pc, #252] @ (8002ca0 ) 8002ba4: 5c9b ldrb r3, [r3, r2] 8002ba6: b21b sxth r3, r3 8002ba8: 430b orrs r3, r1 8002baa: b21b sxth r3, r3 8002bac: b298 uxth r0, r3 - 8002bae: 493c ldr r1, [pc, #240] @ (8002ca0 ) + 8002bae: 493f ldr r1, [pc, #252] @ (8002cac ) 8002bb0: 6e7b ldr r3, [r7, #100] @ 0x64 8002bb2: 005a lsls r2, r3, #1 8002bb4: 1c03 adds r3, r0, #0 @@ -5591,36 +5594,36 @@ void HTPA_ReadSensor(uint32_t dataArray[32]) { 8002bc0: 2b1f cmp r3, #31 8002bc2: ddcb ble.n 8002b5c int64_t vdd_calc_steps; - uint8_t table_row, table_col; + uint16_t table_row, table_col; int32_t vx, vy, ydist, dta; // 11.1 ambient temperature: ambient_temperature = ptat_topBlock * ptatgr + ptatoff; // value in dK - 8002bc4: 4b32 ldr r3, [pc, #200] @ (8002c90 ) + 8002bc4: 4b35 ldr r3, [pc, #212] @ (8002c9c ) 8002bc6: 881b ldrh r3, [r3, #0] 8002bc8: 0018 movs r0, r3 8002bca: f7fe fb45 bl 8001258 <__aeabi_i2f> 8002bce: 1c02 adds r2, r0, #0 - 8002bd0: 4b34 ldr r3, [pc, #208] @ (8002ca4 ) + 8002bd0: 4b37 ldr r3, [pc, #220] @ (8002cb0 ) 8002bd2: 681b ldr r3, [r3, #0] 8002bd4: 1c19 adds r1, r3, #0 8002bd6: 1c10 adds r0, r2, #0 8002bd8: f7fd ff60 bl 8000a9c <__aeabi_fmul> 8002bdc: 1c03 adds r3, r0, #0 8002bde: 1c1a adds r2, r3, #0 - 8002be0: 4b31 ldr r3, [pc, #196] @ (8002ca8 ) + 8002be0: 4b34 ldr r3, [pc, #208] @ (8002cb4 ) 8002be2: 681b ldr r3, [r3, #0] 8002be4: 1c19 adds r1, r3, #0 8002be6: 1c10 adds r0, r2, #0 8002be8: f7fd fcae bl 8000548 <__aeabi_fadd> 8002bec: 1c03 adds r3, r0, #0 8002bee: 1c1a adds r2, r3, #0 - 8002bf0: 4b2e ldr r3, [pc, #184] @ (8002cac ) + 8002bf0: 4b31 ldr r3, [pc, #196] @ (8002cb8 ) 8002bf2: 601a str r2, [r3, #0] // find column of lookup table (ambient temperature) for(uint8_t i = 0; i < NROFTAELEMENTS; i++) { - 8002bf4: 233a movs r3, #58 @ 0x3a + 8002bf4: 2339 movs r3, #57 @ 0x39 8002bf6: 2228 movs r2, #40 @ 0x28 8002bf8: 189b adds r3, r3, r2 8002bfa: 19da adds r2, r3, r7 @@ -5628,18 +5631,18 @@ void HTPA_ReadSensor(uint32_t dataArray[32]) { 8002bfe: 7013 strb r3, [r2, #0] 8002c00: e024 b.n 8002c4c if(ambient_temperature > XTATemps[i]) { - 8002c02: 243a movs r4, #58 @ 0x3a + 8002c02: 2439 movs r4, #57 @ 0x39 8002c04: 2128 movs r1, #40 @ 0x28 8002c06: 1863 adds r3, r4, r1 8002c08: 19db adds r3, r3, r7 8002c0a: 781b ldrb r3, [r3, #0] - 8002c0c: 4a28 ldr r2, [pc, #160] @ (8002cb0 ) + 8002c0c: 4a2b ldr r2, [pc, #172] @ (8002cbc ) 8002c0e: 009b lsls r3, r3, #2 8002c10: 589b ldr r3, [r3, r2] 8002c12: 0018 movs r0, r3 8002c14: f7fe fb70 bl 80012f8 <__aeabi_ui2f> 8002c18: 1c02 adds r2, r0, #0 - 8002c1a: 4b24 ldr r3, [pc, #144] @ (8002cac ) + 8002c1a: 4b27 ldr r3, [pc, #156] @ (8002cb8 ) 8002c1c: 681b ldr r3, [r3, #0] 8002c1e: 1c19 adds r1, r3, #0 8002c20: 1c10 adds r0, r2, #0 @@ -5647,16 +5650,16 @@ void HTPA_ReadSensor(uint32_t dataArray[32]) { 8002c26: 1e03 subs r3, r0, #0 8002c28: d007 beq.n 8002c3a table_col = i; - 8002c2a: 233b movs r3, #59 @ 0x3b + 8002c2a: 233a movs r3, #58 @ 0x3a 8002c2c: 2128 movs r1, #40 @ 0x28 8002c2e: 185b adds r3, r3, r1 8002c30: 19da adds r2, r3, r7 8002c32: 1863 adds r3, r4, r1 8002c34: 19db adds r3, r3, r7 8002c36: 781b ldrb r3, [r3, #0] - 8002c38: 7013 strb r3, [r2, #0] + 8002c38: 8013 strh r3, [r2, #0] for(uint8_t i = 0; i < NROFTAELEMENTS; i++) { - 8002c3a: 223a movs r2, #58 @ 0x3a + 8002c3a: 2239 movs r2, #57 @ 0x39 8002c3c: 2128 movs r1, #40 @ 0x28 8002c3e: 1853 adds r3, r2, r1 8002c40: 19db adds r3, r3, r7 @@ -5665,7 +5668,7 @@ void HTPA_ReadSensor(uint32_t dataArray[32]) { 8002c46: 19d2 adds r2, r2, r7 8002c48: 3301 adds r3, #1 8002c4a: 7013 strb r3, [r2, #0] - 8002c4c: 233a movs r3, #58 @ 0x3a + 8002c4c: 2339 movs r3, #57 @ 0x39 8002c4e: 2228 movs r2, #40 @ 0x28 8002c50: 189b adds r3, r3, r2 8002c52: 19db adds r3, r3, r7 @@ -5674,9681 +5677,9692 @@ void HTPA_ReadSensor(uint32_t dataArray[32]) { 8002c58: d9d3 bls.n 8002c02 } } - dta = ambient_temperature - XTATemps[1]; - 8002c5a: 4b14 ldr r3, [pc, #80] @ (8002cac ) + dta = ambient_temperature - XTATemps[table_col]; + 8002c5a: 4b17 ldr r3, [pc, #92] @ (8002cb8 ) 8002c5c: 681c ldr r4, [r3, #0] - 8002c5e: 4b15 ldr r3, [pc, #84] @ (8002cb4 ) - 8002c60: 0018 movs r0, r3 - 8002c62: f7fe fb49 bl 80012f8 <__aeabi_ui2f> - 8002c66: 1c03 adds r3, r0, #0 - 8002c68: 1c19 adds r1, r3, #0 - 8002c6a: 1c20 adds r0, r4, #0 - 8002c6c: f7fe f870 bl 8000d50 <__aeabi_fsub> - 8002c70: 1c03 adds r3, r0, #0 - 8002c72: 1c18 adds r0, r3, #0 - 8002c74: f7fe fad0 bl 8001218 <__aeabi_f2iz> - 8002c78: 0003 movs r3, r0 - 8002c7a: 657b str r3, [r7, #84] @ 0x54 + 8002c5e: 233a movs r3, #58 @ 0x3a + 8002c60: 189b adds r3, r3, r2 + 8002c62: 19db adds r3, r3, r7 + 8002c64: 881b ldrh r3, [r3, #0] + 8002c66: 4a15 ldr r2, [pc, #84] @ (8002cbc ) + 8002c68: 009b lsls r3, r3, #2 + 8002c6a: 589b ldr r3, [r3, r2] + 8002c6c: 0018 movs r0, r3 + 8002c6e: f7fe fb43 bl 80012f8 <__aeabi_ui2f> + 8002c72: 1c03 adds r3, r0, #0 + 8002c74: 1c19 adds r1, r3, #0 + 8002c76: 1c20 adds r0, r4, #0 + 8002c78: f7fe f86a bl 8000d50 <__aeabi_fsub> + 8002c7c: 1c03 adds r3, r0, #0 + 8002c7e: 1c18 adds r0, r3, #0 + 8002c80: f7fe faca bl 8001218 <__aeabi_f2iz> + 8002c84: 0003 movs r3, r0 + 8002c86: 657b str r3, [r7, #84] @ 0x54 ydist = (int32_t)ADEQUIDISTANCE; - 8002c7c: 2340 movs r3, #64 @ 0x40 - 8002c7e: 653b str r3, [r7, #80] @ 0x50 + 8002c88: 2340 movs r3, #64 @ 0x40 + 8002c8a: 653b str r3, [r7, #80] @ 0x50 for(int i=0; i<32; i++) { - 8002c80: 2300 movs r3, #0 - 8002c82: 65fb str r3, [r7, #92] @ 0x5c - 8002c84: e1a1 b.n 8002fca - 8002c86: 46c0 nop @ (mov r8, r8) - 8002c88: 20000190 .word 0x20000190 - 8002c8c: 20000194 .word 0x20000194 - 8002c90: 2000039c .word 0x2000039c - 8002c94: 20000298 .word 0x20000298 - 8002c98: 2000039a .word 0x2000039a - 8002c9c: 200003a0 .word 0x200003a0 - 8002ca0: 200003e0 .word 0x200003e0 - 8002ca4: 20000188 .word 0x20000188 - 8002ca8: 2000018c .word 0x2000018c - 8002cac: 2000072c .word 0x2000072c - 8002cb0: 08007620 .word 0x08007620 - 8002cb4: 00000b42 .word 0x00000b42 + 8002c8c: 2300 movs r3, #0 + 8002c8e: 65fb str r3, [r7, #92] @ 0x5c + 8002c90: e1a5 b.n 8002fde + 8002c92: 46c0 nop @ (mov r8, r8) + 8002c94: 20000190 .word 0x20000190 + 8002c98: 20000194 .word 0x20000194 + 8002c9c: 2000039c .word 0x2000039c + 8002ca0: 20000298 .word 0x20000298 + 8002ca4: 2000039a .word 0x2000039a + 8002ca8: 200003a0 .word 0x200003a0 + 8002cac: 200003e0 .word 0x200003e0 + 8002cb0: 20000188 .word 0x20000188 + 8002cb4: 2000018c .word 0x2000018c + 8002cb8: 2000072c .word 0x2000072c + 8002cbc: 08007634 .word 0x08007634 // 11.2 thermal offset: vij_comp[i] = pixel_topBlock[i] - (thgrad[i] * ptat_topBlock / gradscale_div) - thoffset[i]; - 8002cb8: 4ac8 ldr r2, [pc, #800] @ (8002fdc ) - 8002cba: 6dfb ldr r3, [r7, #92] @ 0x5c - 8002cbc: 005b lsls r3, r3, #1 - 8002cbe: 5a9b ldrh r3, [r3, r2] - 8002cc0: 001c movs r4, r3 - 8002cc2: 4ac7 ldr r2, [pc, #796] @ (8002fe0 ) - 8002cc4: 6dfb ldr r3, [r7, #92] @ 0x5c - 8002cc6: 005b lsls r3, r3, #1 - 8002cc8: 5e9b ldrsh r3, [r3, r2] - 8002cca: 001a movs r2, r3 - 8002ccc: 4bc5 ldr r3, [pc, #788] @ (8002fe4 ) - 8002cce: 881b ldrh r3, [r3, #0] - 8002cd0: 4353 muls r3, r2 + 8002cc0: 4acb ldr r2, [pc, #812] @ (8002ff0 ) + 8002cc2: 6dfb ldr r3, [r7, #92] @ 0x5c + 8002cc4: 005b lsls r3, r3, #1 + 8002cc6: 5a9b ldrh r3, [r3, r2] + 8002cc8: 001c movs r4, r3 + 8002cca: 4aca ldr r2, [pc, #808] @ (8002ff4 ) + 8002ccc: 6dfb ldr r3, [r7, #92] @ 0x5c + 8002cce: 005b lsls r3, r3, #1 + 8002cd0: 5e9b ldrsh r3, [r3, r2] 8002cd2: 001a movs r2, r3 - 8002cd4: 4bc4 ldr r3, [pc, #784] @ (8002fe8 ) - 8002cd6: 681b ldr r3, [r3, #0] - 8002cd8: 0019 movs r1, r3 - 8002cda: 0010 movs r0, r2 - 8002cdc: f7fd fa14 bl 8000108 <__udivsi3> - 8002ce0: 0003 movs r3, r0 - 8002ce2: 1ae1 subs r1, r4, r3 - 8002ce4: 4ac1 ldr r2, [pc, #772] @ (8002fec ) - 8002ce6: 6dfb ldr r3, [r7, #92] @ 0x5c - 8002ce8: 005b lsls r3, r3, #1 - 8002cea: 5e9b ldrsh r3, [r3, r2] - 8002cec: 1acb subs r3, r1, r3 - 8002cee: 0019 movs r1, r3 - 8002cf0: 4abf ldr r2, [pc, #764] @ (8002ff0 ) - 8002cf2: 6dfb ldr r3, [r7, #92] @ 0x5c - 8002cf4: 009b lsls r3, r3, #2 - 8002cf6: 5099 str r1, [r3, r2] + 8002cd4: 4bc8 ldr r3, [pc, #800] @ (8002ff8 ) + 8002cd6: 881b ldrh r3, [r3, #0] + 8002cd8: 4353 muls r3, r2 + 8002cda: 001a movs r2, r3 + 8002cdc: 4bc7 ldr r3, [pc, #796] @ (8002ffc ) + 8002cde: 681b ldr r3, [r3, #0] + 8002ce0: 0019 movs r1, r3 + 8002ce2: 0010 movs r0, r2 + 8002ce4: f7fd fa10 bl 8000108 <__udivsi3> + 8002ce8: 0003 movs r3, r0 + 8002cea: 1ae1 subs r1, r4, r3 + 8002cec: 4ac4 ldr r2, [pc, #784] @ (8003000 ) + 8002cee: 6dfb ldr r3, [r7, #92] @ 0x5c + 8002cf0: 005b lsls r3, r3, #1 + 8002cf2: 5e9b ldrsh r3, [r3, r2] + 8002cf4: 1acb subs r3, r1, r3 + 8002cf6: 0019 movs r1, r3 + 8002cf8: 4ac2 ldr r2, [pc, #776] @ (8003004 ) + 8002cfa: 6dfb ldr r3, [r7, #92] @ 0x5c + 8002cfc: 009b lsls r3, r3, #2 + 8002cfe: 5099 str r1, [r3, r2] // 11.3 electrical offset: vij_comp_s[i] = vij_comp[i] - elOffset[i]; - 8002cf8: 4abd ldr r2, [pc, #756] @ (8002ff0 ) - 8002cfa: 6dfb ldr r3, [r7, #92] @ 0x5c - 8002cfc: 009b lsls r3, r3, #2 - 8002cfe: 5899 ldr r1, [r3, r2] - 8002d00: 4abc ldr r2, [pc, #752] @ (8002ff4 ) + 8002d00: 4ac0 ldr r2, [pc, #768] @ (8003004 ) 8002d02: 6dfb ldr r3, [r7, #92] @ 0x5c - 8002d04: 005b lsls r3, r3, #1 - 8002d06: 5a9b ldrh r3, [r3, r2] - 8002d08: 1ac9 subs r1, r1, r3 - 8002d0a: 4abb ldr r2, [pc, #748] @ (8002ff8 ) - 8002d0c: 6dfb ldr r3, [r7, #92] @ 0x5c - 8002d0e: 009b lsls r3, r3, #2 - 8002d10: 5099 str r1, [r3, r2] + 8002d04: 009b lsls r3, r3, #2 + 8002d06: 5899 ldr r1, [r3, r2] + 8002d08: 4abf ldr r2, [pc, #764] @ (8003008 ) + 8002d0a: 6dfb ldr r3, [r7, #92] @ 0x5c + 8002d0c: 005b lsls r3, r3, #1 + 8002d0e: 5a9b ldrh r3, [r3, r2] + 8002d10: 1ac9 subs r1, r1, r3 + 8002d12: 4abe ldr r2, [pc, #760] @ (800300c ) + 8002d14: 6dfb ldr r3, [r7, #92] @ 0x5c + 8002d16: 009b lsls r3, r3, #2 + 8002d18: 5099 str r1, [r3, r2] // 11.4 Vdd compensation: vdd_calc_steps = vddcompgrad[i] * ptat_topBlock; - 8002d12: 4aba ldr r2, [pc, #744] @ (8002ffc ) - 8002d14: 6dfb ldr r3, [r7, #92] @ 0x5c - 8002d16: 005b lsls r3, r3, #1 - 8002d18: 5e9b ldrsh r3, [r3, r2] - 8002d1a: 001a movs r2, r3 - 8002d1c: 4bb1 ldr r3, [pc, #708] @ (8002fe4 ) - 8002d1e: 881b ldrh r3, [r3, #0] - 8002d20: 4353 muls r3, r2 - 8002d22: 64bb str r3, [r7, #72] @ 0x48 - 8002d24: 17db asrs r3, r3, #31 - 8002d26: 64fb str r3, [r7, #76] @ 0x4c + 8002d1a: 4abd ldr r2, [pc, #756] @ (8003010 ) + 8002d1c: 6dfb ldr r3, [r7, #92] @ 0x5c + 8002d1e: 005b lsls r3, r3, #1 + 8002d20: 5e9b ldrsh r3, [r3, r2] + 8002d22: 001a movs r2, r3 + 8002d24: 4bb4 ldr r3, [pc, #720] @ (8002ff8 ) + 8002d26: 881b ldrh r3, [r3, #0] + 8002d28: 4353 muls r3, r2 + 8002d2a: 64bb str r3, [r7, #72] @ 0x48 + 8002d2c: 17db asrs r3, r3, #31 + 8002d2e: 64fb str r3, [r7, #76] @ 0x4c vdd_calc_steps = vdd_calc_steps / vddscgrad_div; - 8002d28: 4bb5 ldr r3, [pc, #724] @ (8003000 ) - 8002d2a: 681b ldr r3, [r3, #0] - 8002d2c: 623b str r3, [r7, #32] - 8002d2e: 2300 movs r3, #0 - 8002d30: 627b str r3, [r7, #36] @ 0x24 - 8002d32: 6a3a ldr r2, [r7, #32] - 8002d34: 6a7b ldr r3, [r7, #36] @ 0x24 - 8002d36: 6cb8 ldr r0, [r7, #72] @ 0x48 - 8002d38: 6cf9 ldr r1, [r7, #76] @ 0x4c - 8002d3a: f7fd fb95 bl 8000468 <__aeabi_ldivmod> - 8002d3e: 0002 movs r2, r0 - 8002d40: 000b movs r3, r1 - 8002d42: 64ba str r2, [r7, #72] @ 0x48 - 8002d44: 64fb str r3, [r7, #76] @ 0x4c + 8002d30: 4bb8 ldr r3, [pc, #736] @ (8003014 ) + 8002d32: 681b ldr r3, [r3, #0] + 8002d34: 623b str r3, [r7, #32] + 8002d36: 2300 movs r3, #0 + 8002d38: 627b str r3, [r7, #36] @ 0x24 + 8002d3a: 6a3a ldr r2, [r7, #32] + 8002d3c: 6a7b ldr r3, [r7, #36] @ 0x24 + 8002d3e: 6cb8 ldr r0, [r7, #72] @ 0x48 + 8002d40: 6cf9 ldr r1, [r7, #76] @ 0x4c + 8002d42: f7fd fb91 bl 8000468 <__aeabi_ldivmod> + 8002d46: 0002 movs r2, r0 + 8002d48: 000b movs r3, r1 + 8002d4a: 64ba str r2, [r7, #72] @ 0x48 + 8002d4c: 64fb str r3, [r7, #76] @ 0x4c vdd_calc_steps = vdd_calc_steps + vddcompoff[i]; - 8002d46: 4aaf ldr r2, [pc, #700] @ (8003004 ) - 8002d48: 6dfb ldr r3, [r7, #92] @ 0x5c - 8002d4a: 005b lsls r3, r3, #1 - 8002d4c: 5e9b ldrsh r3, [r3, r2] - 8002d4e: 001d movs r5, r3 - 8002d50: 17db asrs r3, r3, #31 - 8002d52: 001e movs r6, r3 - 8002d54: 6cba ldr r2, [r7, #72] @ 0x48 - 8002d56: 6cfb ldr r3, [r7, #76] @ 0x4c - 8002d58: 1952 adds r2, r2, r5 - 8002d5a: 4173 adcs r3, r6 - 8002d5c: 64ba str r2, [r7, #72] @ 0x48 - 8002d5e: 64fb str r3, [r7, #76] @ 0x4c + 8002d4e: 4ab2 ldr r2, [pc, #712] @ (8003018 ) + 8002d50: 6dfb ldr r3, [r7, #92] @ 0x5c + 8002d52: 005b lsls r3, r3, #1 + 8002d54: 5e9b ldrsh r3, [r3, r2] + 8002d56: 001d movs r5, r3 + 8002d58: 17db asrs r3, r3, #31 + 8002d5a: 001e movs r6, r3 + 8002d5c: 6cba ldr r2, [r7, #72] @ 0x48 + 8002d5e: 6cfb ldr r3, [r7, #76] @ 0x4c + 8002d60: 1952 adds r2, r2, r5 + 8002d62: 4173 adcs r3, r6 + 8002d64: 64ba str r2, [r7, #72] @ 0x48 + 8002d66: 64fb str r3, [r7, #76] @ 0x4c vdd_calc_steps = vdd_calc_steps * (vdd_topBlock - vddth1 - ((vddth2 - vddth1) / (ptatth2 - ptatth1)) * (ptat_topBlock - ptatth1)); - 8002d60: 4ba9 ldr r3, [pc, #676] @ (8003008 ) - 8002d62: 881b ldrh r3, [r3, #0] - 8002d64: 001a movs r2, r3 - 8002d66: 4ba9 ldr r3, [pc, #676] @ (800300c ) - 8002d68: 881b ldrh r3, [r3, #0] - 8002d6a: 1ad4 subs r4, r2, r3 - 8002d6c: 4ba8 ldr r3, [pc, #672] @ (8003010 ) - 8002d6e: 881b ldrh r3, [r3, #0] - 8002d70: 001a movs r2, r3 - 8002d72: 4ba6 ldr r3, [pc, #664] @ (800300c ) - 8002d74: 881b ldrh r3, [r3, #0] - 8002d76: 1ad0 subs r0, r2, r3 - 8002d78: 4ba6 ldr r3, [pc, #664] @ (8003014 ) - 8002d7a: 881b ldrh r3, [r3, #0] - 8002d7c: 001a movs r2, r3 - 8002d7e: 4ba6 ldr r3, [pc, #664] @ (8003018 ) - 8002d80: 881b ldrh r3, [r3, #0] - 8002d82: 1ad3 subs r3, r2, r3 - 8002d84: 0019 movs r1, r3 - 8002d86: f7fd fa49 bl 800021c <__divsi3> - 8002d8a: 0003 movs r3, r0 + 8002d68: 4bac ldr r3, [pc, #688] @ (800301c ) + 8002d6a: 881b ldrh r3, [r3, #0] + 8002d6c: 001a movs r2, r3 + 8002d6e: 4bac ldr r3, [pc, #688] @ (8003020 ) + 8002d70: 881b ldrh r3, [r3, #0] + 8002d72: 1ad4 subs r4, r2, r3 + 8002d74: 4bab ldr r3, [pc, #684] @ (8003024 ) + 8002d76: 881b ldrh r3, [r3, #0] + 8002d78: 001a movs r2, r3 + 8002d7a: 4ba9 ldr r3, [pc, #676] @ (8003020 ) + 8002d7c: 881b ldrh r3, [r3, #0] + 8002d7e: 1ad0 subs r0, r2, r3 + 8002d80: 4ba9 ldr r3, [pc, #676] @ (8003028 ) + 8002d82: 881b ldrh r3, [r3, #0] + 8002d84: 001a movs r2, r3 + 8002d86: 4ba9 ldr r3, [pc, #676] @ (800302c ) + 8002d88: 881b ldrh r3, [r3, #0] + 8002d8a: 1ad3 subs r3, r2, r3 8002d8c: 0019 movs r1, r3 - 8002d8e: 4b95 ldr r3, [pc, #596] @ (8002fe4 ) - 8002d90: 881b ldrh r3, [r3, #0] - 8002d92: 001a movs r2, r3 - 8002d94: 4ba0 ldr r3, [pc, #640] @ (8003018 ) - 8002d96: 881b ldrh r3, [r3, #0] - 8002d98: 1ad3 subs r3, r2, r3 - 8002d9a: 434b muls r3, r1 - 8002d9c: 1ae3 subs r3, r4, r3 - 8002d9e: 61bb str r3, [r7, #24] - 8002da0: 17db asrs r3, r3, #31 - 8002da2: 61fb str r3, [r7, #28] - 8002da4: 69ba ldr r2, [r7, #24] - 8002da6: 69fb ldr r3, [r7, #28] - 8002da8: 6cb8 ldr r0, [r7, #72] @ 0x48 - 8002daa: 6cf9 ldr r1, [r7, #76] @ 0x4c - 8002dac: f7fd fb80 bl 80004b0 <__aeabi_lmul> - 8002db0: 0002 movs r2, r0 - 8002db2: 000b movs r3, r1 - 8002db4: 64ba str r2, [r7, #72] @ 0x48 - 8002db6: 64fb str r3, [r7, #76] @ 0x4c + 8002d8e: f7fd fa45 bl 800021c <__divsi3> + 8002d92: 0003 movs r3, r0 + 8002d94: 0019 movs r1, r3 + 8002d96: 4b98 ldr r3, [pc, #608] @ (8002ff8 ) + 8002d98: 881b ldrh r3, [r3, #0] + 8002d9a: 001a movs r2, r3 + 8002d9c: 4ba3 ldr r3, [pc, #652] @ (800302c ) + 8002d9e: 881b ldrh r3, [r3, #0] + 8002da0: 1ad3 subs r3, r2, r3 + 8002da2: 434b muls r3, r1 + 8002da4: 1ae3 subs r3, r4, r3 + 8002da6: 61bb str r3, [r7, #24] + 8002da8: 17db asrs r3, r3, #31 + 8002daa: 61fb str r3, [r7, #28] + 8002dac: 69ba ldr r2, [r7, #24] + 8002dae: 69fb ldr r3, [r7, #28] + 8002db0: 6cb8 ldr r0, [r7, #72] @ 0x48 + 8002db2: 6cf9 ldr r1, [r7, #76] @ 0x4c + 8002db4: f7fd fb7c bl 80004b0 <__aeabi_lmul> + 8002db8: 0002 movs r2, r0 + 8002dba: 000b movs r3, r1 + 8002dbc: 64ba str r2, [r7, #72] @ 0x48 + 8002dbe: 64fb str r3, [r7, #76] @ 0x4c vdd_calc_steps = vdd_calc_steps / vddscoff_div; - 8002db8: 4b98 ldr r3, [pc, #608] @ (800301c ) - 8002dba: 681b ldr r3, [r3, #0] - 8002dbc: 613b str r3, [r7, #16] - 8002dbe: 2300 movs r3, #0 - 8002dc0: 617b str r3, [r7, #20] - 8002dc2: 693a ldr r2, [r7, #16] - 8002dc4: 697b ldr r3, [r7, #20] - 8002dc6: 6cb8 ldr r0, [r7, #72] @ 0x48 - 8002dc8: 6cf9 ldr r1, [r7, #76] @ 0x4c - 8002dca: f7fd fb4d bl 8000468 <__aeabi_ldivmod> - 8002dce: 0002 movs r2, r0 - 8002dd0: 000b movs r3, r1 - 8002dd2: 64ba str r2, [r7, #72] @ 0x48 - 8002dd4: 64fb str r3, [r7, #76] @ 0x4c + 8002dc0: 4b9b ldr r3, [pc, #620] @ (8003030 ) + 8002dc2: 681b ldr r3, [r3, #0] + 8002dc4: 613b str r3, [r7, #16] + 8002dc6: 2300 movs r3, #0 + 8002dc8: 617b str r3, [r7, #20] + 8002dca: 693a ldr r2, [r7, #16] + 8002dcc: 697b ldr r3, [r7, #20] + 8002dce: 6cb8 ldr r0, [r7, #72] @ 0x48 + 8002dd0: 6cf9 ldr r1, [r7, #76] @ 0x4c + 8002dd2: f7fd fb49 bl 8000468 <__aeabi_ldivmod> + 8002dd6: 0002 movs r2, r0 + 8002dd8: 000b movs r3, r1 + 8002dda: 64ba str r2, [r7, #72] @ 0x48 + 8002ddc: 64fb str r3, [r7, #76] @ 0x4c vij_vddcomp[i] = vij_comp_s[i] - vdd_calc_steps; - 8002dd6: 4a88 ldr r2, [pc, #544] @ (8002ff8 ) - 8002dd8: 6dfb ldr r3, [r7, #92] @ 0x5c - 8002dda: 009b lsls r3, r3, #2 - 8002ddc: 589b ldr r3, [r3, r2] - 8002dde: 001a movs r2, r3 - 8002de0: 6cbb ldr r3, [r7, #72] @ 0x48 - 8002de2: 1ad3 subs r3, r2, r3 - 8002de4: 0019 movs r1, r3 - 8002de6: 4a8e ldr r2, [pc, #568] @ (8003020 ) - 8002de8: 6dfb ldr r3, [r7, #92] @ 0x5c - 8002dea: 009b lsls r3, r3, #2 - 8002dec: 5099 str r1, [r3, r2] + 8002dde: 4a8b ldr r2, [pc, #556] @ (800300c ) + 8002de0: 6dfb ldr r3, [r7, #92] @ 0x5c + 8002de2: 009b lsls r3, r3, #2 + 8002de4: 589b ldr r3, [r3, r2] + 8002de6: 001a movs r2, r3 + 8002de8: 6cbb ldr r3, [r7, #72] @ 0x48 + 8002dea: 1ad3 subs r3, r2, r3 + 8002dec: 0019 movs r1, r3 + 8002dee: 4a91 ldr r2, [pc, #580] @ (8003034 ) + 8002df0: 6dfb ldr r3, [r7, #92] @ 0x5c + 8002df2: 009b lsls r3, r3, #2 + 8002df4: 5099 str r1, [r3, r2] // 11.5 calculate object temperature vij_pixc_and_pcscaleval = (int64_t)vij_vddcomp[i] * (int64_t)PCSCALEVAL; - 8002dee: 4a8c ldr r2, [pc, #560] @ (8003020 ) - 8002df0: 6dfb ldr r3, [r7, #92] @ 0x5c - 8002df2: 009b lsls r3, r3, #2 - 8002df4: 589b ldr r3, [r3, r2] - 8002df6: 60bb str r3, [r7, #8] - 8002df8: 17db asrs r3, r3, #31 - 8002dfa: 60fb str r3, [r7, #12] - 8002dfc: 4a89 ldr r2, [pc, #548] @ (8003024 ) - 8002dfe: 2300 movs r3, #0 - 8002e00: 68b8 ldr r0, [r7, #8] - 8002e02: 68f9 ldr r1, [r7, #12] - 8002e04: f7fd fb54 bl 80004b0 <__aeabi_lmul> - 8002e08: 0002 movs r2, r0 - 8002e0a: 000b movs r3, r1 - 8002e0c: 643a str r2, [r7, #64] @ 0x40 - 8002e0e: 647b str r3, [r7, #68] @ 0x44 + 8002df6: 4a8f ldr r2, [pc, #572] @ (8003034 ) + 8002df8: 6dfb ldr r3, [r7, #92] @ 0x5c + 8002dfa: 009b lsls r3, r3, #2 + 8002dfc: 589b ldr r3, [r3, r2] + 8002dfe: 60bb str r3, [r7, #8] + 8002e00: 17db asrs r3, r3, #31 + 8002e02: 60fb str r3, [r7, #12] + 8002e04: 4a8c ldr r2, [pc, #560] @ (8003038 ) + 8002e06: 2300 movs r3, #0 + 8002e08: 68b8 ldr r0, [r7, #8] + 8002e0a: 68f9 ldr r1, [r7, #12] + 8002e0c: f7fd fb50 bl 80004b0 <__aeabi_lmul> + 8002e10: 0002 movs r2, r0 + 8002e12: 000b movs r3, r1 + 8002e14: 643a str r2, [r7, #64] @ 0x40 + 8002e16: 647b str r3, [r7, #68] @ 0x44 vij_pixc[i] = (int32_t)(vij_pixc_and_pcscaleval / (int64_t)pixcij[i]); - 8002e10: 4a85 ldr r2, [pc, #532] @ (8003028 ) - 8002e12: 6dfb ldr r3, [r7, #92] @ 0x5c - 8002e14: 009b lsls r3, r3, #2 - 8002e16: 589b ldr r3, [r3, r2] - 8002e18: 603b str r3, [r7, #0] - 8002e1a: 17db asrs r3, r3, #31 - 8002e1c: 607b str r3, [r7, #4] - 8002e1e: 683a ldr r2, [r7, #0] - 8002e20: 687b ldr r3, [r7, #4] - 8002e22: 6c38 ldr r0, [r7, #64] @ 0x40 - 8002e24: 6c79 ldr r1, [r7, #68] @ 0x44 - 8002e26: f7fd fb1f bl 8000468 <__aeabi_ldivmod> - 8002e2a: 0002 movs r2, r0 - 8002e2c: 000b movs r3, r1 - 8002e2e: 0011 movs r1, r2 - 8002e30: 4a7e ldr r2, [pc, #504] @ (800302c ) - 8002e32: 6dfb ldr r3, [r7, #92] @ 0x5c - 8002e34: 009b lsls r3, r3, #2 - 8002e36: 5099 str r1, [r3, r2] - // find temperature in lookup table and do bilinear interpolation - table_row = vij_pixc[i] + TABLEOFFSET; - 8002e38: 4a7c ldr r2, [pc, #496] @ (800302c ) + 8002e18: 4a88 ldr r2, [pc, #544] @ (800303c ) + 8002e1a: 6dfb ldr r3, [r7, #92] @ 0x5c + 8002e1c: 009b lsls r3, r3, #2 + 8002e1e: 589b ldr r3, [r3, r2] + 8002e20: 603b str r3, [r7, #0] + 8002e22: 17db asrs r3, r3, #31 + 8002e24: 607b str r3, [r7, #4] + 8002e26: 683a ldr r2, [r7, #0] + 8002e28: 687b ldr r3, [r7, #4] + 8002e2a: 6c38 ldr r0, [r7, #64] @ 0x40 + 8002e2c: 6c79 ldr r1, [r7, #68] @ 0x44 + 8002e2e: f7fd fb1b bl 8000468 <__aeabi_ldivmod> + 8002e32: 0002 movs r2, r0 + 8002e34: 000b movs r3, r1 + 8002e36: 0011 movs r1, r2 + 8002e38: 4a81 ldr r2, [pc, #516] @ (8003040 ) 8002e3a: 6dfb ldr r3, [r7, #92] @ 0x5c 8002e3c: 009b lsls r3, r3, #2 - 8002e3e: 589b ldr r3, [r3, r2] - 8002e40: 2117 movs r1, #23 - 8002e42: 2028 movs r0, #40 @ 0x28 - 8002e44: 180a adds r2, r1, r0 - 8002e46: 19d2 adds r2, r2, r7 - 8002e48: 7013 strb r3, [r2, #0] + 8002e3e: 5099 str r1, [r3, r2] + // find temperature in lookup table and do bilinear interpolation + table_row = vij_pixc[i] + TABLEOFFSET; + 8002e40: 4a7f ldr r2, [pc, #508] @ (8003040 ) + 8002e42: 6dfb ldr r3, [r7, #92] @ 0x5c + 8002e44: 009b lsls r3, r3, #2 + 8002e46: 589b ldr r3, [r3, r2] + 8002e48: b29b uxth r3, r3 + 8002e4a: 2116 movs r1, #22 + 8002e4c: 2428 movs r4, #40 @ 0x28 + 8002e4e: 190a adds r2, r1, r4 + 8002e50: 19d2 adds r2, r2, r7 + 8002e52: 2080 movs r0, #128 @ 0x80 + 8002e54: 00c0 lsls r0, r0, #3 + 8002e56: 4684 mov ip, r0 + 8002e58: 4463 add r3, ip + 8002e5a: 8013 strh r3, [r2, #0] table_row = table_row >> ADEXPBITS; - 8002e4a: 180b adds r3, r1, r0 - 8002e4c: 19da adds r2, r3, r7 - 8002e4e: 180b adds r3, r1, r0 - 8002e50: 19db adds r3, r3, r7 - 8002e52: 781b ldrb r3, [r3, #0] - 8002e54: 099b lsrs r3, r3, #6 - 8002e56: 7013 strb r3, [r2, #0] - vx = ((((int32_t)TempTable[table_row][table_col + 1] - (int32_t)TempTable[table_row][table_col]) * (int32_t)dta) / (int32_t)TAEQUIDISTANCE) + (int32_t)TempTable[table_row][table_col]; - 8002e58: 0002 movs r2, r0 - 8002e5a: 188b adds r3, r1, r2 - 8002e5c: 19db adds r3, r3, r7 - 8002e5e: 7818 ldrb r0, [r3, #0] - 8002e60: 233b movs r3, #59 @ 0x3b - 8002e62: 189b adds r3, r3, r2 + 8002e5c: 0020 movs r0, r4 + 8002e5e: 180b adds r3, r1, r0 + 8002e60: 19da adds r2, r3, r7 + 8002e62: 180b adds r3, r1, r0 8002e64: 19db adds r3, r3, r7 - 8002e66: 781b ldrb r3, [r3, #0] - 8002e68: 1c5a adds r2, r3, #1 - 8002e6a: 4971 ldr r1, [pc, #452] @ (8003030 ) - 8002e6c: 0003 movs r3, r0 - 8002e6e: 00db lsls r3, r3, #3 - 8002e70: 1a1b subs r3, r3, r0 - 8002e72: 189b adds r3, r3, r2 - 8002e74: 009b lsls r3, r3, #2 - 8002e76: 585b ldr r3, [r3, r1] - 8002e78: 001c movs r4, r3 - 8002e7a: 2117 movs r1, #23 - 8002e7c: 2228 movs r2, #40 @ 0x28 - 8002e7e: 188b adds r3, r1, r2 - 8002e80: 19db adds r3, r3, r7 - 8002e82: 7819 ldrb r1, [r3, #0] - 8002e84: 233b movs r3, #59 @ 0x3b + 8002e66: 881b ldrh r3, [r3, #0] + 8002e68: 099b lsrs r3, r3, #6 + 8002e6a: 8013 strh r3, [r2, #0] + vx = ((((int32_t)TempTable[table_row][table_col + 1] - (int32_t)TempTable[table_row][table_col]) * (int32_t)dta) / (int32_t)TAEQUIDISTANCE) + (int32_t)TempTable[table_row][table_col]; + 8002e6c: 0002 movs r2, r0 + 8002e6e: 188b adds r3, r1, r2 + 8002e70: 19db adds r3, r3, r7 + 8002e72: 8818 ldrh r0, [r3, #0] + 8002e74: 233a movs r3, #58 @ 0x3a + 8002e76: 189b adds r3, r3, r2 + 8002e78: 19db adds r3, r3, r7 + 8002e7a: 881b ldrh r3, [r3, #0] + 8002e7c: 1c5a adds r2, r3, #1 + 8002e7e: 4971 ldr r1, [pc, #452] @ (8003044 ) + 8002e80: 0003 movs r3, r0 + 8002e82: 00db lsls r3, r3, #3 + 8002e84: 1a1b subs r3, r3, r0 8002e86: 189b adds r3, r3, r2 - 8002e88: 19db adds r3, r3, r7 - 8002e8a: 781a ldrb r2, [r3, #0] - 8002e8c: 4868 ldr r0, [pc, #416] @ (8003030 ) - 8002e8e: 000b movs r3, r1 - 8002e90: 00db lsls r3, r3, #3 - 8002e92: 1a5b subs r3, r3, r1 - 8002e94: 189b adds r3, r3, r2 - 8002e96: 009b lsls r3, r3, #2 - 8002e98: 581b ldr r3, [r3, r0] - 8002e9a: 1ae2 subs r2, r4, r3 - 8002e9c: 6d7b ldr r3, [r7, #84] @ 0x54 - 8002e9e: 4353 muls r3, r2 - 8002ea0: 2164 movs r1, #100 @ 0x64 - 8002ea2: 0018 movs r0, r3 - 8002ea4: f7fd f9ba bl 800021c <__divsi3> - 8002ea8: 0003 movs r3, r0 - 8002eaa: 001c movs r4, r3 - 8002eac: 2117 movs r1, #23 - 8002eae: 2228 movs r2, #40 @ 0x28 - 8002eb0: 188b adds r3, r1, r2 - 8002eb2: 19db adds r3, r3, r7 - 8002eb4: 7819 ldrb r1, [r3, #0] - 8002eb6: 233b movs r3, #59 @ 0x3b - 8002eb8: 189b adds r3, r3, r2 - 8002eba: 19db adds r3, r3, r7 - 8002ebc: 781a ldrb r2, [r3, #0] - 8002ebe: 485c ldr r0, [pc, #368] @ (8003030 ) - 8002ec0: 000b movs r3, r1 - 8002ec2: 00db lsls r3, r3, #3 - 8002ec4: 1a5b subs r3, r3, r1 - 8002ec6: 189b adds r3, r3, r2 - 8002ec8: 009b lsls r3, r3, #2 - 8002eca: 581b ldr r3, [r3, r0] - 8002ecc: 18e3 adds r3, r4, r3 - 8002ece: 63bb str r3, [r7, #56] @ 0x38 + 8002e88: 009b lsls r3, r3, #2 + 8002e8a: 585b ldr r3, [r3, r1] + 8002e8c: 001c movs r4, r3 + 8002e8e: 2116 movs r1, #22 + 8002e90: 2228 movs r2, #40 @ 0x28 + 8002e92: 188b adds r3, r1, r2 + 8002e94: 19db adds r3, r3, r7 + 8002e96: 8819 ldrh r1, [r3, #0] + 8002e98: 233a movs r3, #58 @ 0x3a + 8002e9a: 189b adds r3, r3, r2 + 8002e9c: 19db adds r3, r3, r7 + 8002e9e: 881a ldrh r2, [r3, #0] + 8002ea0: 4868 ldr r0, [pc, #416] @ (8003044 ) + 8002ea2: 000b movs r3, r1 + 8002ea4: 00db lsls r3, r3, #3 + 8002ea6: 1a5b subs r3, r3, r1 + 8002ea8: 189b adds r3, r3, r2 + 8002eaa: 009b lsls r3, r3, #2 + 8002eac: 581b ldr r3, [r3, r0] + 8002eae: 1ae2 subs r2, r4, r3 + 8002eb0: 6d7b ldr r3, [r7, #84] @ 0x54 + 8002eb2: 4353 muls r3, r2 + 8002eb4: 2164 movs r1, #100 @ 0x64 + 8002eb6: 0018 movs r0, r3 + 8002eb8: f7fd f9b0 bl 800021c <__divsi3> + 8002ebc: 0003 movs r3, r0 + 8002ebe: 001c movs r4, r3 + 8002ec0: 2116 movs r1, #22 + 8002ec2: 2228 movs r2, #40 @ 0x28 + 8002ec4: 188b adds r3, r1, r2 + 8002ec6: 19db adds r3, r3, r7 + 8002ec8: 8819 ldrh r1, [r3, #0] + 8002eca: 233a movs r3, #58 @ 0x3a + 8002ecc: 189b adds r3, r3, r2 + 8002ece: 19db adds r3, r3, r7 + 8002ed0: 881a ldrh r2, [r3, #0] + 8002ed2: 485c ldr r0, [pc, #368] @ (8003044 ) + 8002ed4: 000b movs r3, r1 + 8002ed6: 00db lsls r3, r3, #3 + 8002ed8: 1a5b subs r3, r3, r1 + 8002eda: 189b adds r3, r3, r2 + 8002edc: 009b lsls r3, r3, #2 + 8002ede: 581b ldr r3, [r3, r0] + 8002ee0: 18e3 adds r3, r4, r3 + 8002ee2: 63bb str r3, [r7, #56] @ 0x38 vy = ((((int32_t)TempTable[table_row + 1][table_col + 1] - (int32_t)TempTable[table_row + 1][table_col]) * (int32_t)dta) / (int32_t)TAEQUIDISTANCE) + (int32_t)TempTable[table_row + 1][table_col]; - 8002ed0: 2117 movs r1, #23 - 8002ed2: 2228 movs r2, #40 @ 0x28 - 8002ed4: 188b adds r3, r1, r2 - 8002ed6: 19db adds r3, r3, r7 - 8002ed8: 781b ldrb r3, [r3, #0] - 8002eda: 1c58 adds r0, r3, #1 - 8002edc: 233b movs r3, #59 @ 0x3b - 8002ede: 189b adds r3, r3, r2 - 8002ee0: 19db adds r3, r3, r7 - 8002ee2: 781b ldrb r3, [r3, #0] - 8002ee4: 1c5a adds r2, r3, #1 - 8002ee6: 4952 ldr r1, [pc, #328] @ (8003030 ) - 8002ee8: 0003 movs r3, r0 - 8002eea: 00db lsls r3, r3, #3 - 8002eec: 1a1b subs r3, r3, r0 - 8002eee: 189b adds r3, r3, r2 - 8002ef0: 009b lsls r3, r3, #2 - 8002ef2: 585b ldr r3, [r3, r1] - 8002ef4: 001c movs r4, r3 - 8002ef6: 2117 movs r1, #23 - 8002ef8: 2028 movs r0, #40 @ 0x28 - 8002efa: 180b adds r3, r1, r0 - 8002efc: 19db adds r3, r3, r7 - 8002efe: 781b ldrb r3, [r3, #0] - 8002f00: 1c59 adds r1, r3, #1 - 8002f02: 233b movs r3, #59 @ 0x3b - 8002f04: 181b adds r3, r3, r0 - 8002f06: 19db adds r3, r3, r7 - 8002f08: 781a ldrb r2, [r3, #0] - 8002f0a: 4849 ldr r0, [pc, #292] @ (8003030 ) - 8002f0c: 000b movs r3, r1 - 8002f0e: 00db lsls r3, r3, #3 - 8002f10: 1a5b subs r3, r3, r1 - 8002f12: 189b adds r3, r3, r2 - 8002f14: 009b lsls r3, r3, #2 - 8002f16: 581b ldr r3, [r3, r0] - 8002f18: 1ae2 subs r2, r4, r3 - 8002f1a: 6d7b ldr r3, [r7, #84] @ 0x54 - 8002f1c: 4353 muls r3, r2 - 8002f1e: 2164 movs r1, #100 @ 0x64 - 8002f20: 0018 movs r0, r3 - 8002f22: f7fd f97b bl 800021c <__divsi3> - 8002f26: 0003 movs r3, r0 - 8002f28: 001c movs r4, r3 - 8002f2a: 2117 movs r1, #23 - 8002f2c: 2028 movs r0, #40 @ 0x28 - 8002f2e: 180b adds r3, r1, r0 - 8002f30: 19db adds r3, r3, r7 - 8002f32: 781b ldrb r3, [r3, #0] - 8002f34: 1c59 adds r1, r3, #1 - 8002f36: 223b movs r2, #59 @ 0x3b - 8002f38: 1813 adds r3, r2, r0 - 8002f3a: 19db adds r3, r3, r7 - 8002f3c: 781a ldrb r2, [r3, #0] - 8002f3e: 483c ldr r0, [pc, #240] @ (8003030 ) - 8002f40: 000b movs r3, r1 - 8002f42: 00db lsls r3, r3, #3 - 8002f44: 1a5b subs r3, r3, r1 - 8002f46: 189b adds r3, r3, r2 - 8002f48: 009b lsls r3, r3, #2 - 8002f4a: 581b ldr r3, [r3, r0] - 8002f4c: 18e3 adds r3, r4, r3 - 8002f4e: 637b str r3, [r7, #52] @ 0x34 + 8002ee4: 2116 movs r1, #22 + 8002ee6: 2228 movs r2, #40 @ 0x28 + 8002ee8: 188b adds r3, r1, r2 + 8002eea: 19db adds r3, r3, r7 + 8002eec: 881b ldrh r3, [r3, #0] + 8002eee: 1c58 adds r0, r3, #1 + 8002ef0: 233a movs r3, #58 @ 0x3a + 8002ef2: 189b adds r3, r3, r2 + 8002ef4: 19db adds r3, r3, r7 + 8002ef6: 881b ldrh r3, [r3, #0] + 8002ef8: 1c5a adds r2, r3, #1 + 8002efa: 4952 ldr r1, [pc, #328] @ (8003044 ) + 8002efc: 0003 movs r3, r0 + 8002efe: 00db lsls r3, r3, #3 + 8002f00: 1a1b subs r3, r3, r0 + 8002f02: 189b adds r3, r3, r2 + 8002f04: 009b lsls r3, r3, #2 + 8002f06: 585b ldr r3, [r3, r1] + 8002f08: 001c movs r4, r3 + 8002f0a: 2116 movs r1, #22 + 8002f0c: 2028 movs r0, #40 @ 0x28 + 8002f0e: 180b adds r3, r1, r0 + 8002f10: 19db adds r3, r3, r7 + 8002f12: 881b ldrh r3, [r3, #0] + 8002f14: 1c59 adds r1, r3, #1 + 8002f16: 233a movs r3, #58 @ 0x3a + 8002f18: 181b adds r3, r3, r0 + 8002f1a: 19db adds r3, r3, r7 + 8002f1c: 881a ldrh r2, [r3, #0] + 8002f1e: 4849 ldr r0, [pc, #292] @ (8003044 ) + 8002f20: 000b movs r3, r1 + 8002f22: 00db lsls r3, r3, #3 + 8002f24: 1a5b subs r3, r3, r1 + 8002f26: 189b adds r3, r3, r2 + 8002f28: 009b lsls r3, r3, #2 + 8002f2a: 581b ldr r3, [r3, r0] + 8002f2c: 1ae2 subs r2, r4, r3 + 8002f2e: 6d7b ldr r3, [r7, #84] @ 0x54 + 8002f30: 4353 muls r3, r2 + 8002f32: 2164 movs r1, #100 @ 0x64 + 8002f34: 0018 movs r0, r3 + 8002f36: f7fd f971 bl 800021c <__divsi3> + 8002f3a: 0003 movs r3, r0 + 8002f3c: 001c movs r4, r3 + 8002f3e: 2116 movs r1, #22 + 8002f40: 2028 movs r0, #40 @ 0x28 + 8002f42: 180b adds r3, r1, r0 + 8002f44: 19db adds r3, r3, r7 + 8002f46: 881b ldrh r3, [r3, #0] + 8002f48: 1c59 adds r1, r3, #1 + 8002f4a: 223a movs r2, #58 @ 0x3a + 8002f4c: 1813 adds r3, r2, r0 + 8002f4e: 19db adds r3, r3, r7 + 8002f50: 881a ldrh r2, [r3, #0] + 8002f52: 483c ldr r0, [pc, #240] @ (8003044 ) + 8002f54: 000b movs r3, r1 + 8002f56: 00db lsls r3, r3, #3 + 8002f58: 1a5b subs r3, r3, r1 + 8002f5a: 189b adds r3, r3, r2 + 8002f5c: 009b lsls r3, r3, #2 + 8002f5e: 581b ldr r3, [r3, r0] + 8002f60: 18e3 adds r3, r4, r3 + 8002f62: 637b str r3, [r7, #52] @ 0x34 temp_pix[i] = (uint32_t)((vy - vx) * ((int32_t)(vij_pixc[i] + TABLEOFFSET) - (int32_t)YADValues[table_row]) / ydist + (int32_t)vx); - 8002f50: 6b7a ldr r2, [r7, #52] @ 0x34 - 8002f52: 6bbb ldr r3, [r7, #56] @ 0x38 - 8002f54: 1ad0 subs r0, r2, r3 - 8002f56: 4a35 ldr r2, [pc, #212] @ (800302c ) - 8002f58: 6dfb ldr r3, [r7, #92] @ 0x5c - 8002f5a: 009b lsls r3, r3, #2 - 8002f5c: 589b ldr r3, [r3, r2] - 8002f5e: 0019 movs r1, r3 - 8002f60: 2317 movs r3, #23 - 8002f62: 2228 movs r2, #40 @ 0x28 - 8002f64: 189b adds r3, r3, r2 - 8002f66: 19db adds r3, r3, r7 - 8002f68: 781b ldrb r3, [r3, #0] - 8002f6a: 4a32 ldr r2, [pc, #200] @ (8003034 ) - 8002f6c: 009b lsls r3, r3, #2 - 8002f6e: 589b ldr r3, [r3, r2] - 8002f70: 1acb subs r3, r1, r3 - 8002f72: 2280 movs r2, #128 @ 0x80 - 8002f74: 00d2 lsls r2, r2, #3 - 8002f76: 4694 mov ip, r2 - 8002f78: 4463 add r3, ip - 8002f7a: 4343 muls r3, r0 - 8002f7c: 6d39 ldr r1, [r7, #80] @ 0x50 - 8002f7e: 0018 movs r0, r3 - 8002f80: f7fd f94c bl 800021c <__divsi3> - 8002f84: 0003 movs r3, r0 - 8002f86: 001a movs r2, r3 - 8002f88: 6bbb ldr r3, [r7, #56] @ 0x38 - 8002f8a: 18d3 adds r3, r2, r3 - 8002f8c: 0019 movs r1, r3 - 8002f8e: 4a2a ldr r2, [pc, #168] @ (8003038 ) - 8002f90: 6dfb ldr r3, [r7, #92] @ 0x5c - 8002f92: 009b lsls r3, r3, #2 - 8002f94: 5099 str r1, [r3, r2] + 8002f64: 6b7a ldr r2, [r7, #52] @ 0x34 + 8002f66: 6bbb ldr r3, [r7, #56] @ 0x38 + 8002f68: 1ad0 subs r0, r2, r3 + 8002f6a: 4a35 ldr r2, [pc, #212] @ (8003040 ) + 8002f6c: 6dfb ldr r3, [r7, #92] @ 0x5c + 8002f6e: 009b lsls r3, r3, #2 + 8002f70: 589b ldr r3, [r3, r2] + 8002f72: 0019 movs r1, r3 + 8002f74: 2316 movs r3, #22 + 8002f76: 2228 movs r2, #40 @ 0x28 + 8002f78: 189b adds r3, r3, r2 + 8002f7a: 19db adds r3, r3, r7 + 8002f7c: 881b ldrh r3, [r3, #0] + 8002f7e: 4a32 ldr r2, [pc, #200] @ (8003048 ) + 8002f80: 009b lsls r3, r3, #2 + 8002f82: 589b ldr r3, [r3, r2] + 8002f84: 1acb subs r3, r1, r3 + 8002f86: 2280 movs r2, #128 @ 0x80 + 8002f88: 00d2 lsls r2, r2, #3 + 8002f8a: 4694 mov ip, r2 + 8002f8c: 4463 add r3, ip + 8002f8e: 4343 muls r3, r0 + 8002f90: 6d39 ldr r1, [r7, #80] @ 0x50 + 8002f92: 0018 movs r0, r3 + 8002f94: f7fd f942 bl 800021c <__divsi3> + 8002f98: 0003 movs r3, r0 + 8002f9a: 001a movs r2, r3 + 8002f9c: 6bbb ldr r3, [r7, #56] @ 0x38 + 8002f9e: 18d3 adds r3, r2, r3 + 8002fa0: 0019 movs r1, r3 + 8002fa2: 4a2a ldr r2, [pc, #168] @ (800304c ) + 8002fa4: 6dfb ldr r3, [r7, #92] @ 0x5c + 8002fa6: 009b lsls r3, r3, #2 + 8002fa8: 5099 str r1, [r3, r2] // --- GLOBAL OFFSET --- temp_pix[i] = temp_pix[i] + globaloff; - 8002f96: 4a28 ldr r2, [pc, #160] @ (8003038 ) - 8002f98: 6dfb ldr r3, [r7, #92] @ 0x5c - 8002f9a: 009b lsls r3, r3, #2 - 8002f9c: 589a ldr r2, [r3, r2] - 8002f9e: 4b27 ldr r3, [pc, #156] @ (800303c ) - 8002fa0: 781b ldrb r3, [r3, #0] - 8002fa2: b25b sxtb r3, r3 - 8002fa4: 18d1 adds r1, r2, r3 - 8002fa6: 4a24 ldr r2, [pc, #144] @ (8003038 ) - 8002fa8: 6dfb ldr r3, [r7, #92] @ 0x5c - 8002faa: 009b lsls r3, r3, #2 - 8002fac: 5099 str r1, [r3, r2] + 8002faa: 4a28 ldr r2, [pc, #160] @ (800304c ) + 8002fac: 6dfb ldr r3, [r7, #92] @ 0x5c + 8002fae: 009b lsls r3, r3, #2 + 8002fb0: 589a ldr r2, [r3, r2] + 8002fb2: 4b27 ldr r3, [pc, #156] @ (8003050 ) + 8002fb4: 781b ldrb r3, [r3, #0] + 8002fb6: b25b sxtb r3, r3 + 8002fb8: 18d1 adds r1, r2, r3 + 8002fba: 4a24 ldr r2, [pc, #144] @ (800304c ) + 8002fbc: 6dfb ldr r3, [r7, #92] @ 0x5c + 8002fbe: 009b lsls r3, r3, #2 + 8002fc0: 5099 str r1, [r3, r2] dataArray[i] = temp_pix[i] - 2731; - 8002fae: 4a22 ldr r2, [pc, #136] @ (8003038 ) - 8002fb0: 6dfb ldr r3, [r7, #92] @ 0x5c - 8002fb2: 009b lsls r3, r3, #2 - 8002fb4: 5899 ldr r1, [r3, r2] - 8002fb6: 6dfb ldr r3, [r7, #92] @ 0x5c - 8002fb8: 009a lsls r2, r3, #2 - 8002fba: 6afb ldr r3, [r7, #44] @ 0x2c - 8002fbc: 189a adds r2, r3, r2 - 8002fbe: 4b20 ldr r3, [pc, #128] @ (8003040 ) - 8002fc0: 18cb adds r3, r1, r3 - 8002fc2: 6013 str r3, [r2, #0] - for(int i=0; i<32; i++) { + 8002fc2: 4a22 ldr r2, [pc, #136] @ (800304c ) 8002fc4: 6dfb ldr r3, [r7, #92] @ 0x5c - 8002fc6: 3301 adds r3, #1 - 8002fc8: 65fb str r3, [r7, #92] @ 0x5c + 8002fc6: 009b lsls r3, r3, #2 + 8002fc8: 5899 ldr r1, [r3, r2] 8002fca: 6dfb ldr r3, [r7, #92] @ 0x5c - 8002fcc: 2b1f cmp r3, #31 - 8002fce: dc00 bgt.n 8002fd2 - 8002fd0: e672 b.n 8002cb8 + 8002fcc: 009a lsls r2, r3, #2 + 8002fce: 6afb ldr r3, [r7, #44] @ 0x2c + 8002fd0: 189a adds r2, r3, r2 + 8002fd2: 4b20 ldr r3, [pc, #128] @ (8003054 ) + 8002fd4: 18cb adds r3, r1, r3 + 8002fd6: 6013 str r3, [r2, #0] + for(int i=0; i<32; i++) { + 8002fd8: 6dfb ldr r3, [r7, #92] @ 0x5c + 8002fda: 3301 adds r3, #1 + 8002fdc: 65fb str r3, [r7, #92] @ 0x5c + 8002fde: 6dfb ldr r3, [r7, #92] @ 0x5c + 8002fe0: 2b1f cmp r3, #31 + 8002fe2: dc00 bgt.n 8002fe6 + 8002fe4: e66c b.n 8002cc0 } } - 8002fd2: 46c0 nop @ (mov r8, r8) - 8002fd4: 46c0 nop @ (mov r8, r8) - 8002fd6: 46bd mov sp, r7 - 8002fd8: b01b add sp, #108 @ 0x6c - 8002fda: bdf0 pop {r4, r5, r6, r7, pc} - 8002fdc: 200003a0 .word 0x200003a0 - 8002fe0: 20000080 .word 0x20000080 - 8002fe4: 2000039c .word 0x2000039c - 8002fe8: 20000420 .word 0x20000420 - 8002fec: 200000c0 .word 0x200000c0 - 8002ff0: 200004ac .word 0x200004ac - 8002ff4: 200003e0 .word 0x200003e0 - 8002ff8: 2000052c .word 0x2000052c - 8002ffc: 20000100 .word 0x20000100 - 8003000: 20000424 .word 0x20000424 - 8003004: 20000140 .word 0x20000140 - 8003008: 2000039a .word 0x2000039a - 800300c: 20000034 .word 0x20000034 - 8003010: 20000036 .word 0x20000036 - 8003014: 2000003a .word 0x2000003a - 8003018: 20000038 .word 0x20000038 - 800301c: 20000428 .word 0x20000428 - 8003020: 200005ac .word 0x200005ac - 8003024: 05f5e100 .word 0x05f5e100 - 8003028: 2000042c .word 0x2000042c - 800302c: 2000062c .word 0x2000062c - 8003030: 08006270 .word 0x08006270 - 8003034: 0800763c .word 0x0800763c - 8003038: 200006ac .word 0x200006ac - 800303c: 20000032 .word 0x20000032 - 8003040: fffff555 .word 0xfffff555 + 8002fe6: 46c0 nop @ (mov r8, r8) + 8002fe8: 46c0 nop @ (mov r8, r8) + 8002fea: 46bd mov sp, r7 + 8002fec: b01b add sp, #108 @ 0x6c + 8002fee: bdf0 pop {r4, r5, r6, r7, pc} + 8002ff0: 200003a0 .word 0x200003a0 + 8002ff4: 20000080 .word 0x20000080 + 8002ff8: 2000039c .word 0x2000039c + 8002ffc: 20000420 .word 0x20000420 + 8003000: 200000c0 .word 0x200000c0 + 8003004: 200004ac .word 0x200004ac + 8003008: 200003e0 .word 0x200003e0 + 800300c: 2000052c .word 0x2000052c + 8003010: 20000100 .word 0x20000100 + 8003014: 20000424 .word 0x20000424 + 8003018: 20000140 .word 0x20000140 + 800301c: 2000039a .word 0x2000039a + 8003020: 20000034 .word 0x20000034 + 8003024: 20000036 .word 0x20000036 + 8003028: 2000003a .word 0x2000003a + 800302c: 20000038 .word 0x20000038 + 8003030: 20000428 .word 0x20000428 + 8003034: 200005ac .word 0x200005ac + 8003038: 05f5e100 .word 0x05f5e100 + 800303c: 2000042c .word 0x2000042c + 8003040: 2000062c .word 0x2000062c + 8003044: 08006284 .word 0x08006284 + 8003048: 08007650 .word 0x08007650 + 800304c: 200006ac .word 0x200006ac + 8003050: 20000032 .word 0x20000032 + 8003054: fffff555 .word 0xfffff555 -08003044 : +08003058 : * description * * @param address: address of register * @param byte: byte to be written to register */ void HTPA_WriteRegister(uint8_t address, uint8_t byte){ - 8003044: b580 push {r7, lr} - 8003046: b086 sub sp, #24 - 8003048: af04 add r7, sp, #16 - 800304a: 0002 movs r2, r0 - 800304c: 1dfb adds r3, r7, #7 - 800304e: 701a strb r2, [r3, #0] - 8003050: 1dbb adds r3, r7, #6 - 8003052: 1c0a adds r2, r1, #0 - 8003054: 701a strb r2, [r3, #0] + 8003058: b580 push {r7, lr} + 800305a: b086 sub sp, #24 + 800305c: af04 add r7, sp, #16 + 800305e: 0002 movs r2, r0 + 8003060: 1dfb adds r3, r7, #7 + 8003062: 701a strb r2, [r3, #0] + 8003064: 1dbb adds r3, r7, #6 + 8003066: 1c0a adds r2, r1, #0 + 8003068: 701a strb r2, [r3, #0] HAL_I2C_Mem_Write(htpa_hi2c, (HTPA_SENSOR_ADDRESS << 1), address, I2C_MEMADD_SIZE_8BIT, &byte, 1, HTPA_I2C_MAX_DELAY); - 8003056: 4b09 ldr r3, [pc, #36] @ (800307c ) - 8003058: 6818 ldr r0, [r3, #0] - 800305a: 1dfb adds r3, r7, #7 - 800305c: 781b ldrb r3, [r3, #0] - 800305e: b29a uxth r2, r3 - 8003060: 23ff movs r3, #255 @ 0xff - 8003062: 9302 str r3, [sp, #8] - 8003064: 2301 movs r3, #1 - 8003066: 9301 str r3, [sp, #4] - 8003068: 1dbb adds r3, r7, #6 - 800306a: 9300 str r3, [sp, #0] - 800306c: 2301 movs r3, #1 - 800306e: 2134 movs r1, #52 @ 0x34 - 8003070: f001 fcee bl 8004a50 + 800306a: 4b09 ldr r3, [pc, #36] @ (8003090 ) + 800306c: 6818 ldr r0, [r3, #0] + 800306e: 1dfb adds r3, r7, #7 + 8003070: 781b ldrb r3, [r3, #0] + 8003072: b29a uxth r2, r3 + 8003074: 23ff movs r3, #255 @ 0xff + 8003076: 9302 str r3, [sp, #8] + 8003078: 2301 movs r3, #1 + 800307a: 9301 str r3, [sp, #4] + 800307c: 1dbb adds r3, r7, #6 + 800307e: 9300 str r3, [sp, #0] + 8003080: 2301 movs r3, #1 + 8003082: 2134 movs r1, #52 @ 0x34 + 8003084: f001 fcee bl 8004a64 } - 8003074: 46c0 nop @ (mov r8, r8) - 8003076: 46bd mov sp, r7 - 8003078: b002 add sp, #8 - 800307a: bd80 pop {r7, pc} - 800307c: 20000028 .word 0x20000028 + 8003088: 46c0 nop @ (mov r8, r8) + 800308a: 46bd mov sp, r7 + 800308c: b002 add sp, #8 + 800308e: bd80 pop {r7, pc} + 8003090: 20000028 .word 0x20000028 -08003080 : +08003094 : * * @param address: register address * @param pData: pointer to output data array * @param length: length of data to be read */ void HTPA_ReadRegister(uint8_t address, uint8_t *pData, uint16_t length){ - 8003080: b580 push {r7, lr} - 8003082: b086 sub sp, #24 - 8003084: af04 add r7, sp, #16 - 8003086: 6039 str r1, [r7, #0] - 8003088: 0011 movs r1, r2 - 800308a: 1dfb adds r3, r7, #7 - 800308c: 1c02 adds r2, r0, #0 - 800308e: 701a strb r2, [r3, #0] - 8003090: 1d3b adds r3, r7, #4 - 8003092: 1c0a adds r2, r1, #0 - 8003094: 801a strh r2, [r3, #0] - HAL_I2C_Mem_Read(htpa_hi2c, (HTPA_SENSOR_ADDRESS << 1), address, I2C_MEMADD_SIZE_8BIT, pData, length, HTPA_I2C_MAX_DELAY); - 8003096: 4b0a ldr r3, [pc, #40] @ (80030c0 ) - 8003098: 6818 ldr r0, [r3, #0] - 800309a: 1dfb adds r3, r7, #7 - 800309c: 781b ldrb r3, [r3, #0] - 800309e: b29a uxth r2, r3 - 80030a0: 23ff movs r3, #255 @ 0xff - 80030a2: 9302 str r3, [sp, #8] + 8003094: b580 push {r7, lr} + 8003096: b086 sub sp, #24 + 8003098: af04 add r7, sp, #16 + 800309a: 6039 str r1, [r7, #0] + 800309c: 0011 movs r1, r2 + 800309e: 1dfb adds r3, r7, #7 + 80030a0: 1c02 adds r2, r0, #0 + 80030a2: 701a strb r2, [r3, #0] 80030a4: 1d3b adds r3, r7, #4 - 80030a6: 881b ldrh r3, [r3, #0] - 80030a8: 9301 str r3, [sp, #4] - 80030aa: 683b ldr r3, [r7, #0] - 80030ac: 9300 str r3, [sp, #0] - 80030ae: 2301 movs r3, #1 - 80030b0: 2134 movs r1, #52 @ 0x34 - 80030b2: f001 fdfb bl 8004cac + 80030a6: 1c0a adds r2, r1, #0 + 80030a8: 801a strh r2, [r3, #0] + HAL_I2C_Mem_Read(htpa_hi2c, (HTPA_SENSOR_ADDRESS << 1), address, I2C_MEMADD_SIZE_8BIT, pData, length, HTPA_I2C_MAX_DELAY); + 80030aa: 4b0a ldr r3, [pc, #40] @ (80030d4 ) + 80030ac: 6818 ldr r0, [r3, #0] + 80030ae: 1dfb adds r3, r7, #7 + 80030b0: 781b ldrb r3, [r3, #0] + 80030b2: b29a uxth r2, r3 + 80030b4: 23ff movs r3, #255 @ 0xff + 80030b6: 9302 str r3, [sp, #8] + 80030b8: 1d3b adds r3, r7, #4 + 80030ba: 881b ldrh r3, [r3, #0] + 80030bc: 9301 str r3, [sp, #4] + 80030be: 683b ldr r3, [r7, #0] + 80030c0: 9300 str r3, [sp, #0] + 80030c2: 2301 movs r3, #1 + 80030c4: 2134 movs r1, #52 @ 0x34 + 80030c6: f001 fdfb bl 8004cc0 } - 80030b6: 46c0 nop @ (mov r8, r8) - 80030b8: 46bd mov sp, r7 - 80030ba: b002 add sp, #8 - 80030bc: bd80 pop {r7, pc} - 80030be: 46c0 nop @ (mov r8, r8) - 80030c0: 20000028 .word 0x20000028 + 80030ca: 46c0 nop @ (mov r8, r8) + 80030cc: 46bd mov sp, r7 + 80030ce: b002 add sp, #8 + 80030d0: bd80 pop {r7, pc} + 80030d2: 46c0 nop @ (mov r8, r8) + 80030d4: 20000028 .word 0x20000028 -080030c4 : +080030d8 : * * Reads the sensors status register and stores the information in * the htpa_statusReg variable * */ void HTPA_GetStatus(void){ - 80030c4: b580 push {r7, lr} - 80030c6: b082 sub sp, #8 - 80030c8: af00 add r7, sp, #0 + 80030d8: b580 push {r7, lr} + 80030da: b082 sub sp, #8 + 80030dc: af00 add r7, sp, #0 uint8_t i2c_readData = 0; - 80030ca: 1dfb adds r3, r7, #7 - 80030cc: 2200 movs r2, #0 - 80030ce: 701a strb r2, [r3, #0] + 80030de: 1dfb adds r3, r7, #7 + 80030e0: 2200 movs r2, #0 + 80030e2: 701a strb r2, [r3, #0] HTPA_ReadRegister(HTPA_SENSOR_STATUS, &i2c_readData, 1); - 80030d0: 1dfb adds r3, r7, #7 - 80030d2: 2201 movs r2, #1 - 80030d4: 0019 movs r1, r3 - 80030d6: 2002 movs r0, #2 - 80030d8: f7ff ffd2 bl 8003080 + 80030e4: 1dfb adds r3, r7, #7 + 80030e6: 2201 movs r2, #1 + 80030e8: 0019 movs r1, r3 + 80030ea: 2002 movs r0, #2 + 80030ec: f7ff ffd2 bl 8003094 htpa_statusReg.block = (i2c_readData >> 4) & 0x03; - 80030dc: 1dfb adds r3, r7, #7 - 80030de: 781b ldrb r3, [r3, #0] - 80030e0: 091b lsrs r3, r3, #4 - 80030e2: b2db uxtb r3, r3 - 80030e4: 2203 movs r2, #3 - 80030e6: 4013 ands r3, r2 - 80030e8: b2da uxtb r2, r3 - 80030ea: 4b14 ldr r3, [pc, #80] @ (800313c ) - 80030ec: 701a strb r2, [r3, #0] - htpa_statusReg.vdd_meas = (i2c_readData >> 2) & 0x01; - 80030ee: 1dfb adds r3, r7, #7 - 80030f0: 781b ldrb r3, [r3, #0] - 80030f2: 089b lsrs r3, r3, #2 - 80030f4: b2db uxtb r3, r3 - 80030f6: 001a movs r2, r3 - 80030f8: 2301 movs r3, #1 + 80030f0: 1dfb adds r3, r7, #7 + 80030f2: 781b ldrb r3, [r3, #0] + 80030f4: 091b lsrs r3, r3, #4 + 80030f6: b2db uxtb r3, r3 + 80030f8: 2203 movs r2, #3 80030fa: 4013 ands r3, r2 - 80030fc: 1e5a subs r2, r3, #1 - 80030fe: 4193 sbcs r3, r2 - 8003100: b2da uxtb r2, r3 - 8003102: 4b0e ldr r3, [pc, #56] @ (800313c ) - 8003104: 705a strb r2, [r3, #1] + 80030fc: b2da uxtb r2, r3 + 80030fe: 4b14 ldr r3, [pc, #80] @ (8003150 ) + 8003100: 701a strb r2, [r3, #0] + htpa_statusReg.vdd_meas = (i2c_readData >> 2) & 0x01; + 8003102: 1dfb adds r3, r7, #7 + 8003104: 781b ldrb r3, [r3, #0] + 8003106: 089b lsrs r3, r3, #2 + 8003108: b2db uxtb r3, r3 + 800310a: 001a movs r2, r3 + 800310c: 2301 movs r3, #1 + 800310e: 4013 ands r3, r2 + 8003110: 1e5a subs r2, r3, #1 + 8003112: 4193 sbcs r3, r2 + 8003114: b2da uxtb r2, r3 + 8003116: 4b0e ldr r3, [pc, #56] @ (8003150 ) + 8003118: 705a strb r2, [r3, #1] htpa_statusReg.blind = (i2c_readData >> 1) & 0x01; - 8003106: 1dfb adds r3, r7, #7 - 8003108: 781b ldrb r3, [r3, #0] - 800310a: 085b lsrs r3, r3, #1 - 800310c: b2db uxtb r3, r3 - 800310e: 001a movs r2, r3 - 8003110: 2301 movs r3, #1 - 8003112: 4013 ands r3, r2 - 8003114: 1e5a subs r2, r3, #1 - 8003116: 4193 sbcs r3, r2 - 8003118: b2da uxtb r2, r3 - 800311a: 4b08 ldr r3, [pc, #32] @ (800313c ) - 800311c: 709a strb r2, [r3, #2] - htpa_statusReg.eoc = i2c_readData & 0x01; - 800311e: 1dfb adds r3, r7, #7 - 8003120: 781b ldrb r3, [r3, #0] + 800311a: 1dfb adds r3, r7, #7 + 800311c: 781b ldrb r3, [r3, #0] + 800311e: 085b lsrs r3, r3, #1 + 8003120: b2db uxtb r3, r3 8003122: 001a movs r2, r3 8003124: 2301 movs r3, #1 8003126: 4013 ands r3, r2 8003128: 1e5a subs r2, r3, #1 800312a: 4193 sbcs r3, r2 800312c: b2da uxtb r2, r3 - 800312e: 4b03 ldr r3, [pc, #12] @ (800313c ) - 8003130: 70da strb r2, [r3, #3] + 800312e: 4b08 ldr r3, [pc, #32] @ (8003150 ) + 8003130: 709a strb r2, [r3, #2] + htpa_statusReg.eoc = i2c_readData & 0x01; + 8003132: 1dfb adds r3, r7, #7 + 8003134: 781b ldrb r3, [r3, #0] + 8003136: 001a movs r2, r3 + 8003138: 2301 movs r3, #1 + 800313a: 4013 ands r3, r2 + 800313c: 1e5a subs r2, r3, #1 + 800313e: 4193 sbcs r3, r2 + 8003140: b2da uxtb r2, r3 + 8003142: 4b03 ldr r3, [pc, #12] @ (8003150 ) + 8003144: 70da strb r2, [r3, #3] } - 8003132: 46c0 nop @ (mov r8, r8) - 8003134: 46bd mov sp, r7 - 8003136: b002 add sp, #8 - 8003138: bd80 pop {r7, pc} - 800313a: 46c0 nop @ (mov r8, r8) - 800313c: 20000190 .word 0x20000190 + 8003146: 46c0 nop @ (mov r8, r8) + 8003148: 46bd mov sp, r7 + 800314a: b002 add sp, #8 + 800314c: bd80 pop {r7, pc} + 800314e: 46c0 nop @ (mov r8, r8) + 8003150: 20000190 .word 0x20000190 -08003140 : +08003154 : * * Reads the sensors status register and stores the information in * the htpa_statusReg variable * */ uint8_t HTPA_ReadEEPROM_byte(uint16_t address){ - 8003140: b590 push {r4, r7, lr} - 8003142: b089 sub sp, #36 @ 0x24 - 8003144: af04 add r7, sp, #16 - 8003146: 0002 movs r2, r0 - 8003148: 1dbb adds r3, r7, #6 - 800314a: 801a strh r2, [r3, #0] + 8003154: b590 push {r4, r7, lr} + 8003156: b089 sub sp, #36 @ 0x24 + 8003158: af04 add r7, sp, #16 + 800315a: 0002 movs r2, r0 + 800315c: 1dbb adds r3, r7, #6 + 800315e: 801a strh r2, [r3, #0] uint8_t data = 0; - 800314c: 210f movs r1, #15 - 800314e: 187b adds r3, r7, r1 - 8003150: 2200 movs r2, #0 - 8003152: 701a strb r2, [r3, #0] + 8003160: 210f movs r1, #15 + 8003162: 187b adds r3, r7, r1 + 8003164: 2200 movs r2, #0 + 8003166: 701a strb r2, [r3, #0] HAL_I2C_Mem_Read(htpa_hi2c, (HTPA_EEPROM_ADDRESS << 1), address, I2C_MEMADD_SIZE_16BIT, &data, 1, HTPA_I2C_MAX_DELAY); - 8003154: 4b0a ldr r3, [pc, #40] @ (8003180 ) - 8003156: 6818 ldr r0, [r3, #0] - 8003158: 1dbb adds r3, r7, #6 - 800315a: 881a ldrh r2, [r3, #0] - 800315c: 23ff movs r3, #255 @ 0xff - 800315e: 9302 str r3, [sp, #8] - 8003160: 2301 movs r3, #1 - 8003162: 9301 str r3, [sp, #4] - 8003164: 000c movs r4, r1 - 8003166: 187b adds r3, r7, r1 - 8003168: 9300 str r3, [sp, #0] - 800316a: 2302 movs r3, #2 - 800316c: 21a0 movs r1, #160 @ 0xa0 - 800316e: f001 fd9d bl 8004cac + 8003168: 4b0a ldr r3, [pc, #40] @ (8003194 ) + 800316a: 6818 ldr r0, [r3, #0] + 800316c: 1dbb adds r3, r7, #6 + 800316e: 881a ldrh r2, [r3, #0] + 8003170: 23ff movs r3, #255 @ 0xff + 8003172: 9302 str r3, [sp, #8] + 8003174: 2301 movs r3, #1 + 8003176: 9301 str r3, [sp, #4] + 8003178: 000c movs r4, r1 + 800317a: 187b adds r3, r7, r1 + 800317c: 9300 str r3, [sp, #0] + 800317e: 2302 movs r3, #2 + 8003180: 21a0 movs r1, #160 @ 0xa0 + 8003182: f001 fd9d bl 8004cc0 return data; - 8003172: 193b adds r3, r7, r4 - 8003174: 781b ldrb r3, [r3, #0] + 8003186: 193b adds r3, r7, r4 + 8003188: 781b ldrb r3, [r3, #0] } - 8003176: 0018 movs r0, r3 - 8003178: 46bd mov sp, r7 - 800317a: b005 add sp, #20 - 800317c: bd90 pop {r4, r7, pc} - 800317e: 46c0 nop @ (mov r8, r8) - 8003180: 20000028 .word 0x20000028 + 800318a: 0018 movs r0, r3 + 800318c: 46bd mov sp, r7 + 800318e: b005 add sp, #20 + 8003190: bd90 pop {r4, r7, pc} + 8003192: 46c0 nop @ (mov r8, r8) + 8003194: 20000028 .word 0x20000028 -08003184
: +08003198
: /** * @brief The application entry point. * @retval int */ int main(void) { - 8003184: b580 push {r7, lr} - 8003186: af00 add r7, sp, #0 + 8003198: b580 push {r7, lr} + 800319a: af00 add r7, sp, #0 /* USER CODE END 1 */ /* MCU Configuration--------------------------------------------------------*/ /* Reset of all peripherals, Initializes the Flash interface and the Systick. */ HAL_Init(); - 8003188: f000 fdd2 bl 8003d30 + 800319c: f000 fdd2 bl 8003d44 /* USER CODE BEGIN Init */ /* USER CODE END Init */ /* Configure the system clock */ SystemClock_Config(); - 800318c: f000 f86c bl 8003268 + 80031a0: f000 f86c bl 800327c /* USER CODE BEGIN SysInit */ /* USER CODE END SysInit */ /* Initialize all configured peripherals */ MX_GPIO_Init(); - 8003190: f000 f936 bl 8003400 + 80031a4: f000 f936 bl 8003414 MX_CAN_Init(); - 8003194: f000 f8bc bl 8003310 + 80031a8: f000 f8bc bl 8003324 MX_I2C1_Init(); - 8003198: f000 f8f2 bl 8003380 + 80031ac: f000 f8f2 bl 8003394 /* USER CODE BEGIN 2 */ HAL_GPIO_WritePin(LED_GPIO_Port, LED_Pin, GPIO_PIN_SET); - 800319c: 2390 movs r3, #144 @ 0x90 - 800319e: 05db lsls r3, r3, #23 - 80031a0: 2201 movs r2, #1 - 80031a2: 2108 movs r1, #8 - 80031a4: 0018 movs r0, r3 - 80031a6: f001 fb45 bl 8004834 + 80031b0: 2390 movs r3, #144 @ 0x90 + 80031b2: 05db lsls r3, r3, #23 + 80031b4: 2201 movs r2, #1 + 80031b6: 2108 movs r1, #8 + 80031b8: 0018 movs r0, r3 + 80031ba: f001 fb45 bl 8004848 HTPA_Init(&hi2c1); - 80031aa: 4b29 ldr r3, [pc, #164] @ (8003250 ) - 80031ac: 0018 movs r0, r3 - 80031ae: f7ff f867 bl 8002280 + 80031be: 4b29 ldr r3, [pc, #164] @ (8003264 ) + 80031c0: 0018 movs r0, r3 + 80031c2: f7ff f85d bl 8002280 TTS_Init(&hcan); - 80031b2: 4b28 ldr r3, [pc, #160] @ (8003254 ) - 80031b4: 0018 movs r0, r3 - 80031b6: f000 fa97 bl 80036e8 + 80031c6: 4b28 ldr r3, [pc, #160] @ (8003268 ) + 80031c8: 0018 movs r0, r3 + 80031ca: f000 fa97 bl 80036fc HAL_GPIO_WritePin(LED_GPIO_Port, LED_Pin, GPIO_PIN_RESET); - 80031ba: 2390 movs r3, #144 @ 0x90 - 80031bc: 05db lsls r3, r3, #23 - 80031be: 2200 movs r2, #0 - 80031c0: 2108 movs r1, #8 - 80031c2: 0018 movs r0, r3 - 80031c4: f001 fb36 bl 8004834 + 80031ce: 2390 movs r3, #144 @ 0x90 + 80031d0: 05db lsls r3, r3, #23 + 80031d2: 2200 movs r2, #0 + 80031d4: 2108 movs r1, #8 + 80031d6: 0018 movs r0, r3 + 80031d8: f001 fb36 bl 8004848 HAL_CAN_Start(&hcan); - 80031c8: 4b22 ldr r3, [pc, #136] @ (8003254 ) - 80031ca: 0018 movs r0, r3 - 80031cc: f000 ff36 bl 800403c + 80031dc: 4b22 ldr r3, [pc, #136] @ (8003268 ) + 80031de: 0018 movs r0, r3 + 80031e0: f000 ff36 bl 8004050 /* Infinite loop */ /* USER CODE BEGIN WHILE */ while (1) { //* systicks = HAL_GetTick(); - 80031d0: f000 fe08 bl 8003de4 - 80031d4: 0002 movs r2, r0 - 80031d6: 4b20 ldr r3, [pc, #128] @ (8003258 ) - 80031d8: 601a str r2, [r3, #0] + 80031e4: f000 fe08 bl 8003df8 + 80031e8: 0002 movs r2, r0 + 80031ea: 4b20 ldr r3, [pc, #128] @ (800326c ) + 80031ec: 601a str r2, [r3, #0] if((systicks % 100) <= 1){ - 80031da: 4b1f ldr r3, [pc, #124] @ (8003258 ) - 80031dc: 681b ldr r3, [r3, #0] - 80031de: 2164 movs r1, #100 @ 0x64 - 80031e0: 0018 movs r0, r3 - 80031e2: f7fd f817 bl 8000214 <__aeabi_uidivmod> - 80031e6: 000b movs r3, r1 - 80031e8: 2b01 cmp r3, #1 - 80031ea: d81b bhi.n 8003224 + 80031ee: 4b1f ldr r3, [pc, #124] @ (800326c ) + 80031f0: 681b ldr r3, [r3, #0] + 80031f2: 2164 movs r1, #100 @ 0x64 + 80031f4: 0018 movs r0, r3 + 80031f6: f7fd f80d bl 8000214 <__aeabi_uidivmod> + 80031fa: 000b movs r3, r1 + 80031fc: 2b01 cmp r3, #1 + 80031fe: d81b bhi.n 8003238 if(blinkCount >= 9) { - 80031ec: 4b1b ldr r3, [pc, #108] @ (800325c ) - 80031ee: 781b ldrb r3, [r3, #0] - 80031f0: 2b08 cmp r3, #8 - 80031f2: d90a bls.n 800320a + 8003200: 4b1b ldr r3, [pc, #108] @ (8003270 ) + 8003202: 781b ldrb r3, [r3, #0] + 8003204: 2b08 cmp r3, #8 + 8003206: d90a bls.n 800321e HAL_GPIO_WritePin(LED_GPIO_Port, LED_Pin, GPIO_PIN_SET); - 80031f4: 2390 movs r3, #144 @ 0x90 - 80031f6: 05db lsls r3, r3, #23 - 80031f8: 2201 movs r2, #1 - 80031fa: 2108 movs r1, #8 - 80031fc: 0018 movs r0, r3 - 80031fe: f001 fb19 bl 8004834 + 8003208: 2390 movs r3, #144 @ 0x90 + 800320a: 05db lsls r3, r3, #23 + 800320c: 2201 movs r2, #1 + 800320e: 2108 movs r1, #8 + 8003210: 0018 movs r0, r3 + 8003212: f001 fb19 bl 8004848 blinkCount = 0; - 8003202: 4b16 ldr r3, [pc, #88] @ (800325c ) - 8003204: 2200 movs r2, #0 - 8003206: 701a strb r2, [r3, #0] - 8003208: e00c b.n 8003224 + 8003216: 4b16 ldr r3, [pc, #88] @ (8003270 ) + 8003218: 2200 movs r2, #0 + 800321a: 701a strb r2, [r3, #0] + 800321c: e00c b.n 8003238 } else { HAL_GPIO_WritePin(LED_GPIO_Port, LED_Pin, GPIO_PIN_RESET); - 800320a: 2390 movs r3, #144 @ 0x90 - 800320c: 05db lsls r3, r3, #23 - 800320e: 2200 movs r2, #0 - 8003210: 2108 movs r1, #8 - 8003212: 0018 movs r0, r3 - 8003214: f001 fb0e bl 8004834 + 800321e: 2390 movs r3, #144 @ 0x90 + 8003220: 05db lsls r3, r3, #23 + 8003222: 2200 movs r2, #0 + 8003224: 2108 movs r1, #8 + 8003226: 0018 movs r0, r3 + 8003228: f001 fb0e bl 8004848 blinkCount++; - 8003218: 4b10 ldr r3, [pc, #64] @ (800325c ) - 800321a: 781b ldrb r3, [r3, #0] - 800321c: 3301 adds r3, #1 - 800321e: b2da uxtb r2, r3 - 8003220: 4b0e ldr r3, [pc, #56] @ (800325c ) - 8003222: 701a strb r2, [r3, #0] + 800322c: 4b10 ldr r3, [pc, #64] @ (8003270 ) + 800322e: 781b ldrb r3, [r3, #0] + 8003230: 3301 adds r3, #1 + 8003232: b2da uxtb r2, r3 + 8003234: 4b0e ldr r3, [pc, #56] @ (8003270 ) + 8003236: 701a strb r2, [r3, #0] } } HTPA_ReadSensor(pixelTemps); - 8003224: 4b0e ldr r3, [pc, #56] @ (8003260 ) - 8003226: 0018 movs r0, r3 - 8003228: f7ff fc0e bl 8002a48 - TTS_TireZones(pixelTemps,tireTemps); - 800322c: 4a0d ldr r2, [pc, #52] @ (8003264 ) - 800322e: 4b0c ldr r3, [pc, #48] @ (8003260 ) - 8003230: 0011 movs r1, r2 - 8003232: 0018 movs r0, r3 - 8003234: f000 fb0e bl 8003854 - TTS_SendCAN(tireTemps); - 8003238: 4b0a ldr r3, [pc, #40] @ (8003264 ) + 8003238: 4b0e ldr r3, [pc, #56] @ (8003274 ) 800323a: 0018 movs r0, r3 - 800323c: f000 fa9a bl 8003774 - HAL_GPIO_TogglePin(LED_GPIO_Port,LED_Pin); - 8003240: 2390 movs r3, #144 @ 0x90 - 8003242: 05db lsls r3, r3, #23 - 8003244: 2108 movs r1, #8 + 800323c: f7ff fc04 bl 8002a48 + TTS_TireZones(pixelTemps,tireTemps); + 8003240: 4a0d ldr r2, [pc, #52] @ (8003278 ) + 8003242: 4b0c ldr r3, [pc, #48] @ (8003274 ) + 8003244: 0011 movs r1, r2 8003246: 0018 movs r0, r3 - 8003248: f001 fb11 bl 800486e + 8003248: f000 fb0e bl 8003868 + TTS_SendCAN(tireTemps); + 800324c: 4b0a ldr r3, [pc, #40] @ (8003278 ) + 800324e: 0018 movs r0, r3 + 8003250: f000 fa9a bl 8003788 + HAL_GPIO_TogglePin(LED_GPIO_Port,LED_Pin); + 8003254: 2390 movs r3, #144 @ 0x90 + 8003256: 05db lsls r3, r3, #23 + 8003258: 2108 movs r1, #8 + 800325a: 0018 movs r0, r3 + 800325c: f001 fb11 bl 8004882 systicks = HAL_GetTick(); - 800324c: e7c0 b.n 80031d0 - 800324e: 46c0 nop @ (mov r8, r8) - 8003250: 20000758 .word 0x20000758 - 8003254: 20000730 .word 0x20000730 - 8003258: 20000840 .word 0x20000840 - 800325c: 20000844 .word 0x20000844 - 8003260: 200007ac .word 0x200007ac - 8003264: 2000082c .word 0x2000082c + 8003260: e7c0 b.n 80031e4 + 8003262: 46c0 nop @ (mov r8, r8) + 8003264: 20000758 .word 0x20000758 + 8003268: 20000730 .word 0x20000730 + 800326c: 20000840 .word 0x20000840 + 8003270: 20000844 .word 0x20000844 + 8003274: 200007ac .word 0x200007ac + 8003278: 2000082c .word 0x2000082c -08003268 : +0800327c : /** * @brief System Clock Configuration * @retval None */ void SystemClock_Config(void) { - 8003268: b590 push {r4, r7, lr} - 800326a: b099 sub sp, #100 @ 0x64 - 800326c: af00 add r7, sp, #0 + 800327c: b590 push {r4, r7, lr} + 800327e: b099 sub sp, #100 @ 0x64 + 8003280: af00 add r7, sp, #0 RCC_OscInitTypeDef RCC_OscInitStruct = {0}; - 800326e: 242c movs r4, #44 @ 0x2c - 8003270: 193b adds r3, r7, r4 - 8003272: 0018 movs r0, r3 - 8003274: 2334 movs r3, #52 @ 0x34 - 8003276: 001a movs r2, r3 - 8003278: 2100 movs r1, #0 - 800327a: f002 ffa1 bl 80061c0 + 8003282: 242c movs r4, #44 @ 0x2c + 8003284: 193b adds r3, r7, r4 + 8003286: 0018 movs r0, r3 + 8003288: 2334 movs r3, #52 @ 0x34 + 800328a: 001a movs r2, r3 + 800328c: 2100 movs r1, #0 + 800328e: f002 ffa1 bl 80061d4 RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; - 800327e: 231c movs r3, #28 - 8003280: 18fb adds r3, r7, r3 - 8003282: 0018 movs r0, r3 - 8003284: 2310 movs r3, #16 - 8003286: 001a movs r2, r3 - 8003288: 2100 movs r1, #0 - 800328a: f002 ff99 bl 80061c0 + 8003292: 231c movs r3, #28 + 8003294: 18fb adds r3, r7, r3 + 8003296: 0018 movs r0, r3 + 8003298: 2310 movs r3, #16 + 800329a: 001a movs r2, r3 + 800329c: 2100 movs r1, #0 + 800329e: f002 ff99 bl 80061d4 RCC_PeriphCLKInitTypeDef PeriphClkInit = {0}; - 800328e: 1d3b adds r3, r7, #4 - 8003290: 0018 movs r0, r3 - 8003292: 2318 movs r3, #24 - 8003294: 001a movs r2, r3 - 8003296: 2100 movs r1, #0 - 8003298: f002 ff92 bl 80061c0 + 80032a2: 1d3b adds r3, r7, #4 + 80032a4: 0018 movs r0, r3 + 80032a6: 2318 movs r3, #24 + 80032a8: 001a movs r2, r3 + 80032aa: 2100 movs r1, #0 + 80032ac: f002 ff92 bl 80061d4 /** Initializes the RCC Oscillators according to the specified parameters * in the RCC_OscInitTypeDef structure. */ RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE; - 800329c: 193b adds r3, r7, r4 - 800329e: 2201 movs r2, #1 - 80032a0: 601a str r2, [r3, #0] + 80032b0: 193b adds r3, r7, r4 + 80032b2: 2201 movs r2, #1 + 80032b4: 601a str r2, [r3, #0] RCC_OscInitStruct.HSEState = RCC_HSE_ON; - 80032a2: 193b adds r3, r7, r4 - 80032a4: 2201 movs r2, #1 - 80032a6: 605a str r2, [r3, #4] + 80032b6: 193b adds r3, r7, r4 + 80032b8: 2201 movs r2, #1 + 80032ba: 605a str r2, [r3, #4] RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE; - 80032a8: 193b adds r3, r7, r4 - 80032aa: 2200 movs r2, #0 - 80032ac: 625a str r2, [r3, #36] @ 0x24 + 80032bc: 193b adds r3, r7, r4 + 80032be: 2200 movs r2, #0 + 80032c0: 625a str r2, [r3, #36] @ 0x24 if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) - 80032ae: 193b adds r3, r7, r4 - 80032b0: 0018 movs r0, r3 - 80032b2: f002 f9c3 bl 800563c - 80032b6: 1e03 subs r3, r0, #0 - 80032b8: d001 beq.n 80032be + 80032c2: 193b adds r3, r7, r4 + 80032c4: 0018 movs r0, r3 + 80032c6: f002 f9c3 bl 8005650 + 80032ca: 1e03 subs r3, r0, #0 + 80032cc: d001 beq.n 80032d2 { Error_Handler(); - 80032ba: f000 f8f7 bl 80034ac + 80032ce: f000 f8f7 bl 80034c0 } /** Initializes the CPU, AHB and APB buses clocks */ RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK - 80032be: 211c movs r1, #28 - 80032c0: 187b adds r3, r7, r1 - 80032c2: 2207 movs r2, #7 - 80032c4: 601a str r2, [r3, #0] + 80032d2: 211c movs r1, #28 + 80032d4: 187b adds r3, r7, r1 + 80032d6: 2207 movs r2, #7 + 80032d8: 601a str r2, [r3, #0] |RCC_CLOCKTYPE_PCLK1; RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_HSE; - 80032c6: 187b adds r3, r7, r1 - 80032c8: 2201 movs r2, #1 - 80032ca: 605a str r2, [r3, #4] + 80032da: 187b adds r3, r7, r1 + 80032dc: 2201 movs r2, #1 + 80032de: 605a str r2, [r3, #4] RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1; - 80032cc: 187b adds r3, r7, r1 - 80032ce: 2200 movs r2, #0 - 80032d0: 609a str r2, [r3, #8] + 80032e0: 187b adds r3, r7, r1 + 80032e2: 2200 movs r2, #0 + 80032e4: 609a str r2, [r3, #8] RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1; - 80032d2: 187b adds r3, r7, r1 - 80032d4: 2200 movs r2, #0 - 80032d6: 60da str r2, [r3, #12] + 80032e6: 187b adds r3, r7, r1 + 80032e8: 2200 movs r2, #0 + 80032ea: 60da str r2, [r3, #12] if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_0) != HAL_OK) - 80032d8: 187b adds r3, r7, r1 - 80032da: 2100 movs r1, #0 - 80032dc: 0018 movs r0, r3 - 80032de: f002 fd33 bl 8005d48 - 80032e2: 1e03 subs r3, r0, #0 - 80032e4: d001 beq.n 80032ea + 80032ec: 187b adds r3, r7, r1 + 80032ee: 2100 movs r1, #0 + 80032f0: 0018 movs r0, r3 + 80032f2: f002 fd33 bl 8005d5c + 80032f6: 1e03 subs r3, r0, #0 + 80032f8: d001 beq.n 80032fe { Error_Handler(); - 80032e6: f000 f8e1 bl 80034ac + 80032fa: f000 f8e1 bl 80034c0 } PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_I2C1; - 80032ea: 1d3b adds r3, r7, #4 - 80032ec: 2220 movs r2, #32 - 80032ee: 601a str r2, [r3, #0] + 80032fe: 1d3b adds r3, r7, #4 + 8003300: 2220 movs r2, #32 + 8003302: 601a str r2, [r3, #0] PeriphClkInit.I2c1ClockSelection = RCC_I2C1CLKSOURCE_SYSCLK; - 80032f0: 1d3b adds r3, r7, #4 - 80032f2: 2210 movs r2, #16 - 80032f4: 60da str r2, [r3, #12] + 8003304: 1d3b adds r3, r7, #4 + 8003306: 2210 movs r2, #16 + 8003308: 60da str r2, [r3, #12] if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK) - 80032f6: 1d3b adds r3, r7, #4 - 80032f8: 0018 movs r0, r3 - 80032fa: f002 fe73 bl 8005fe4 - 80032fe: 1e03 subs r3, r0, #0 - 8003300: d001 beq.n 8003306 + 800330a: 1d3b adds r3, r7, #4 + 800330c: 0018 movs r0, r3 + 800330e: f002 fe73 bl 8005ff8 + 8003312: 1e03 subs r3, r0, #0 + 8003314: d001 beq.n 800331a { Error_Handler(); - 8003302: f000 f8d3 bl 80034ac + 8003316: f000 f8d3 bl 80034c0 } } - 8003306: 46c0 nop @ (mov r8, r8) - 8003308: 46bd mov sp, r7 - 800330a: b019 add sp, #100 @ 0x64 - 800330c: bd90 pop {r4, r7, pc} + 800331a: 46c0 nop @ (mov r8, r8) + 800331c: 46bd mov sp, r7 + 800331e: b019 add sp, #100 @ 0x64 + 8003320: bd90 pop {r4, r7, pc} ... -08003310 : +08003324 : * @brief CAN Initialization Function * @param None * @retval None */ static void MX_CAN_Init(void) { - 8003310: b580 push {r7, lr} - 8003312: af00 add r7, sp, #0 + 8003324: b580 push {r7, lr} + 8003326: af00 add r7, sp, #0 /* USER CODE END CAN_Init 0 */ /* USER CODE BEGIN CAN_Init 1 */ /* USER CODE END CAN_Init 1 */ hcan.Instance = CAN; - 8003314: 4b18 ldr r3, [pc, #96] @ (8003378 ) - 8003316: 4a19 ldr r2, [pc, #100] @ (800337c ) - 8003318: 601a str r2, [r3, #0] + 8003328: 4b18 ldr r3, [pc, #96] @ (800338c ) + 800332a: 4a19 ldr r2, [pc, #100] @ (8003390 ) + 800332c: 601a str r2, [r3, #0] hcan.Init.Prescaler = 2; - 800331a: 4b17 ldr r3, [pc, #92] @ (8003378 ) - 800331c: 2202 movs r2, #2 - 800331e: 605a str r2, [r3, #4] + 800332e: 4b17 ldr r3, [pc, #92] @ (800338c ) + 8003330: 2202 movs r2, #2 + 8003332: 605a str r2, [r3, #4] hcan.Init.Mode = CAN_MODE_NORMAL; - 8003320: 4b15 ldr r3, [pc, #84] @ (8003378 ) - 8003322: 2200 movs r2, #0 - 8003324: 609a str r2, [r3, #8] + 8003334: 4b15 ldr r3, [pc, #84] @ (800338c ) + 8003336: 2200 movs r2, #0 + 8003338: 609a str r2, [r3, #8] hcan.Init.SyncJumpWidth = CAN_SJW_1TQ; - 8003326: 4b14 ldr r3, [pc, #80] @ (8003378 ) - 8003328: 2200 movs r2, #0 - 800332a: 60da str r2, [r3, #12] + 800333a: 4b14 ldr r3, [pc, #80] @ (800338c ) + 800333c: 2200 movs r2, #0 + 800333e: 60da str r2, [r3, #12] hcan.Init.TimeSeg1 = CAN_BS1_13TQ; - 800332c: 4b12 ldr r3, [pc, #72] @ (8003378 ) - 800332e: 22c0 movs r2, #192 @ 0xc0 - 8003330: 0312 lsls r2, r2, #12 - 8003332: 611a str r2, [r3, #16] + 8003340: 4b12 ldr r3, [pc, #72] @ (800338c ) + 8003342: 22c0 movs r2, #192 @ 0xc0 + 8003344: 0312 lsls r2, r2, #12 + 8003346: 611a str r2, [r3, #16] hcan.Init.TimeSeg2 = CAN_BS2_2TQ; - 8003334: 4b10 ldr r3, [pc, #64] @ (8003378 ) - 8003336: 2280 movs r2, #128 @ 0x80 - 8003338: 0352 lsls r2, r2, #13 - 800333a: 615a str r2, [r3, #20] + 8003348: 4b10 ldr r3, [pc, #64] @ (800338c ) + 800334a: 2280 movs r2, #128 @ 0x80 + 800334c: 0352 lsls r2, r2, #13 + 800334e: 615a str r2, [r3, #20] hcan.Init.TimeTriggeredMode = DISABLE; - 800333c: 4b0e ldr r3, [pc, #56] @ (8003378 ) - 800333e: 2200 movs r2, #0 - 8003340: 761a strb r2, [r3, #24] + 8003350: 4b0e ldr r3, [pc, #56] @ (800338c ) + 8003352: 2200 movs r2, #0 + 8003354: 761a strb r2, [r3, #24] hcan.Init.AutoBusOff = DISABLE; - 8003342: 4b0d ldr r3, [pc, #52] @ (8003378 ) - 8003344: 2200 movs r2, #0 - 8003346: 765a strb r2, [r3, #25] + 8003356: 4b0d ldr r3, [pc, #52] @ (800338c ) + 8003358: 2200 movs r2, #0 + 800335a: 765a strb r2, [r3, #25] hcan.Init.AutoWakeUp = DISABLE; - 8003348: 4b0b ldr r3, [pc, #44] @ (8003378 ) - 800334a: 2200 movs r2, #0 - 800334c: 769a strb r2, [r3, #26] + 800335c: 4b0b ldr r3, [pc, #44] @ (800338c ) + 800335e: 2200 movs r2, #0 + 8003360: 769a strb r2, [r3, #26] hcan.Init.AutoRetransmission = DISABLE; - 800334e: 4b0a ldr r3, [pc, #40] @ (8003378 ) - 8003350: 2200 movs r2, #0 - 8003352: 76da strb r2, [r3, #27] + 8003362: 4b0a ldr r3, [pc, #40] @ (800338c ) + 8003364: 2200 movs r2, #0 + 8003366: 76da strb r2, [r3, #27] hcan.Init.ReceiveFifoLocked = DISABLE; - 8003354: 4b08 ldr r3, [pc, #32] @ (8003378 ) - 8003356: 2200 movs r2, #0 - 8003358: 771a strb r2, [r3, #28] + 8003368: 4b08 ldr r3, [pc, #32] @ (800338c ) + 800336a: 2200 movs r2, #0 + 800336c: 771a strb r2, [r3, #28] hcan.Init.TransmitFifoPriority = DISABLE; - 800335a: 4b07 ldr r3, [pc, #28] @ (8003378 ) - 800335c: 2200 movs r2, #0 - 800335e: 775a strb r2, [r3, #29] + 800336e: 4b07 ldr r3, [pc, #28] @ (800338c ) + 8003370: 2200 movs r2, #0 + 8003372: 775a strb r2, [r3, #29] if (HAL_CAN_Init(&hcan) != HAL_OK) - 8003360: 4b05 ldr r3, [pc, #20] @ (8003378 ) - 8003362: 0018 movs r0, r3 - 8003364: f000 fd6c bl 8003e40 - 8003368: 1e03 subs r3, r0, #0 - 800336a: d001 beq.n 8003370 + 8003374: 4b05 ldr r3, [pc, #20] @ (800338c ) + 8003376: 0018 movs r0, r3 + 8003378: f000 fd6c bl 8003e54 + 800337c: 1e03 subs r3, r0, #0 + 800337e: d001 beq.n 8003384 { Error_Handler(); - 800336c: f000 f89e bl 80034ac + 8003380: f000 f89e bl 80034c0 } /* USER CODE BEGIN CAN_Init 2 */ /* USER CODE END CAN_Init 2 */ } - 8003370: 46c0 nop @ (mov r8, r8) - 8003372: 46bd mov sp, r7 - 8003374: bd80 pop {r7, pc} - 8003376: 46c0 nop @ (mov r8, r8) - 8003378: 20000730 .word 0x20000730 - 800337c: 40006400 .word 0x40006400 + 8003384: 46c0 nop @ (mov r8, r8) + 8003386: 46bd mov sp, r7 + 8003388: bd80 pop {r7, pc} + 800338a: 46c0 nop @ (mov r8, r8) + 800338c: 20000730 .word 0x20000730 + 8003390: 40006400 .word 0x40006400 -08003380 : +08003394 : * @brief I2C1 Initialization Function * @param None * @retval None */ static void MX_I2C1_Init(void) { - 8003380: b580 push {r7, lr} - 8003382: af00 add r7, sp, #0 + 8003394: b580 push {r7, lr} + 8003396: af00 add r7, sp, #0 /* USER CODE END I2C1_Init 0 */ /* USER CODE BEGIN I2C1_Init 1 */ /* USER CODE END I2C1_Init 1 */ hi2c1.Instance = I2C1; - 8003384: 4b1b ldr r3, [pc, #108] @ (80033f4 ) - 8003386: 4a1c ldr r2, [pc, #112] @ (80033f8 ) - 8003388: 601a str r2, [r3, #0] + 8003398: 4b1b ldr r3, [pc, #108] @ (8003408 ) + 800339a: 4a1c ldr r2, [pc, #112] @ (800340c ) + 800339c: 601a str r2, [r3, #0] hi2c1.Init.Timing = 0x00300617; - 800338a: 4b1a ldr r3, [pc, #104] @ (80033f4 ) - 800338c: 4a1b ldr r2, [pc, #108] @ (80033fc ) - 800338e: 605a str r2, [r3, #4] + 800339e: 4b1a ldr r3, [pc, #104] @ (8003408 ) + 80033a0: 4a1b ldr r2, [pc, #108] @ (8003410 ) + 80033a2: 605a str r2, [r3, #4] hi2c1.Init.OwnAddress1 = 0; - 8003390: 4b18 ldr r3, [pc, #96] @ (80033f4 ) - 8003392: 2200 movs r2, #0 - 8003394: 609a str r2, [r3, #8] + 80033a4: 4b18 ldr r3, [pc, #96] @ (8003408 ) + 80033a6: 2200 movs r2, #0 + 80033a8: 609a str r2, [r3, #8] hi2c1.Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT; - 8003396: 4b17 ldr r3, [pc, #92] @ (80033f4 ) - 8003398: 2201 movs r2, #1 - 800339a: 60da str r2, [r3, #12] + 80033aa: 4b17 ldr r3, [pc, #92] @ (8003408 ) + 80033ac: 2201 movs r2, #1 + 80033ae: 60da str r2, [r3, #12] hi2c1.Init.DualAddressMode = I2C_DUALADDRESS_DISABLE; - 800339c: 4b15 ldr r3, [pc, #84] @ (80033f4 ) - 800339e: 2200 movs r2, #0 - 80033a0: 611a str r2, [r3, #16] + 80033b0: 4b15 ldr r3, [pc, #84] @ (8003408 ) + 80033b2: 2200 movs r2, #0 + 80033b4: 611a str r2, [r3, #16] hi2c1.Init.OwnAddress2 = 0; - 80033a2: 4b14 ldr r3, [pc, #80] @ (80033f4 ) - 80033a4: 2200 movs r2, #0 - 80033a6: 615a str r2, [r3, #20] + 80033b6: 4b14 ldr r3, [pc, #80] @ (8003408 ) + 80033b8: 2200 movs r2, #0 + 80033ba: 615a str r2, [r3, #20] hi2c1.Init.OwnAddress2Masks = I2C_OA2_NOMASK; - 80033a8: 4b12 ldr r3, [pc, #72] @ (80033f4 ) - 80033aa: 2200 movs r2, #0 - 80033ac: 619a str r2, [r3, #24] + 80033bc: 4b12 ldr r3, [pc, #72] @ (8003408 ) + 80033be: 2200 movs r2, #0 + 80033c0: 619a str r2, [r3, #24] hi2c1.Init.GeneralCallMode = I2C_GENERALCALL_DISABLE; - 80033ae: 4b11 ldr r3, [pc, #68] @ (80033f4 ) - 80033b0: 2200 movs r2, #0 - 80033b2: 61da str r2, [r3, #28] + 80033c2: 4b11 ldr r3, [pc, #68] @ (8003408 ) + 80033c4: 2200 movs r2, #0 + 80033c6: 61da str r2, [r3, #28] hi2c1.Init.NoStretchMode = I2C_NOSTRETCH_DISABLE; - 80033b4: 4b0f ldr r3, [pc, #60] @ (80033f4 ) - 80033b6: 2200 movs r2, #0 - 80033b8: 621a str r2, [r3, #32] + 80033c8: 4b0f ldr r3, [pc, #60] @ (8003408 ) + 80033ca: 2200 movs r2, #0 + 80033cc: 621a str r2, [r3, #32] if (HAL_I2C_Init(&hi2c1) != HAL_OK) - 80033ba: 4b0e ldr r3, [pc, #56] @ (80033f4 ) - 80033bc: 0018 movs r0, r3 - 80033be: f001 fa71 bl 80048a4 - 80033c2: 1e03 subs r3, r0, #0 - 80033c4: d001 beq.n 80033ca + 80033ce: 4b0e ldr r3, [pc, #56] @ (8003408 ) + 80033d0: 0018 movs r0, r3 + 80033d2: f001 fa71 bl 80048b8 + 80033d6: 1e03 subs r3, r0, #0 + 80033d8: d001 beq.n 80033de { Error_Handler(); - 80033c6: f000 f871 bl 80034ac + 80033da: f000 f871 bl 80034c0 } /** Configure Analogue filter */ if (HAL_I2CEx_ConfigAnalogFilter(&hi2c1, I2C_ANALOGFILTER_ENABLE) != HAL_OK) - 80033ca: 4b0a ldr r3, [pc, #40] @ (80033f4 ) - 80033cc: 2100 movs r1, #0 - 80033ce: 0018 movs r0, r3 - 80033d0: f002 f89c bl 800550c - 80033d4: 1e03 subs r3, r0, #0 - 80033d6: d001 beq.n 80033dc + 80033de: 4b0a ldr r3, [pc, #40] @ (8003408 ) + 80033e0: 2100 movs r1, #0 + 80033e2: 0018 movs r0, r3 + 80033e4: f002 f89c bl 8005520 + 80033e8: 1e03 subs r3, r0, #0 + 80033ea: d001 beq.n 80033f0 { Error_Handler(); - 80033d8: f000 f868 bl 80034ac + 80033ec: f000 f868 bl 80034c0 } /** Configure Digital filter */ if (HAL_I2CEx_ConfigDigitalFilter(&hi2c1, 0) != HAL_OK) - 80033dc: 4b05 ldr r3, [pc, #20] @ (80033f4 ) - 80033de: 2100 movs r1, #0 - 80033e0: 0018 movs r0, r3 - 80033e2: f002 f8df bl 80055a4 - 80033e6: 1e03 subs r3, r0, #0 - 80033e8: d001 beq.n 80033ee + 80033f0: 4b05 ldr r3, [pc, #20] @ (8003408 ) + 80033f2: 2100 movs r1, #0 + 80033f4: 0018 movs r0, r3 + 80033f6: f002 f8df bl 80055b8 + 80033fa: 1e03 subs r3, r0, #0 + 80033fc: d001 beq.n 8003402 { Error_Handler(); - 80033ea: f000 f85f bl 80034ac + 80033fe: f000 f85f bl 80034c0 } /* USER CODE BEGIN I2C1_Init 2 */ /* USER CODE END I2C1_Init 2 */ } - 80033ee: 46c0 nop @ (mov r8, r8) - 80033f0: 46bd mov sp, r7 - 80033f2: bd80 pop {r7, pc} - 80033f4: 20000758 .word 0x20000758 - 80033f8: 40005400 .word 0x40005400 - 80033fc: 00300617 .word 0x00300617 + 8003402: 46c0 nop @ (mov r8, r8) + 8003404: 46bd mov sp, r7 + 8003406: bd80 pop {r7, pc} + 8003408: 20000758 .word 0x20000758 + 800340c: 40005400 .word 0x40005400 + 8003410: 00300617 .word 0x00300617 -08003400 : +08003414 : * @brief GPIO Initialization Function * @param None * @retval None */ static void MX_GPIO_Init(void) { - 8003400: b590 push {r4, r7, lr} - 8003402: b089 sub sp, #36 @ 0x24 - 8003404: af00 add r7, sp, #0 + 8003414: b590 push {r4, r7, lr} + 8003416: b089 sub sp, #36 @ 0x24 + 8003418: af00 add r7, sp, #0 GPIO_InitTypeDef GPIO_InitStruct = {0}; - 8003406: 240c movs r4, #12 - 8003408: 193b adds r3, r7, r4 - 800340a: 0018 movs r0, r3 - 800340c: 2314 movs r3, #20 - 800340e: 001a movs r2, r3 - 8003410: 2100 movs r1, #0 - 8003412: f002 fed5 bl 80061c0 + 800341a: 240c movs r4, #12 + 800341c: 193b adds r3, r7, r4 + 800341e: 0018 movs r0, r3 + 8003420: 2314 movs r3, #20 + 8003422: 001a movs r2, r3 + 8003424: 2100 movs r1, #0 + 8003426: f002 fed5 bl 80061d4 /* USER CODE BEGIN MX_GPIO_Init_1 */ /* USER CODE END MX_GPIO_Init_1 */ /* GPIO Ports Clock Enable */ __HAL_RCC_GPIOF_CLK_ENABLE(); - 8003416: 4b24 ldr r3, [pc, #144] @ (80034a8 ) - 8003418: 695a ldr r2, [r3, #20] - 800341a: 4b23 ldr r3, [pc, #140] @ (80034a8 ) - 800341c: 2180 movs r1, #128 @ 0x80 - 800341e: 03c9 lsls r1, r1, #15 - 8003420: 430a orrs r2, r1 - 8003422: 615a str r2, [r3, #20] - 8003424: 4b20 ldr r3, [pc, #128] @ (80034a8 ) - 8003426: 695a ldr r2, [r3, #20] - 8003428: 2380 movs r3, #128 @ 0x80 - 800342a: 03db lsls r3, r3, #15 - 800342c: 4013 ands r3, r2 - 800342e: 60bb str r3, [r7, #8] - 8003430: 68bb ldr r3, [r7, #8] + 800342a: 4b24 ldr r3, [pc, #144] @ (80034bc ) + 800342c: 695a ldr r2, [r3, #20] + 800342e: 4b23 ldr r3, [pc, #140] @ (80034bc ) + 8003430: 2180 movs r1, #128 @ 0x80 + 8003432: 03c9 lsls r1, r1, #15 + 8003434: 430a orrs r2, r1 + 8003436: 615a str r2, [r3, #20] + 8003438: 4b20 ldr r3, [pc, #128] @ (80034bc ) + 800343a: 695a ldr r2, [r3, #20] + 800343c: 2380 movs r3, #128 @ 0x80 + 800343e: 03db lsls r3, r3, #15 + 8003440: 4013 ands r3, r2 + 8003442: 60bb str r3, [r7, #8] + 8003444: 68bb ldr r3, [r7, #8] __HAL_RCC_GPIOA_CLK_ENABLE(); - 8003432: 4b1d ldr r3, [pc, #116] @ (80034a8 ) - 8003434: 695a ldr r2, [r3, #20] - 8003436: 4b1c ldr r3, [pc, #112] @ (80034a8 ) - 8003438: 2180 movs r1, #128 @ 0x80 - 800343a: 0289 lsls r1, r1, #10 - 800343c: 430a orrs r2, r1 - 800343e: 615a str r2, [r3, #20] - 8003440: 4b19 ldr r3, [pc, #100] @ (80034a8 ) - 8003442: 695a ldr r2, [r3, #20] - 8003444: 2380 movs r3, #128 @ 0x80 - 8003446: 029b lsls r3, r3, #10 - 8003448: 4013 ands r3, r2 - 800344a: 607b str r3, [r7, #4] - 800344c: 687b ldr r3, [r7, #4] + 8003446: 4b1d ldr r3, [pc, #116] @ (80034bc ) + 8003448: 695a ldr r2, [r3, #20] + 800344a: 4b1c ldr r3, [pc, #112] @ (80034bc ) + 800344c: 2180 movs r1, #128 @ 0x80 + 800344e: 0289 lsls r1, r1, #10 + 8003450: 430a orrs r2, r1 + 8003452: 615a str r2, [r3, #20] + 8003454: 4b19 ldr r3, [pc, #100] @ (80034bc ) + 8003456: 695a ldr r2, [r3, #20] + 8003458: 2380 movs r3, #128 @ 0x80 + 800345a: 029b lsls r3, r3, #10 + 800345c: 4013 ands r3, r2 + 800345e: 607b str r3, [r7, #4] + 8003460: 687b ldr r3, [r7, #4] __HAL_RCC_GPIOB_CLK_ENABLE(); - 800344e: 4b16 ldr r3, [pc, #88] @ (80034a8 ) - 8003450: 695a ldr r2, [r3, #20] - 8003452: 4b15 ldr r3, [pc, #84] @ (80034a8 ) - 8003454: 2180 movs r1, #128 @ 0x80 - 8003456: 02c9 lsls r1, r1, #11 - 8003458: 430a orrs r2, r1 - 800345a: 615a str r2, [r3, #20] - 800345c: 4b12 ldr r3, [pc, #72] @ (80034a8 ) - 800345e: 695a ldr r2, [r3, #20] - 8003460: 2380 movs r3, #128 @ 0x80 - 8003462: 02db lsls r3, r3, #11 - 8003464: 4013 ands r3, r2 - 8003466: 603b str r3, [r7, #0] - 8003468: 683b ldr r3, [r7, #0] + 8003462: 4b16 ldr r3, [pc, #88] @ (80034bc ) + 8003464: 695a ldr r2, [r3, #20] + 8003466: 4b15 ldr r3, [pc, #84] @ (80034bc ) + 8003468: 2180 movs r1, #128 @ 0x80 + 800346a: 02c9 lsls r1, r1, #11 + 800346c: 430a orrs r2, r1 + 800346e: 615a str r2, [r3, #20] + 8003470: 4b12 ldr r3, [pc, #72] @ (80034bc ) + 8003472: 695a ldr r2, [r3, #20] + 8003474: 2380 movs r3, #128 @ 0x80 + 8003476: 02db lsls r3, r3, #11 + 8003478: 4013 ands r3, r2 + 800347a: 603b str r3, [r7, #0] + 800347c: 683b ldr r3, [r7, #0] /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(LED_GPIO_Port, LED_Pin, GPIO_PIN_RESET); - 800346a: 2390 movs r3, #144 @ 0x90 - 800346c: 05db lsls r3, r3, #23 - 800346e: 2200 movs r2, #0 - 8003470: 2108 movs r1, #8 - 8003472: 0018 movs r0, r3 - 8003474: f001 f9de bl 8004834 + 800347e: 2390 movs r3, #144 @ 0x90 + 8003480: 05db lsls r3, r3, #23 + 8003482: 2200 movs r2, #0 + 8003484: 2108 movs r1, #8 + 8003486: 0018 movs r0, r3 + 8003488: f001 f9de bl 8004848 /*Configure GPIO pin : LED_Pin */ GPIO_InitStruct.Pin = LED_Pin; - 8003478: 0021 movs r1, r4 - 800347a: 187b adds r3, r7, r1 - 800347c: 2208 movs r2, #8 - 800347e: 601a str r2, [r3, #0] + 800348c: 0021 movs r1, r4 + 800348e: 187b adds r3, r7, r1 + 8003490: 2208 movs r2, #8 + 8003492: 601a str r2, [r3, #0] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; - 8003480: 187b adds r3, r7, r1 - 8003482: 2201 movs r2, #1 - 8003484: 605a str r2, [r3, #4] + 8003494: 187b adds r3, r7, r1 + 8003496: 2201 movs r2, #1 + 8003498: 605a str r2, [r3, #4] GPIO_InitStruct.Pull = GPIO_NOPULL; - 8003486: 187b adds r3, r7, r1 - 8003488: 2200 movs r2, #0 - 800348a: 609a str r2, [r3, #8] + 800349a: 187b adds r3, r7, r1 + 800349c: 2200 movs r2, #0 + 800349e: 609a str r2, [r3, #8] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - 800348c: 187b adds r3, r7, r1 - 800348e: 2200 movs r2, #0 - 8003490: 60da str r2, [r3, #12] + 80034a0: 187b adds r3, r7, r1 + 80034a2: 2200 movs r2, #0 + 80034a4: 60da str r2, [r3, #12] HAL_GPIO_Init(LED_GPIO_Port, &GPIO_InitStruct); - 8003492: 187a adds r2, r7, r1 - 8003494: 2390 movs r3, #144 @ 0x90 - 8003496: 05db lsls r3, r3, #23 - 8003498: 0011 movs r1, r2 - 800349a: 0018 movs r0, r3 - 800349c: f000 ff9a bl 80043d4 + 80034a6: 187a adds r2, r7, r1 + 80034a8: 2390 movs r3, #144 @ 0x90 + 80034aa: 05db lsls r3, r3, #23 + 80034ac: 0011 movs r1, r2 + 80034ae: 0018 movs r0, r3 + 80034b0: f000 ff9a bl 80043e8 /* USER CODE BEGIN MX_GPIO_Init_2 */ /* USER CODE END MX_GPIO_Init_2 */ } - 80034a0: 46c0 nop @ (mov r8, r8) - 80034a2: 46bd mov sp, r7 - 80034a4: b009 add sp, #36 @ 0x24 - 80034a6: bd90 pop {r4, r7, pc} - 80034a8: 40021000 .word 0x40021000 + 80034b4: 46c0 nop @ (mov r8, r8) + 80034b6: 46bd mov sp, r7 + 80034b8: b009 add sp, #36 @ 0x24 + 80034ba: bd90 pop {r4, r7, pc} + 80034bc: 40021000 .word 0x40021000 -080034ac : +080034c0 : /** * @brief This function is executed in case of error occurrence. * @retval None */ void Error_Handler(void) { - 80034ac: b580 push {r7, lr} - 80034ae: af00 add r7, sp, #0 + 80034c0: b580 push {r7, lr} + 80034c2: af00 add r7, sp, #0 \details Disables IRQ interrupts by setting the I-bit in the CPSR. Can only be executed in Privileged modes. */ __STATIC_FORCEINLINE void __disable_irq(void) { __ASM volatile ("cpsid i" : : : "memory"); - 80034b0: b672 cpsid i + 80034c4: b672 cpsid i } - 80034b2: 46c0 nop @ (mov r8, r8) + 80034c6: 46c0 nop @ (mov r8, r8) /* USER CODE BEGIN Error_Handler_Debug */ /* User can add his own implementation to report the HAL error return state */ __disable_irq(); while (1) { HAL_GPIO_WritePin(LED_GPIO_Port, LED_Pin, GPIO_PIN_SET); - 80034b4: 2390 movs r3, #144 @ 0x90 - 80034b6: 05db lsls r3, r3, #23 - 80034b8: 2201 movs r2, #1 - 80034ba: 2108 movs r1, #8 - 80034bc: 0018 movs r0, r3 - 80034be: f001 f9b9 bl 8004834 - HAL_Delay(100); - 80034c2: 2064 movs r0, #100 @ 0x64 - 80034c4: f000 fc98 bl 8003df8 - HAL_GPIO_WritePin(LED_GPIO_Port, LED_Pin, GPIO_PIN_RESET); 80034c8: 2390 movs r3, #144 @ 0x90 80034ca: 05db lsls r3, r3, #23 - 80034cc: 2200 movs r2, #0 + 80034cc: 2201 movs r2, #1 80034ce: 2108 movs r1, #8 80034d0: 0018 movs r0, r3 - 80034d2: f001 f9af bl 8004834 + 80034d2: f001 f9b9 bl 8004848 HAL_Delay(100); 80034d6: 2064 movs r0, #100 @ 0x64 - 80034d8: f000 fc8e bl 8003df8 + 80034d8: f000 fc98 bl 8003e0c + HAL_GPIO_WritePin(LED_GPIO_Port, LED_Pin, GPIO_PIN_RESET); + 80034dc: 2390 movs r3, #144 @ 0x90 + 80034de: 05db lsls r3, r3, #23 + 80034e0: 2200 movs r2, #0 + 80034e2: 2108 movs r1, #8 + 80034e4: 0018 movs r0, r3 + 80034e6: f001 f9af bl 8004848 + HAL_Delay(100); + 80034ea: 2064 movs r0, #100 @ 0x64 + 80034ec: f000 fc8e bl 8003e0c HAL_GPIO_WritePin(LED_GPIO_Port, LED_Pin, GPIO_PIN_SET); - 80034dc: 46c0 nop @ (mov r8, r8) - 80034de: e7e9 b.n 80034b4 + 80034f0: 46c0 nop @ (mov r8, r8) + 80034f2: e7e9 b.n 80034c8 -080034e0 : +080034f4 : /* USER CODE END 0 */ /** * Initializes the Global MSP. */ void HAL_MspInit(void) { - 80034e0: b580 push {r7, lr} - 80034e2: b082 sub sp, #8 - 80034e4: af00 add r7, sp, #0 + 80034f4: b580 push {r7, lr} + 80034f6: b082 sub sp, #8 + 80034f8: af00 add r7, sp, #0 /* USER CODE BEGIN MspInit 0 */ /* USER CODE END MspInit 0 */ __HAL_RCC_SYSCFG_CLK_ENABLE(); - 80034e6: 4b0f ldr r3, [pc, #60] @ (8003524 ) - 80034e8: 699a ldr r2, [r3, #24] - 80034ea: 4b0e ldr r3, [pc, #56] @ (8003524 ) - 80034ec: 2101 movs r1, #1 - 80034ee: 430a orrs r2, r1 - 80034f0: 619a str r2, [r3, #24] - 80034f2: 4b0c ldr r3, [pc, #48] @ (8003524 ) - 80034f4: 699b ldr r3, [r3, #24] - 80034f6: 2201 movs r2, #1 - 80034f8: 4013 ands r3, r2 - 80034fa: 607b str r3, [r7, #4] - 80034fc: 687b ldr r3, [r7, #4] + 80034fa: 4b0f ldr r3, [pc, #60] @ (8003538 ) + 80034fc: 699a ldr r2, [r3, #24] + 80034fe: 4b0e ldr r3, [pc, #56] @ (8003538 ) + 8003500: 2101 movs r1, #1 + 8003502: 430a orrs r2, r1 + 8003504: 619a str r2, [r3, #24] + 8003506: 4b0c ldr r3, [pc, #48] @ (8003538 ) + 8003508: 699b ldr r3, [r3, #24] + 800350a: 2201 movs r2, #1 + 800350c: 4013 ands r3, r2 + 800350e: 607b str r3, [r7, #4] + 8003510: 687b ldr r3, [r7, #4] __HAL_RCC_PWR_CLK_ENABLE(); - 80034fe: 4b09 ldr r3, [pc, #36] @ (8003524 ) - 8003500: 69da ldr r2, [r3, #28] - 8003502: 4b08 ldr r3, [pc, #32] @ (8003524 ) - 8003504: 2180 movs r1, #128 @ 0x80 - 8003506: 0549 lsls r1, r1, #21 - 8003508: 430a orrs r2, r1 - 800350a: 61da str r2, [r3, #28] - 800350c: 4b05 ldr r3, [pc, #20] @ (8003524 ) - 800350e: 69da ldr r2, [r3, #28] - 8003510: 2380 movs r3, #128 @ 0x80 - 8003512: 055b lsls r3, r3, #21 - 8003514: 4013 ands r3, r2 - 8003516: 603b str r3, [r7, #0] - 8003518: 683b ldr r3, [r7, #0] + 8003512: 4b09 ldr r3, [pc, #36] @ (8003538 ) + 8003514: 69da ldr r2, [r3, #28] + 8003516: 4b08 ldr r3, [pc, #32] @ (8003538 ) + 8003518: 2180 movs r1, #128 @ 0x80 + 800351a: 0549 lsls r1, r1, #21 + 800351c: 430a orrs r2, r1 + 800351e: 61da str r2, [r3, #28] + 8003520: 4b05 ldr r3, [pc, #20] @ (8003538 ) + 8003522: 69da ldr r2, [r3, #28] + 8003524: 2380 movs r3, #128 @ 0x80 + 8003526: 055b lsls r3, r3, #21 + 8003528: 4013 ands r3, r2 + 800352a: 603b str r3, [r7, #0] + 800352c: 683b ldr r3, [r7, #0] /* System interrupt init*/ /* USER CODE BEGIN MspInit 1 */ /* USER CODE END MspInit 1 */ } - 800351a: 46c0 nop @ (mov r8, r8) - 800351c: 46bd mov sp, r7 - 800351e: b002 add sp, #8 - 8003520: bd80 pop {r7, pc} - 8003522: 46c0 nop @ (mov r8, r8) - 8003524: 40021000 .word 0x40021000 + 800352e: 46c0 nop @ (mov r8, r8) + 8003530: 46bd mov sp, r7 + 8003532: b002 add sp, #8 + 8003534: bd80 pop {r7, pc} + 8003536: 46c0 nop @ (mov r8, r8) + 8003538: 40021000 .word 0x40021000 -08003528 : +0800353c : * This function configures the hardware resources used in this example * @param hcan: CAN handle pointer * @retval None */ void HAL_CAN_MspInit(CAN_HandleTypeDef* hcan) { - 8003528: b590 push {r4, r7, lr} - 800352a: b08b sub sp, #44 @ 0x2c - 800352c: af00 add r7, sp, #0 - 800352e: 6078 str r0, [r7, #4] + 800353c: b590 push {r4, r7, lr} + 800353e: b08b sub sp, #44 @ 0x2c + 8003540: af00 add r7, sp, #0 + 8003542: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; - 8003530: 2414 movs r4, #20 - 8003532: 193b adds r3, r7, r4 - 8003534: 0018 movs r0, r3 - 8003536: 2314 movs r3, #20 - 8003538: 001a movs r2, r3 - 800353a: 2100 movs r1, #0 - 800353c: f002 fe40 bl 80061c0 + 8003544: 2414 movs r4, #20 + 8003546: 193b adds r3, r7, r4 + 8003548: 0018 movs r0, r3 + 800354a: 2314 movs r3, #20 + 800354c: 001a movs r2, r3 + 800354e: 2100 movs r1, #0 + 8003550: f002 fe40 bl 80061d4 if(hcan->Instance==CAN) - 8003540: 687b ldr r3, [r7, #4] - 8003542: 681b ldr r3, [r3, #0] - 8003544: 4a1d ldr r2, [pc, #116] @ (80035bc ) - 8003546: 4293 cmp r3, r2 - 8003548: d133 bne.n 80035b2 + 8003554: 687b ldr r3, [r7, #4] + 8003556: 681b ldr r3, [r3, #0] + 8003558: 4a1d ldr r2, [pc, #116] @ (80035d0 ) + 800355a: 4293 cmp r3, r2 + 800355c: d133 bne.n 80035c6 { /* USER CODE BEGIN CAN_MspInit 0 */ /* USER CODE END CAN_MspInit 0 */ /* Peripheral clock enable */ __HAL_RCC_CAN1_CLK_ENABLE(); - 800354a: 4b1d ldr r3, [pc, #116] @ (80035c0 ) - 800354c: 69da ldr r2, [r3, #28] - 800354e: 4b1c ldr r3, [pc, #112] @ (80035c0 ) - 8003550: 2180 movs r1, #128 @ 0x80 - 8003552: 0489 lsls r1, r1, #18 - 8003554: 430a orrs r2, r1 - 8003556: 61da str r2, [r3, #28] - 8003558: 4b19 ldr r3, [pc, #100] @ (80035c0 ) - 800355a: 69da ldr r2, [r3, #28] - 800355c: 2380 movs r3, #128 @ 0x80 - 800355e: 049b lsls r3, r3, #18 - 8003560: 4013 ands r3, r2 - 8003562: 613b str r3, [r7, #16] - 8003564: 693b ldr r3, [r7, #16] + 800355e: 4b1d ldr r3, [pc, #116] @ (80035d4 ) + 8003560: 69da ldr r2, [r3, #28] + 8003562: 4b1c ldr r3, [pc, #112] @ (80035d4 ) + 8003564: 2180 movs r1, #128 @ 0x80 + 8003566: 0489 lsls r1, r1, #18 + 8003568: 430a orrs r2, r1 + 800356a: 61da str r2, [r3, #28] + 800356c: 4b19 ldr r3, [pc, #100] @ (80035d4 ) + 800356e: 69da ldr r2, [r3, #28] + 8003570: 2380 movs r3, #128 @ 0x80 + 8003572: 049b lsls r3, r3, #18 + 8003574: 4013 ands r3, r2 + 8003576: 613b str r3, [r7, #16] + 8003578: 693b ldr r3, [r7, #16] __HAL_RCC_GPIOA_CLK_ENABLE(); - 8003566: 4b16 ldr r3, [pc, #88] @ (80035c0 ) - 8003568: 695a ldr r2, [r3, #20] - 800356a: 4b15 ldr r3, [pc, #84] @ (80035c0 ) - 800356c: 2180 movs r1, #128 @ 0x80 - 800356e: 0289 lsls r1, r1, #10 - 8003570: 430a orrs r2, r1 - 8003572: 615a str r2, [r3, #20] - 8003574: 4b12 ldr r3, [pc, #72] @ (80035c0 ) - 8003576: 695a ldr r2, [r3, #20] - 8003578: 2380 movs r3, #128 @ 0x80 - 800357a: 029b lsls r3, r3, #10 - 800357c: 4013 ands r3, r2 - 800357e: 60fb str r3, [r7, #12] - 8003580: 68fb ldr r3, [r7, #12] + 800357a: 4b16 ldr r3, [pc, #88] @ (80035d4 ) + 800357c: 695a ldr r2, [r3, #20] + 800357e: 4b15 ldr r3, [pc, #84] @ (80035d4 ) + 8003580: 2180 movs r1, #128 @ 0x80 + 8003582: 0289 lsls r1, r1, #10 + 8003584: 430a orrs r2, r1 + 8003586: 615a str r2, [r3, #20] + 8003588: 4b12 ldr r3, [pc, #72] @ (80035d4 ) + 800358a: 695a ldr r2, [r3, #20] + 800358c: 2380 movs r3, #128 @ 0x80 + 800358e: 029b lsls r3, r3, #10 + 8003590: 4013 ands r3, r2 + 8003592: 60fb str r3, [r7, #12] + 8003594: 68fb ldr r3, [r7, #12] /**CAN GPIO Configuration PA11 ------> CAN_RX PA12 ------> CAN_TX */ GPIO_InitStruct.Pin = GPIO_PIN_11|GPIO_PIN_12; - 8003582: 193b adds r3, r7, r4 - 8003584: 22c0 movs r2, #192 @ 0xc0 - 8003586: 0152 lsls r2, r2, #5 - 8003588: 601a str r2, [r3, #0] + 8003596: 193b adds r3, r7, r4 + 8003598: 22c0 movs r2, #192 @ 0xc0 + 800359a: 0152 lsls r2, r2, #5 + 800359c: 601a str r2, [r3, #0] GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 800358a: 0021 movs r1, r4 - 800358c: 187b adds r3, r7, r1 - 800358e: 2202 movs r2, #2 - 8003590: 605a str r2, [r3, #4] + 800359e: 0021 movs r1, r4 + 80035a0: 187b adds r3, r7, r1 + 80035a2: 2202 movs r2, #2 + 80035a4: 605a str r2, [r3, #4] GPIO_InitStruct.Pull = GPIO_NOPULL; - 8003592: 187b adds r3, r7, r1 - 8003594: 2200 movs r2, #0 - 8003596: 609a str r2, [r3, #8] + 80035a6: 187b adds r3, r7, r1 + 80035a8: 2200 movs r2, #0 + 80035aa: 609a str r2, [r3, #8] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; - 8003598: 187b adds r3, r7, r1 - 800359a: 2203 movs r2, #3 - 800359c: 60da str r2, [r3, #12] + 80035ac: 187b adds r3, r7, r1 + 80035ae: 2203 movs r2, #3 + 80035b0: 60da str r2, [r3, #12] GPIO_InitStruct.Alternate = GPIO_AF4_CAN; - 800359e: 187b adds r3, r7, r1 - 80035a0: 2204 movs r2, #4 - 80035a2: 611a str r2, [r3, #16] + 80035b2: 187b adds r3, r7, r1 + 80035b4: 2204 movs r2, #4 + 80035b6: 611a str r2, [r3, #16] HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); - 80035a4: 187a adds r2, r7, r1 - 80035a6: 2390 movs r3, #144 @ 0x90 - 80035a8: 05db lsls r3, r3, #23 - 80035aa: 0011 movs r1, r2 - 80035ac: 0018 movs r0, r3 - 80035ae: f000 ff11 bl 80043d4 + 80035b8: 187a adds r2, r7, r1 + 80035ba: 2390 movs r3, #144 @ 0x90 + 80035bc: 05db lsls r3, r3, #23 + 80035be: 0011 movs r1, r2 + 80035c0: 0018 movs r0, r3 + 80035c2: f000 ff11 bl 80043e8 /* USER CODE END CAN_MspInit 1 */ } } - 80035b2: 46c0 nop @ (mov r8, r8) - 80035b4: 46bd mov sp, r7 - 80035b6: b00b add sp, #44 @ 0x2c - 80035b8: bd90 pop {r4, r7, pc} - 80035ba: 46c0 nop @ (mov r8, r8) - 80035bc: 40006400 .word 0x40006400 - 80035c0: 40021000 .word 0x40021000 + 80035c6: 46c0 nop @ (mov r8, r8) + 80035c8: 46bd mov sp, r7 + 80035ca: b00b add sp, #44 @ 0x2c + 80035cc: bd90 pop {r4, r7, pc} + 80035ce: 46c0 nop @ (mov r8, r8) + 80035d0: 40006400 .word 0x40006400 + 80035d4: 40021000 .word 0x40021000 -080035c4 : +080035d8 : * This function configures the hardware resources used in this example * @param hi2c: I2C handle pointer * @retval None */ void HAL_I2C_MspInit(I2C_HandleTypeDef* hi2c) { - 80035c4: b590 push {r4, r7, lr} - 80035c6: b08b sub sp, #44 @ 0x2c - 80035c8: af00 add r7, sp, #0 - 80035ca: 6078 str r0, [r7, #4] + 80035d8: b590 push {r4, r7, lr} + 80035da: b08b sub sp, #44 @ 0x2c + 80035dc: af00 add r7, sp, #0 + 80035de: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; - 80035cc: 2414 movs r4, #20 - 80035ce: 193b adds r3, r7, r4 - 80035d0: 0018 movs r0, r3 - 80035d2: 2314 movs r3, #20 - 80035d4: 001a movs r2, r3 - 80035d6: 2100 movs r1, #0 - 80035d8: f002 fdf2 bl 80061c0 + 80035e0: 2414 movs r4, #20 + 80035e2: 193b adds r3, r7, r4 + 80035e4: 0018 movs r0, r3 + 80035e6: 2314 movs r3, #20 + 80035e8: 001a movs r2, r3 + 80035ea: 2100 movs r1, #0 + 80035ec: f002 fdf2 bl 80061d4 if(hi2c->Instance==I2C1) - 80035dc: 687b ldr r3, [r7, #4] - 80035de: 681b ldr r3, [r3, #0] - 80035e0: 4a1c ldr r2, [pc, #112] @ (8003654 ) - 80035e2: 4293 cmp r3, r2 - 80035e4: d131 bne.n 800364a + 80035f0: 687b ldr r3, [r7, #4] + 80035f2: 681b ldr r3, [r3, #0] + 80035f4: 4a1c ldr r2, [pc, #112] @ (8003668 ) + 80035f6: 4293 cmp r3, r2 + 80035f8: d131 bne.n 800365e { /* USER CODE BEGIN I2C1_MspInit 0 */ /* USER CODE END I2C1_MspInit 0 */ __HAL_RCC_GPIOB_CLK_ENABLE(); - 80035e6: 4b1c ldr r3, [pc, #112] @ (8003658 ) - 80035e8: 695a ldr r2, [r3, #20] - 80035ea: 4b1b ldr r3, [pc, #108] @ (8003658 ) - 80035ec: 2180 movs r1, #128 @ 0x80 - 80035ee: 02c9 lsls r1, r1, #11 - 80035f0: 430a orrs r2, r1 - 80035f2: 615a str r2, [r3, #20] - 80035f4: 4b18 ldr r3, [pc, #96] @ (8003658 ) - 80035f6: 695a ldr r2, [r3, #20] - 80035f8: 2380 movs r3, #128 @ 0x80 - 80035fa: 02db lsls r3, r3, #11 - 80035fc: 4013 ands r3, r2 - 80035fe: 613b str r3, [r7, #16] - 8003600: 693b ldr r3, [r7, #16] + 80035fa: 4b1c ldr r3, [pc, #112] @ (800366c ) + 80035fc: 695a ldr r2, [r3, #20] + 80035fe: 4b1b ldr r3, [pc, #108] @ (800366c ) + 8003600: 2180 movs r1, #128 @ 0x80 + 8003602: 02c9 lsls r1, r1, #11 + 8003604: 430a orrs r2, r1 + 8003606: 615a str r2, [r3, #20] + 8003608: 4b18 ldr r3, [pc, #96] @ (800366c ) + 800360a: 695a ldr r2, [r3, #20] + 800360c: 2380 movs r3, #128 @ 0x80 + 800360e: 02db lsls r3, r3, #11 + 8003610: 4013 ands r3, r2 + 8003612: 613b str r3, [r7, #16] + 8003614: 693b ldr r3, [r7, #16] /**I2C1 GPIO Configuration PB6 ------> I2C1_SCL PB7 ------> I2C1_SDA */ GPIO_InitStruct.Pin = GPIO_PIN_6|GPIO_PIN_7; - 8003602: 0021 movs r1, r4 - 8003604: 187b adds r3, r7, r1 - 8003606: 22c0 movs r2, #192 @ 0xc0 - 8003608: 601a str r2, [r3, #0] + 8003616: 0021 movs r1, r4 + 8003618: 187b adds r3, r7, r1 + 800361a: 22c0 movs r2, #192 @ 0xc0 + 800361c: 601a str r2, [r3, #0] GPIO_InitStruct.Mode = GPIO_MODE_AF_OD; - 800360a: 187b adds r3, r7, r1 - 800360c: 2212 movs r2, #18 - 800360e: 605a str r2, [r3, #4] + 800361e: 187b adds r3, r7, r1 + 8003620: 2212 movs r2, #18 + 8003622: 605a str r2, [r3, #4] GPIO_InitStruct.Pull = GPIO_NOPULL; - 8003610: 187b adds r3, r7, r1 - 8003612: 2200 movs r2, #0 - 8003614: 609a str r2, [r3, #8] + 8003624: 187b adds r3, r7, r1 + 8003626: 2200 movs r2, #0 + 8003628: 609a str r2, [r3, #8] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; - 8003616: 187b adds r3, r7, r1 - 8003618: 2203 movs r2, #3 - 800361a: 60da str r2, [r3, #12] + 800362a: 187b adds r3, r7, r1 + 800362c: 2203 movs r2, #3 + 800362e: 60da str r2, [r3, #12] GPIO_InitStruct.Alternate = GPIO_AF1_I2C1; - 800361c: 187b adds r3, r7, r1 - 800361e: 2201 movs r2, #1 - 8003620: 611a str r2, [r3, #16] + 8003630: 187b adds r3, r7, r1 + 8003632: 2201 movs r2, #1 + 8003634: 611a str r2, [r3, #16] HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); - 8003622: 187b adds r3, r7, r1 - 8003624: 4a0d ldr r2, [pc, #52] @ (800365c ) - 8003626: 0019 movs r1, r3 - 8003628: 0010 movs r0, r2 - 800362a: f000 fed3 bl 80043d4 + 8003636: 187b adds r3, r7, r1 + 8003638: 4a0d ldr r2, [pc, #52] @ (8003670 ) + 800363a: 0019 movs r1, r3 + 800363c: 0010 movs r0, r2 + 800363e: f000 fed3 bl 80043e8 /* Peripheral clock enable */ __HAL_RCC_I2C1_CLK_ENABLE(); - 800362e: 4b0a ldr r3, [pc, #40] @ (8003658 ) - 8003630: 69da ldr r2, [r3, #28] - 8003632: 4b09 ldr r3, [pc, #36] @ (8003658 ) - 8003634: 2180 movs r1, #128 @ 0x80 - 8003636: 0389 lsls r1, r1, #14 - 8003638: 430a orrs r2, r1 - 800363a: 61da str r2, [r3, #28] - 800363c: 4b06 ldr r3, [pc, #24] @ (8003658 ) - 800363e: 69da ldr r2, [r3, #28] - 8003640: 2380 movs r3, #128 @ 0x80 - 8003642: 039b lsls r3, r3, #14 - 8003644: 4013 ands r3, r2 - 8003646: 60fb str r3, [r7, #12] - 8003648: 68fb ldr r3, [r7, #12] + 8003642: 4b0a ldr r3, [pc, #40] @ (800366c ) + 8003644: 69da ldr r2, [r3, #28] + 8003646: 4b09 ldr r3, [pc, #36] @ (800366c ) + 8003648: 2180 movs r1, #128 @ 0x80 + 800364a: 0389 lsls r1, r1, #14 + 800364c: 430a orrs r2, r1 + 800364e: 61da str r2, [r3, #28] + 8003650: 4b06 ldr r3, [pc, #24] @ (800366c ) + 8003652: 69da ldr r2, [r3, #28] + 8003654: 2380 movs r3, #128 @ 0x80 + 8003656: 039b lsls r3, r3, #14 + 8003658: 4013 ands r3, r2 + 800365a: 60fb str r3, [r7, #12] + 800365c: 68fb ldr r3, [r7, #12] /* USER CODE END I2C1_MspInit 1 */ } } - 800364a: 46c0 nop @ (mov r8, r8) - 800364c: 46bd mov sp, r7 - 800364e: b00b add sp, #44 @ 0x2c - 8003650: bd90 pop {r4, r7, pc} - 8003652: 46c0 nop @ (mov r8, r8) - 8003654: 40005400 .word 0x40005400 - 8003658: 40021000 .word 0x40021000 - 800365c: 48000400 .word 0x48000400 + 800365e: 46c0 nop @ (mov r8, r8) + 8003660: 46bd mov sp, r7 + 8003662: b00b add sp, #44 @ 0x2c + 8003664: bd90 pop {r4, r7, pc} + 8003666: 46c0 nop @ (mov r8, r8) + 8003668: 40005400 .word 0x40005400 + 800366c: 40021000 .word 0x40021000 + 8003670: 48000400 .word 0x48000400 -08003660 : +08003674 : * This function freeze the hardware resources used in this example * @param hi2c: I2C handle pointer * @retval None */ void HAL_I2C_MspDeInit(I2C_HandleTypeDef* hi2c) { - 8003660: b580 push {r7, lr} - 8003662: b082 sub sp, #8 - 8003664: af00 add r7, sp, #0 - 8003666: 6078 str r0, [r7, #4] + 8003674: b580 push {r7, lr} + 8003676: b082 sub sp, #8 + 8003678: af00 add r7, sp, #0 + 800367a: 6078 str r0, [r7, #4] if(hi2c->Instance==I2C1) - 8003668: 687b ldr r3, [r7, #4] - 800366a: 681b ldr r3, [r3, #0] - 800366c: 4a0b ldr r2, [pc, #44] @ (800369c ) - 800366e: 4293 cmp r3, r2 - 8003670: d10f bne.n 8003692 + 800367c: 687b ldr r3, [r7, #4] + 800367e: 681b ldr r3, [r3, #0] + 8003680: 4a0b ldr r2, [pc, #44] @ (80036b0 ) + 8003682: 4293 cmp r3, r2 + 8003684: d10f bne.n 80036a6 { /* USER CODE BEGIN I2C1_MspDeInit 0 */ /* USER CODE END I2C1_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_I2C1_CLK_DISABLE(); - 8003672: 4b0b ldr r3, [pc, #44] @ (80036a0 ) - 8003674: 69da ldr r2, [r3, #28] - 8003676: 4b0a ldr r3, [pc, #40] @ (80036a0 ) - 8003678: 490a ldr r1, [pc, #40] @ (80036a4 ) - 800367a: 400a ands r2, r1 - 800367c: 61da str r2, [r3, #28] + 8003686: 4b0b ldr r3, [pc, #44] @ (80036b4 ) + 8003688: 69da ldr r2, [r3, #28] + 800368a: 4b0a ldr r3, [pc, #40] @ (80036b4 ) + 800368c: 490a ldr r1, [pc, #40] @ (80036b8 ) + 800368e: 400a ands r2, r1 + 8003690: 61da str r2, [r3, #28] /**I2C1 GPIO Configuration PB6 ------> I2C1_SCL PB7 ------> I2C1_SDA */ HAL_GPIO_DeInit(GPIOB, GPIO_PIN_6); - 800367e: 4b0a ldr r3, [pc, #40] @ (80036a8 ) - 8003680: 2140 movs r1, #64 @ 0x40 - 8003682: 0018 movs r0, r3 - 8003684: f001 f80e bl 80046a4 + 8003692: 4b0a ldr r3, [pc, #40] @ (80036bc ) + 8003694: 2140 movs r1, #64 @ 0x40 + 8003696: 0018 movs r0, r3 + 8003698: f001 f80e bl 80046b8 HAL_GPIO_DeInit(GPIOB, GPIO_PIN_7); - 8003688: 4b07 ldr r3, [pc, #28] @ (80036a8 ) - 800368a: 2180 movs r1, #128 @ 0x80 - 800368c: 0018 movs r0, r3 - 800368e: f001 f809 bl 80046a4 + 800369c: 4b07 ldr r3, [pc, #28] @ (80036bc ) + 800369e: 2180 movs r1, #128 @ 0x80 + 80036a0: 0018 movs r0, r3 + 80036a2: f001 f809 bl 80046b8 /* USER CODE BEGIN I2C1_MspDeInit 1 */ /* USER CODE END I2C1_MspDeInit 1 */ } } - 8003692: 46c0 nop @ (mov r8, r8) - 8003694: 46bd mov sp, r7 - 8003696: b002 add sp, #8 - 8003698: bd80 pop {r7, pc} - 800369a: 46c0 nop @ (mov r8, r8) - 800369c: 40005400 .word 0x40005400 - 80036a0: 40021000 .word 0x40021000 - 80036a4: ffdfffff .word 0xffdfffff - 80036a8: 48000400 .word 0x48000400 + 80036a6: 46c0 nop @ (mov r8, r8) + 80036a8: 46bd mov sp, r7 + 80036aa: b002 add sp, #8 + 80036ac: bd80 pop {r7, pc} + 80036ae: 46c0 nop @ (mov r8, r8) + 80036b0: 40005400 .word 0x40005400 + 80036b4: 40021000 .word 0x40021000 + 80036b8: ffdfffff .word 0xffdfffff + 80036bc: 48000400 .word 0x48000400 -080036ac : +080036c0 : /******************************************************************************/ /** * @brief This function handles Non maskable interrupt. */ void NMI_Handler(void) { - 80036ac: b580 push {r7, lr} - 80036ae: af00 add r7, sp, #0 + 80036c0: b580 push {r7, lr} + 80036c2: af00 add r7, sp, #0 /* USER CODE BEGIN NonMaskableInt_IRQn 0 */ /* USER CODE END NonMaskableInt_IRQn 0 */ /* USER CODE BEGIN NonMaskableInt_IRQn 1 */ while (1) - 80036b0: 46c0 nop @ (mov r8, r8) - 80036b2: e7fd b.n 80036b0 + 80036c4: 46c0 nop @ (mov r8, r8) + 80036c6: e7fd b.n 80036c4 -080036b4 : +080036c8 : /** * @brief This function handles Hard fault interrupt. */ void HardFault_Handler(void) { - 80036b4: b580 push {r7, lr} - 80036b6: af00 add r7, sp, #0 + 80036c8: b580 push {r7, lr} + 80036ca: af00 add r7, sp, #0 /* USER CODE BEGIN HardFault_IRQn 0 */ /* USER CODE END HardFault_IRQn 0 */ while (1) - 80036b8: 46c0 nop @ (mov r8, r8) - 80036ba: e7fd b.n 80036b8 + 80036cc: 46c0 nop @ (mov r8, r8) + 80036ce: e7fd b.n 80036cc -080036bc : +080036d0 : /** * @brief This function handles System service call via SWI instruction. */ void SVC_Handler(void) { - 80036bc: b580 push {r7, lr} - 80036be: af00 add r7, sp, #0 + 80036d0: b580 push {r7, lr} + 80036d2: af00 add r7, sp, #0 /* USER CODE END SVC_IRQn 0 */ /* USER CODE BEGIN SVC_IRQn 1 */ /* USER CODE END SVC_IRQn 1 */ } - 80036c0: 46c0 nop @ (mov r8, r8) - 80036c2: 46bd mov sp, r7 - 80036c4: bd80 pop {r7, pc} + 80036d4: 46c0 nop @ (mov r8, r8) + 80036d6: 46bd mov sp, r7 + 80036d8: bd80 pop {r7, pc} -080036c6 : +080036da : /** * @brief This function handles Pendable request for system service. */ void PendSV_Handler(void) { - 80036c6: b580 push {r7, lr} - 80036c8: af00 add r7, sp, #0 + 80036da: b580 push {r7, lr} + 80036dc: af00 add r7, sp, #0 /* USER CODE END PendSV_IRQn 0 */ /* USER CODE BEGIN PendSV_IRQn 1 */ /* USER CODE END PendSV_IRQn 1 */ } - 80036ca: 46c0 nop @ (mov r8, r8) - 80036cc: 46bd mov sp, r7 - 80036ce: bd80 pop {r7, pc} + 80036de: 46c0 nop @ (mov r8, r8) + 80036e0: 46bd mov sp, r7 + 80036e2: bd80 pop {r7, pc} -080036d0 : +080036e4 : /** * @brief This function handles System tick timer. */ void SysTick_Handler(void) { - 80036d0: b580 push {r7, lr} - 80036d2: af00 add r7, sp, #0 + 80036e4: b580 push {r7, lr} + 80036e6: af00 add r7, sp, #0 /* USER CODE BEGIN SysTick_IRQn 0 */ /* USER CODE END SysTick_IRQn 0 */ HAL_IncTick(); - 80036d4: f000 fb74 bl 8003dc0 + 80036e8: f000 fb74 bl 8003dd4 /* USER CODE BEGIN SysTick_IRQn 1 */ /* USER CODE END SysTick_IRQn 1 */ } - 80036d8: 46c0 nop @ (mov r8, r8) - 80036da: 46bd mov sp, r7 - 80036dc: bd80 pop {r7, pc} + 80036ec: 46c0 nop @ (mov r8, r8) + 80036ee: 46bd mov sp, r7 + 80036f0: bd80 pop {r7, pc} -080036de : +080036f2 : * @brief Setup the microcontroller system * @param None * @retval None */ void SystemInit(void) { - 80036de: b580 push {r7, lr} - 80036e0: af00 add r7, sp, #0 + 80036f2: b580 push {r7, lr} + 80036f4: af00 add r7, sp, #0 before branch to main program. This call is made inside the "startup_stm32f0xx.s" file. User can setups the default system clock (System clock source, PLL Multiplier and Divider factors, AHB/APBx prescalers and Flash settings). */ } - 80036e2: 46c0 nop @ (mov r8, r8) - 80036e4: 46bd mov sp, r7 - 80036e6: bd80 pop {r7, pc} + 80036f6: 46c0 nop @ (mov r8, r8) + 80036f8: 46bd mov sp, r7 + 80036fa: bd80 pop {r7, pc} -080036e8 : +080036fc : TTS_SensorID tts_sensorid; TTS_CarID tts_carid; TTS_TireID tts_tireid; TTS_TireData tts_tiredb[4]; void TTS_Init(CAN_HandleTypeDef *hcan) { - 80036e8: b580 push {r7, lr} - 80036ea: b084 sub sp, #16 - 80036ec: af00 add r7, sp, #0 - 80036ee: 6078 str r0, [r7, #4] + 80036fc: b580 push {r7, lr} + 80036fe: b084 sub sp, #16 + 8003700: af00 add r7, sp, #0 + 8003702: 6078 str r0, [r7, #4] // initialize values TTS_LoadTireData(); - 80036f0: f000 fa34 bl 8003b5c + 8003704: f000 fa34 bl 8003b70 tts_sensorid = TTS_FL; - 80036f4: 4b18 ldr r3, [pc, #96] @ (8003758 ) - 80036f6: 2200 movs r2, #0 - 80036f8: 701a strb r2, [r3, #0] + 8003708: 4b18 ldr r3, [pc, #96] @ (800376c ) + 800370a: 2200 movs r2, #0 + 800370c: 701a strb r2, [r3, #0] tts_carid = FT24; - 80036fa: 4b18 ldr r3, [pc, #96] @ (800375c ) - 80036fc: 2218 movs r2, #24 - 80036fe: 701a strb r2, [r3, #0] + 800370e: 4b18 ldr r3, [pc, #96] @ (8003770 ) + 8003710: 2218 movs r2, #24 + 8003712: 701a strb r2, [r3, #0] tts_tireid = OZ7_SLICKS; - 8003700: 4b17 ldr r3, [pc, #92] @ (8003760 ) - 8003702: 2201 movs r2, #1 - 8003704: 701a strb r2, [r3, #0] + 8003714: 4b17 ldr r3, [pc, #92] @ (8003774 ) + 8003716: 2201 movs r2, #1 + 8003718: 701a strb r2, [r3, #0] // init CAN tts_hcan = hcan; - 8003706: 4b17 ldr r3, [pc, #92] @ (8003764 ) - 8003708: 687a ldr r2, [r7, #4] - 800370a: 601a str r2, [r3, #0] + 800371a: 4b17 ldr r3, [pc, #92] @ (8003778 ) + 800371c: 687a ldr r2, [r7, #4] + 800371e: 601a str r2, [r3, #0] // init CAN_Tx Frame //uint8_t canID = tts_sensorid + TTS_CANIDSTART; tts_canHeader.IDE = CAN_ID_STD; - 800370c: 4b16 ldr r3, [pc, #88] @ (8003768 ) - 800370e: 2200 movs r2, #0 - 8003710: 609a str r2, [r3, #8] + 8003720: 4b16 ldr r3, [pc, #88] @ (800377c ) + 8003722: 2200 movs r2, #0 + 8003724: 609a str r2, [r3, #8] tts_canHeader.StdId = 0x701; - 8003712: 4b15 ldr r3, [pc, #84] @ (8003768 ) - 8003714: 4a15 ldr r2, [pc, #84] @ (800376c ) - 8003716: 601a str r2, [r3, #0] + 8003726: 4b15 ldr r3, [pc, #84] @ (800377c ) + 8003728: 4a15 ldr r2, [pc, #84] @ (8003780 ) + 800372a: 601a str r2, [r3, #0] tts_canHeader.DLC = 8; - 8003718: 4b13 ldr r3, [pc, #76] @ (8003768 ) - 800371a: 2208 movs r2, #8 - 800371c: 611a str r2, [r3, #16] + 800372c: 4b13 ldr r3, [pc, #76] @ (800377c ) + 800372e: 2208 movs r2, #8 + 8003730: 611a str r2, [r3, #16] tts_canHeader.RTR = CAN_RTR_DATA; - 800371e: 4b12 ldr r3, [pc, #72] @ (8003768 ) - 8003720: 2200 movs r2, #0 - 8003722: 60da str r2, [r3, #12] + 8003732: 4b12 ldr r3, [pc, #72] @ (800377c ) + 8003734: 2200 movs r2, #0 + 8003736: 60da str r2, [r3, #12] for(uint8_t i=0; i<8; i++) { - 8003724: 230f movs r3, #15 - 8003726: 18fb adds r3, r7, r3 - 8003728: 2200 movs r2, #0 - 800372a: 701a strb r2, [r3, #0] - 800372c: e00a b.n 8003744 + 8003738: 230f movs r3, #15 + 800373a: 18fb adds r3, r7, r3 + 800373c: 2200 movs r2, #0 + 800373e: 701a strb r2, [r3, #0] + 8003740: e00a b.n 8003758 tts_canData[i] = 0xFF; - 800372e: 200f movs r0, #15 - 8003730: 183b adds r3, r7, r0 - 8003732: 781b ldrb r3, [r3, #0] - 8003734: 4a0e ldr r2, [pc, #56] @ (8003770 ) - 8003736: 21ff movs r1, #255 @ 0xff - 8003738: 54d1 strb r1, [r2, r3] + 8003742: 200f movs r0, #15 + 8003744: 183b adds r3, r7, r0 + 8003746: 781b ldrb r3, [r3, #0] + 8003748: 4a0e ldr r2, [pc, #56] @ (8003784 ) + 800374a: 21ff movs r1, #255 @ 0xff + 800374c: 54d1 strb r1, [r2, r3] for(uint8_t i=0; i<8; i++) { - 800373a: 183b adds r3, r7, r0 - 800373c: 781a ldrb r2, [r3, #0] - 800373e: 183b adds r3, r7, r0 - 8003740: 3201 adds r2, #1 - 8003742: 701a strb r2, [r3, #0] - 8003744: 230f movs r3, #15 - 8003746: 18fb adds r3, r7, r3 - 8003748: 781b ldrb r3, [r3, #0] - 800374a: 2b07 cmp r3, #7 - 800374c: d9ef bls.n 800372e + 800374e: 183b adds r3, r7, r0 + 8003750: 781a ldrb r2, [r3, #0] + 8003752: 183b adds r3, r7, r0 + 8003754: 3201 adds r2, #1 + 8003756: 701a strb r2, [r3, #0] + 8003758: 230f movs r3, #15 + 800375a: 18fb adds r3, r7, r3 + 800375c: 781b ldrb r3, [r3, #0] + 800375e: 2b07 cmp r3, #7 + 8003760: d9ef bls.n 8003742 } } - 800374e: 46c0 nop @ (mov r8, r8) - 8003750: 46c0 nop @ (mov r8, r8) - 8003752: 46bd mov sp, r7 - 8003754: b004 add sp, #16 - 8003756: bd80 pop {r7, pc} - 8003758: 20000870 .word 0x20000870 - 800375c: 20000871 .word 0x20000871 - 8003760: 20000872 .word 0x20000872 - 8003764: 20000848 .word 0x20000848 - 8003768: 2000084c .word 0x2000084c - 800376c: 00000701 .word 0x00000701 - 8003770: 20000864 .word 0x20000864 + 8003762: 46c0 nop @ (mov r8, r8) + 8003764: 46c0 nop @ (mov r8, r8) + 8003766: 46bd mov sp, r7 + 8003768: b004 add sp, #16 + 800376a: bd80 pop {r7, pc} + 800376c: 20000870 .word 0x20000870 + 8003770: 20000871 .word 0x20000871 + 8003774: 20000872 .word 0x20000872 + 8003778: 20000848 .word 0x20000848 + 800377c: 2000084c .word 0x2000084c + 8003780: 00000701 .word 0x00000701 + 8003784: 20000864 .word 0x20000864 -08003774 : +08003788 : void TTS_SendCAN(uint32_t tireZones[5]) { - 8003774: b580 push {r7, lr} - 8003776: b082 sub sp, #8 - 8003778: af00 add r7, sp, #0 - 800377a: 6078 str r0, [r7, #4] + 8003788: b580 push {r7, lr} + 800378a: b082 sub sp, #8 + 800378c: af00 add r7, sp, #0 + 800378e: 6078 str r0, [r7, #4] // Outer left: tts_canData[0] = tireZones[0] & 0xFF; - 800377c: 687b ldr r3, [r7, #4] - 800377e: 681b ldr r3, [r3, #0] - 8003780: b2da uxtb r2, r3 - 8003782: 4b30 ldr r3, [pc, #192] @ (8003844 ) - 8003784: 701a strb r2, [r3, #0] + 8003790: 687b ldr r3, [r7, #4] + 8003792: 681b ldr r3, [r3, #0] + 8003794: b2da uxtb r2, r3 + 8003796: 4b30 ldr r3, [pc, #192] @ (8003858 ) + 8003798: 701a strb r2, [r3, #0] tts_canData[1] = (tireZones[0] >> 8) & 0xF; - 8003786: 687b ldr r3, [r7, #4] - 8003788: 681b ldr r3, [r3, #0] - 800378a: 0a1b lsrs r3, r3, #8 - 800378c: b2db uxtb r3, r3 - 800378e: 220f movs r2, #15 - 8003790: 4013 ands r3, r2 - 8003792: b2da uxtb r2, r3 - 8003794: 4b2b ldr r3, [pc, #172] @ (8003844 ) - 8003796: 705a strb r2, [r3, #1] + 800379a: 687b ldr r3, [r7, #4] + 800379c: 681b ldr r3, [r3, #0] + 800379e: 0a1b lsrs r3, r3, #8 + 80037a0: b2db uxtb r3, r3 + 80037a2: 220f movs r2, #15 + 80037a4: 4013 ands r3, r2 + 80037a6: b2da uxtb r2, r3 + 80037a8: 4b2b ldr r3, [pc, #172] @ (8003858 ) + 80037aa: 705a strb r2, [r3, #1] // Center left: tts_canData[1] = tts_canData[1] | ((tireZones[1] & 0xF) << 4); - 8003798: 4b2a ldr r3, [pc, #168] @ (8003844 ) - 800379a: 785a ldrb r2, [r3, #1] - 800379c: 687b ldr r3, [r7, #4] - 800379e: 3304 adds r3, #4 - 80037a0: 681b ldr r3, [r3, #0] - 80037a2: b2db uxtb r3, r3 - 80037a4: 011b lsls r3, r3, #4 - 80037a6: b2db uxtb r3, r3 - 80037a8: 4313 orrs r3, r2 - 80037aa: b2da uxtb r2, r3 - 80037ac: 4b25 ldr r3, [pc, #148] @ (8003844 ) - 80037ae: 705a strb r2, [r3, #1] - tts_canData[2] = (tireZones[1] >> 4) & 0xFF; + 80037ac: 4b2a ldr r3, [pc, #168] @ (8003858 ) + 80037ae: 785a ldrb r2, [r3, #1] 80037b0: 687b ldr r3, [r7, #4] 80037b2: 3304 adds r3, #4 80037b4: 681b ldr r3, [r3, #0] - 80037b6: 091b lsrs r3, r3, #4 - 80037b8: b2da uxtb r2, r3 - 80037ba: 4b22 ldr r3, [pc, #136] @ (8003844 ) - 80037bc: 709a strb r2, [r3, #2] + 80037b6: b2db uxtb r3, r3 + 80037b8: 011b lsls r3, r3, #4 + 80037ba: b2db uxtb r3, r3 + 80037bc: 4313 orrs r3, r2 + 80037be: b2da uxtb r2, r3 + 80037c0: 4b25 ldr r3, [pc, #148] @ (8003858 ) + 80037c2: 705a strb r2, [r3, #1] + tts_canData[2] = (tireZones[1] >> 4) & 0xFF; + 80037c4: 687b ldr r3, [r7, #4] + 80037c6: 3304 adds r3, #4 + 80037c8: 681b ldr r3, [r3, #0] + 80037ca: 091b lsrs r3, r3, #4 + 80037cc: b2da uxtb r2, r3 + 80037ce: 4b22 ldr r3, [pc, #136] @ (8003858 ) + 80037d0: 709a strb r2, [r3, #2] // Center: tts_canData[3] = tireZones[2] & 0xFF; - 80037be: 687b ldr r3, [r7, #4] - 80037c0: 3308 adds r3, #8 - 80037c2: 681b ldr r3, [r3, #0] - 80037c4: b2da uxtb r2, r3 - 80037c6: 4b1f ldr r3, [pc, #124] @ (8003844 ) - 80037c8: 70da strb r2, [r3, #3] - tts_canData[4] = (tireZones[2] >> 8) & 0xF; - 80037ca: 687b ldr r3, [r7, #4] - 80037cc: 3308 adds r3, #8 - 80037ce: 681b ldr r3, [r3, #0] - 80037d0: 0a1b lsrs r3, r3, #8 - 80037d2: b2db uxtb r3, r3 - 80037d4: 220f movs r2, #15 - 80037d6: 4013 ands r3, r2 + 80037d2: 687b ldr r3, [r7, #4] + 80037d4: 3308 adds r3, #8 + 80037d6: 681b ldr r3, [r3, #0] 80037d8: b2da uxtb r2, r3 - 80037da: 4b1a ldr r3, [pc, #104] @ (8003844 ) - 80037dc: 711a strb r2, [r3, #4] + 80037da: 4b1f ldr r3, [pc, #124] @ (8003858 ) + 80037dc: 70da strb r2, [r3, #3] + tts_canData[4] = (tireZones[2] >> 8) & 0xF; + 80037de: 687b ldr r3, [r7, #4] + 80037e0: 3308 adds r3, #8 + 80037e2: 681b ldr r3, [r3, #0] + 80037e4: 0a1b lsrs r3, r3, #8 + 80037e6: b2db uxtb r3, r3 + 80037e8: 220f movs r2, #15 + 80037ea: 4013 ands r3, r2 + 80037ec: b2da uxtb r2, r3 + 80037ee: 4b1a ldr r3, [pc, #104] @ (8003858 ) + 80037f0: 711a strb r2, [r3, #4] // Center right: tts_canData[4] = tts_canData[4] | ((tireZones[3] & 0xF) << 4); - 80037de: 4b19 ldr r3, [pc, #100] @ (8003844 ) - 80037e0: 791a ldrb r2, [r3, #4] - 80037e2: 687b ldr r3, [r7, #4] - 80037e4: 330c adds r3, #12 - 80037e6: 681b ldr r3, [r3, #0] - 80037e8: b2db uxtb r3, r3 - 80037ea: 011b lsls r3, r3, #4 - 80037ec: b2db uxtb r3, r3 - 80037ee: 4313 orrs r3, r2 - 80037f0: b2da uxtb r2, r3 - 80037f2: 4b14 ldr r3, [pc, #80] @ (8003844 ) - 80037f4: 711a strb r2, [r3, #4] - tts_canData[5] = (tireZones[3] >> 4) & 0xFF; + 80037f2: 4b19 ldr r3, [pc, #100] @ (8003858 ) + 80037f4: 791a ldrb r2, [r3, #4] 80037f6: 687b ldr r3, [r7, #4] 80037f8: 330c adds r3, #12 80037fa: 681b ldr r3, [r3, #0] - 80037fc: 091b lsrs r3, r3, #4 - 80037fe: b2da uxtb r2, r3 - 8003800: 4b10 ldr r3, [pc, #64] @ (8003844 ) - 8003802: 715a strb r2, [r3, #5] + 80037fc: b2db uxtb r3, r3 + 80037fe: 011b lsls r3, r3, #4 + 8003800: b2db uxtb r3, r3 + 8003802: 4313 orrs r3, r2 + 8003804: b2da uxtb r2, r3 + 8003806: 4b14 ldr r3, [pc, #80] @ (8003858 ) + 8003808: 711a strb r2, [r3, #4] + tts_canData[5] = (tireZones[3] >> 4) & 0xFF; + 800380a: 687b ldr r3, [r7, #4] + 800380c: 330c adds r3, #12 + 800380e: 681b ldr r3, [r3, #0] + 8003810: 091b lsrs r3, r3, #4 + 8003812: b2da uxtb r2, r3 + 8003814: 4b10 ldr r3, [pc, #64] @ (8003858 ) + 8003816: 715a strb r2, [r3, #5] // Center right: tts_canData[6] = tireZones[4] & 0xFF; - 8003804: 687b ldr r3, [r7, #4] - 8003806: 3310 adds r3, #16 - 8003808: 681b ldr r3, [r3, #0] - 800380a: b2da uxtb r2, r3 - 800380c: 4b0d ldr r3, [pc, #52] @ (8003844 ) - 800380e: 719a strb r2, [r3, #6] - tts_canData[7] = (tireZones[4] >> 8) & 0xF; - 8003810: 687b ldr r3, [r7, #4] - 8003812: 3310 adds r3, #16 - 8003814: 681b ldr r3, [r3, #0] - 8003816: 0a1b lsrs r3, r3, #8 - 8003818: b2db uxtb r3, r3 - 800381a: 220f movs r2, #15 - 800381c: 4013 ands r3, r2 + 8003818: 687b ldr r3, [r7, #4] + 800381a: 3310 adds r3, #16 + 800381c: 681b ldr r3, [r3, #0] 800381e: b2da uxtb r2, r3 - 8003820: 4b08 ldr r3, [pc, #32] @ (8003844 ) - 8003822: 71da strb r2, [r3, #7] + 8003820: 4b0d ldr r3, [pc, #52] @ (8003858 ) + 8003822: 719a strb r2, [r3, #6] + tts_canData[7] = (tireZones[4] >> 8) & 0xF; + 8003824: 687b ldr r3, [r7, #4] + 8003826: 3310 adds r3, #16 + 8003828: 681b ldr r3, [r3, #0] + 800382a: 0a1b lsrs r3, r3, #8 + 800382c: b2db uxtb r3, r3 + 800382e: 220f movs r2, #15 + 8003830: 4013 ands r3, r2 + 8003832: b2da uxtb r2, r3 + 8003834: 4b08 ldr r3, [pc, #32] @ (8003858 ) + 8003836: 71da strb r2, [r3, #7] // current tire selected: //tts_canData[7] = tts_canData[7] | ((tts_tireid & 0xF) << 4); if(HAL_CAN_AddTxMessage(tts_hcan, &tts_canHeader, tts_canData, &tts_canMailbox) != HAL_OK) { - 8003824: 4b08 ldr r3, [pc, #32] @ (8003848 ) - 8003826: 6818 ldr r0, [r3, #0] - 8003828: 4b08 ldr r3, [pc, #32] @ (800384c ) - 800382a: 4a06 ldr r2, [pc, #24] @ (8003844 ) - 800382c: 4908 ldr r1, [pc, #32] @ (8003850 ) - 800382e: f000 fc4b bl 80040c8 - 8003832: 1e03 subs r3, r0, #0 - 8003834: d001 beq.n 800383a + 8003838: 4b08 ldr r3, [pc, #32] @ (800385c ) + 800383a: 6818 ldr r0, [r3, #0] + 800383c: 4b08 ldr r3, [pc, #32] @ (8003860 ) + 800383e: 4a06 ldr r2, [pc, #24] @ (8003858 ) + 8003840: 4908 ldr r1, [pc, #32] @ (8003864 ) + 8003842: f000 fc4b bl 80040dc + 8003846: 1e03 subs r3, r0, #0 + 8003848: d001 beq.n 800384e Error_Handler(); - 8003836: f7ff fe39 bl 80034ac + 800384a: f7ff fe39 bl 80034c0 } } - 800383a: 46c0 nop @ (mov r8, r8) - 800383c: 46bd mov sp, r7 - 800383e: b002 add sp, #8 - 8003840: bd80 pop {r7, pc} - 8003842: 46c0 nop @ (mov r8, r8) - 8003844: 20000864 .word 0x20000864 - 8003848: 20000848 .word 0x20000848 - 800384c: 2000086c .word 0x2000086c - 8003850: 2000084c .word 0x2000084c + 800384e: 46c0 nop @ (mov r8, r8) + 8003850: 46bd mov sp, r7 + 8003852: b002 add sp, #8 + 8003854: bd80 pop {r7, pc} + 8003856: 46c0 nop @ (mov r8, r8) + 8003858: 20000864 .word 0x20000864 + 800385c: 20000848 .word 0x20000848 + 8003860: 2000086c .word 0x2000086c + 8003864: 2000084c .word 0x2000084c -08003854 : +08003868 : void TTS_TireZones(uint32_t tempArray[32], uint32_t tireTempArray[5]) { - 8003854: b5b0 push {r4, r5, r7, lr} - 8003856: b084 sub sp, #16 - 8003858: af00 add r7, sp, #0 - 800385a: 6078 str r0, [r7, #4] - 800385c: 6039 str r1, [r7, #0] + 8003868: b5b0 push {r4, r5, r7, lr} + 800386a: b084 sub sp, #16 + 800386c: af00 add r7, sp, #0 + 800386e: 6078 str r0, [r7, #4] + 8003870: 6039 str r1, [r7, #0] for(uint8_t i = 0; i < 5; i++) { - 800385e: 230f movs r3, #15 - 8003860: 18fb adds r3, r7, r3 - 8003862: 2200 movs r2, #0 - 8003864: 701a strb r2, [r3, #0] - 8003866: e00c b.n 8003882 + 8003872: 230f movs r3, #15 + 8003874: 18fb adds r3, r7, r3 + 8003876: 2200 movs r2, #0 + 8003878: 701a strb r2, [r3, #0] + 800387a: e00c b.n 8003896 tireTempArray[i] = 0; - 8003868: 210f movs r1, #15 - 800386a: 187b adds r3, r7, r1 - 800386c: 781b ldrb r3, [r3, #0] - 800386e: 009b lsls r3, r3, #2 - 8003870: 683a ldr r2, [r7, #0] - 8003872: 18d3 adds r3, r2, r3 - 8003874: 2200 movs r2, #0 - 8003876: 601a str r2, [r3, #0] + 800387c: 210f movs r1, #15 + 800387e: 187b adds r3, r7, r1 + 8003880: 781b ldrb r3, [r3, #0] + 8003882: 009b lsls r3, r3, #2 + 8003884: 683a ldr r2, [r7, #0] + 8003886: 18d3 adds r3, r2, r3 + 8003888: 2200 movs r2, #0 + 800388a: 601a str r2, [r3, #0] for(uint8_t i = 0; i < 5; i++) { - 8003878: 187b adds r3, r7, r1 - 800387a: 781a ldrb r2, [r3, #0] - 800387c: 187b adds r3, r7, r1 - 800387e: 3201 adds r2, #1 - 8003880: 701a strb r2, [r3, #0] - 8003882: 230f movs r3, #15 - 8003884: 18fb adds r3, r7, r3 - 8003886: 781b ldrb r3, [r3, #0] - 8003888: 2b04 cmp r3, #4 - 800388a: d9ed bls.n 8003868 + 800388c: 187b adds r3, r7, r1 + 800388e: 781a ldrb r2, [r3, #0] + 8003890: 187b adds r3, r7, r1 + 8003892: 3201 adds r2, #1 + 8003894: 701a strb r2, [r3, #0] + 8003896: 230f movs r3, #15 + 8003898: 18fb adds r3, r7, r3 + 800389a: 781b ldrb r3, [r3, #0] + 800389c: 2b04 cmp r3, #4 + 800389e: d9ed bls.n 800387c } uint8_t zoneWidth[5] = {0}; - 800388c: 2308 movs r3, #8 - 800388e: 18fb adds r3, r7, r3 - 8003890: 0018 movs r0, r3 - 8003892: 2305 movs r3, #5 - 8003894: 001a movs r2, r3 - 8003896: 2100 movs r1, #0 - 8003898: f002 fc92 bl 80061c0 + 80038a0: 2308 movs r3, #8 + 80038a2: 18fb adds r3, r7, r3 + 80038a4: 0018 movs r0, r3 + 80038a6: 2305 movs r3, #5 + 80038a8: 001a movs r2, r3 + 80038aa: 2100 movs r1, #0 + 80038ac: f002 fc92 bl 80061d4 uint8_t tireid = tts_tireid; - 800389c: 230d movs r3, #13 - 800389e: 18fb adds r3, r7, r3 - 80038a0: 4aac ldr r2, [pc, #688] @ (8003b54 ) - 80038a2: 7812 ldrb r2, [r2, #0] - 80038a4: 701a strb r2, [r3, #0] + 80038b0: 230d movs r3, #13 + 80038b2: 18fb adds r3, r7, r3 + 80038b4: 4aac ldr r2, [pc, #688] @ (8003b68 ) + 80038b6: 7812 ldrb r2, [r2, #0] + 80038b8: 701a strb r2, [r3, #0] for(uint8_t i = 0; i < 32; i++) { - 80038a6: 230e movs r3, #14 - 80038a8: 18fb adds r3, r7, r3 - 80038aa: 2200 movs r2, #0 - 80038ac: 701a strb r2, [r3, #0] - 80038ae: e102 b.n 8003ab6 + 80038ba: 230e movs r3, #14 + 80038bc: 18fb adds r3, r7, r3 + 80038be: 2200 movs r2, #0 + 80038c0: 701a strb r2, [r3, #0] + 80038c2: e102 b.n 8003aca // outer right: if((i <= tts_tiredb[tts_tireid].outerRightStart) && (i >= tts_tiredb[tts_tireid].outerRightStop)) { - 80038b0: 4ba8 ldr r3, [pc, #672] @ (8003b54 ) - 80038b2: 781b ldrb r3, [r3, #0] - 80038b4: 0019 movs r1, r3 - 80038b6: 4aa8 ldr r2, [pc, #672] @ (8003b58 ) - 80038b8: 000b movs r3, r1 - 80038ba: 005b lsls r3, r3, #1 - 80038bc: 185b adds r3, r3, r1 - 80038be: 009b lsls r3, r3, #2 - 80038c0: 18d3 adds r3, r2, r3 - 80038c2: 330a adds r3, #10 - 80038c4: 781b ldrb r3, [r3, #0] - 80038c6: 200e movs r0, #14 - 80038c8: 183a adds r2, r7, r0 - 80038ca: 7812 ldrb r2, [r2, #0] - 80038cc: 429a cmp r2, r3 - 80038ce: d822 bhi.n 8003916 - 80038d0: 4ba0 ldr r3, [pc, #640] @ (8003b54 ) - 80038d2: 781b ldrb r3, [r3, #0] - 80038d4: 0019 movs r1, r3 - 80038d6: 4aa0 ldr r2, [pc, #640] @ (8003b58 ) - 80038d8: 000b movs r3, r1 - 80038da: 005b lsls r3, r3, #1 - 80038dc: 185b adds r3, r3, r1 - 80038de: 009b lsls r3, r3, #2 - 80038e0: 18d3 adds r3, r2, r3 - 80038e2: 330b adds r3, #11 - 80038e4: 781b ldrb r3, [r3, #0] - 80038e6: 183a adds r2, r7, r0 - 80038e8: 7812 ldrb r2, [r2, #0] - 80038ea: 429a cmp r2, r3 - 80038ec: d313 bcc.n 8003916 + 80038c4: 4ba8 ldr r3, [pc, #672] @ (8003b68 ) + 80038c6: 781b ldrb r3, [r3, #0] + 80038c8: 0019 movs r1, r3 + 80038ca: 4aa8 ldr r2, [pc, #672] @ (8003b6c ) + 80038cc: 000b movs r3, r1 + 80038ce: 005b lsls r3, r3, #1 + 80038d0: 185b adds r3, r3, r1 + 80038d2: 009b lsls r3, r3, #2 + 80038d4: 18d3 adds r3, r2, r3 + 80038d6: 330a adds r3, #10 + 80038d8: 781b ldrb r3, [r3, #0] + 80038da: 200e movs r0, #14 + 80038dc: 183a adds r2, r7, r0 + 80038de: 7812 ldrb r2, [r2, #0] + 80038e0: 429a cmp r2, r3 + 80038e2: d822 bhi.n 800392a + 80038e4: 4ba0 ldr r3, [pc, #640] @ (8003b68 ) + 80038e6: 781b ldrb r3, [r3, #0] + 80038e8: 0019 movs r1, r3 + 80038ea: 4aa0 ldr r2, [pc, #640] @ (8003b6c ) + 80038ec: 000b movs r3, r1 + 80038ee: 005b lsls r3, r3, #1 + 80038f0: 185b adds r3, r3, r1 + 80038f2: 009b lsls r3, r3, #2 + 80038f4: 18d3 adds r3, r2, r3 + 80038f6: 330b adds r3, #11 + 80038f8: 781b ldrb r3, [r3, #0] + 80038fa: 183a adds r2, r7, r0 + 80038fc: 7812 ldrb r2, [r2, #0] + 80038fe: 429a cmp r2, r3 + 8003900: d313 bcc.n 800392a tireTempArray[4] = tireTempArray[4] + tempArray[i]; - 80038ee: 683b ldr r3, [r7, #0] - 80038f0: 3310 adds r3, #16 - 80038f2: 6819 ldr r1, [r3, #0] - 80038f4: 183b adds r3, r7, r0 - 80038f6: 781b ldrb r3, [r3, #0] - 80038f8: 009b lsls r3, r3, #2 - 80038fa: 687a ldr r2, [r7, #4] - 80038fc: 18d3 adds r3, r2, r3 - 80038fe: 681a ldr r2, [r3, #0] - 8003900: 683b ldr r3, [r7, #0] - 8003902: 3310 adds r3, #16 - 8003904: 188a adds r2, r1, r2 - 8003906: 601a str r2, [r3, #0] + 8003902: 683b ldr r3, [r7, #0] + 8003904: 3310 adds r3, #16 + 8003906: 6819 ldr r1, [r3, #0] + 8003908: 183b adds r3, r7, r0 + 800390a: 781b ldrb r3, [r3, #0] + 800390c: 009b lsls r3, r3, #2 + 800390e: 687a ldr r2, [r7, #4] + 8003910: 18d3 adds r3, r2, r3 + 8003912: 681a ldr r2, [r3, #0] + 8003914: 683b ldr r3, [r7, #0] + 8003916: 3310 adds r3, #16 + 8003918: 188a adds r2, r1, r2 + 800391a: 601a str r2, [r3, #0] zoneWidth[4]++; - 8003908: 2108 movs r1, #8 - 800390a: 187b adds r3, r7, r1 - 800390c: 791b ldrb r3, [r3, #4] - 800390e: 3301 adds r3, #1 - 8003910: b2da uxtb r2, r3 - 8003912: 187b adds r3, r7, r1 - 8003914: 711a strb r2, [r3, #4] + 800391c: 2108 movs r1, #8 + 800391e: 187b adds r3, r7, r1 + 8003920: 791b ldrb r3, [r3, #4] + 8003922: 3301 adds r3, #1 + 8003924: b2da uxtb r2, r3 + 8003926: 187b adds r3, r7, r1 + 8003928: 711a strb r2, [r3, #4] } // center right: if((i <= tts_tiredb[tts_tireid].centerRightStart) && (i >= tts_tiredb[tts_tireid].centerRightStop)) { - 8003916: 4b8f ldr r3, [pc, #572] @ (8003b54 ) - 8003918: 781b ldrb r3, [r3, #0] - 800391a: 0019 movs r1, r3 - 800391c: 4a8e ldr r2, [pc, #568] @ (8003b58 ) - 800391e: 000b movs r3, r1 - 8003920: 005b lsls r3, r3, #1 - 8003922: 185b adds r3, r3, r1 - 8003924: 009b lsls r3, r3, #2 - 8003926: 18d3 adds r3, r2, r3 - 8003928: 3308 adds r3, #8 - 800392a: 781b ldrb r3, [r3, #0] - 800392c: 200e movs r0, #14 - 800392e: 183a adds r2, r7, r0 - 8003930: 7812 ldrb r2, [r2, #0] - 8003932: 429a cmp r2, r3 - 8003934: d822 bhi.n 800397c - 8003936: 4b87 ldr r3, [pc, #540] @ (8003b54 ) - 8003938: 781b ldrb r3, [r3, #0] - 800393a: 0019 movs r1, r3 - 800393c: 4a86 ldr r2, [pc, #536] @ (8003b58 ) - 800393e: 000b movs r3, r1 - 8003940: 005b lsls r3, r3, #1 - 8003942: 185b adds r3, r3, r1 - 8003944: 009b lsls r3, r3, #2 - 8003946: 18d3 adds r3, r2, r3 - 8003948: 3309 adds r3, #9 - 800394a: 781b ldrb r3, [r3, #0] - 800394c: 183a adds r2, r7, r0 - 800394e: 7812 ldrb r2, [r2, #0] - 8003950: 429a cmp r2, r3 - 8003952: d313 bcc.n 800397c + 800392a: 4b8f ldr r3, [pc, #572] @ (8003b68 ) + 800392c: 781b ldrb r3, [r3, #0] + 800392e: 0019 movs r1, r3 + 8003930: 4a8e ldr r2, [pc, #568] @ (8003b6c ) + 8003932: 000b movs r3, r1 + 8003934: 005b lsls r3, r3, #1 + 8003936: 185b adds r3, r3, r1 + 8003938: 009b lsls r3, r3, #2 + 800393a: 18d3 adds r3, r2, r3 + 800393c: 3308 adds r3, #8 + 800393e: 781b ldrb r3, [r3, #0] + 8003940: 200e movs r0, #14 + 8003942: 183a adds r2, r7, r0 + 8003944: 7812 ldrb r2, [r2, #0] + 8003946: 429a cmp r2, r3 + 8003948: d822 bhi.n 8003990 + 800394a: 4b87 ldr r3, [pc, #540] @ (8003b68 ) + 800394c: 781b ldrb r3, [r3, #0] + 800394e: 0019 movs r1, r3 + 8003950: 4a86 ldr r2, [pc, #536] @ (8003b6c ) + 8003952: 000b movs r3, r1 + 8003954: 005b lsls r3, r3, #1 + 8003956: 185b adds r3, r3, r1 + 8003958: 009b lsls r3, r3, #2 + 800395a: 18d3 adds r3, r2, r3 + 800395c: 3309 adds r3, #9 + 800395e: 781b ldrb r3, [r3, #0] + 8003960: 183a adds r2, r7, r0 + 8003962: 7812 ldrb r2, [r2, #0] + 8003964: 429a cmp r2, r3 + 8003966: d313 bcc.n 8003990 tireTempArray[3] = tireTempArray[3] + tempArray[i]; - 8003954: 683b ldr r3, [r7, #0] - 8003956: 330c adds r3, #12 - 8003958: 6819 ldr r1, [r3, #0] - 800395a: 183b adds r3, r7, r0 - 800395c: 781b ldrb r3, [r3, #0] - 800395e: 009b lsls r3, r3, #2 - 8003960: 687a ldr r2, [r7, #4] - 8003962: 18d3 adds r3, r2, r3 - 8003964: 681a ldr r2, [r3, #0] - 8003966: 683b ldr r3, [r7, #0] - 8003968: 330c adds r3, #12 - 800396a: 188a adds r2, r1, r2 - 800396c: 601a str r2, [r3, #0] + 8003968: 683b ldr r3, [r7, #0] + 800396a: 330c adds r3, #12 + 800396c: 6819 ldr r1, [r3, #0] + 800396e: 183b adds r3, r7, r0 + 8003970: 781b ldrb r3, [r3, #0] + 8003972: 009b lsls r3, r3, #2 + 8003974: 687a ldr r2, [r7, #4] + 8003976: 18d3 adds r3, r2, r3 + 8003978: 681a ldr r2, [r3, #0] + 800397a: 683b ldr r3, [r7, #0] + 800397c: 330c adds r3, #12 + 800397e: 188a adds r2, r1, r2 + 8003980: 601a str r2, [r3, #0] zoneWidth[3]++; - 800396e: 2108 movs r1, #8 - 8003970: 187b adds r3, r7, r1 - 8003972: 78db ldrb r3, [r3, #3] - 8003974: 3301 adds r3, #1 - 8003976: b2da uxtb r2, r3 - 8003978: 187b adds r3, r7, r1 - 800397a: 70da strb r2, [r3, #3] + 8003982: 2108 movs r1, #8 + 8003984: 187b adds r3, r7, r1 + 8003986: 78db ldrb r3, [r3, #3] + 8003988: 3301 adds r3, #1 + 800398a: b2da uxtb r2, r3 + 800398c: 187b adds r3, r7, r1 + 800398e: 70da strb r2, [r3, #3] } // center: if((i <= tts_tiredb[tts_tireid].centerStart) && (i >= tts_tiredb[tts_tireid].centerStop)) { - 800397c: 4b75 ldr r3, [pc, #468] @ (8003b54 ) - 800397e: 781b ldrb r3, [r3, #0] - 8003980: 0019 movs r1, r3 - 8003982: 4a75 ldr r2, [pc, #468] @ (8003b58 ) - 8003984: 000b movs r3, r1 - 8003986: 005b lsls r3, r3, #1 - 8003988: 185b adds r3, r3, r1 - 800398a: 009b lsls r3, r3, #2 - 800398c: 18d3 adds r3, r2, r3 - 800398e: 3306 adds r3, #6 - 8003990: 781b ldrb r3, [r3, #0] - 8003992: 200e movs r0, #14 - 8003994: 183a adds r2, r7, r0 - 8003996: 7812 ldrb r2, [r2, #0] - 8003998: 429a cmp r2, r3 - 800399a: d822 bhi.n 80039e2 - 800399c: 4b6d ldr r3, [pc, #436] @ (8003b54 ) - 800399e: 781b ldrb r3, [r3, #0] - 80039a0: 0019 movs r1, r3 - 80039a2: 4a6d ldr r2, [pc, #436] @ (8003b58 ) - 80039a4: 000b movs r3, r1 - 80039a6: 005b lsls r3, r3, #1 - 80039a8: 185b adds r3, r3, r1 - 80039aa: 009b lsls r3, r3, #2 - 80039ac: 18d3 adds r3, r2, r3 - 80039ae: 3307 adds r3, #7 - 80039b0: 781b ldrb r3, [r3, #0] - 80039b2: 183a adds r2, r7, r0 - 80039b4: 7812 ldrb r2, [r2, #0] - 80039b6: 429a cmp r2, r3 - 80039b8: d313 bcc.n 80039e2 + 8003990: 4b75 ldr r3, [pc, #468] @ (8003b68 ) + 8003992: 781b ldrb r3, [r3, #0] + 8003994: 0019 movs r1, r3 + 8003996: 4a75 ldr r2, [pc, #468] @ (8003b6c ) + 8003998: 000b movs r3, r1 + 800399a: 005b lsls r3, r3, #1 + 800399c: 185b adds r3, r3, r1 + 800399e: 009b lsls r3, r3, #2 + 80039a0: 18d3 adds r3, r2, r3 + 80039a2: 3306 adds r3, #6 + 80039a4: 781b ldrb r3, [r3, #0] + 80039a6: 200e movs r0, #14 + 80039a8: 183a adds r2, r7, r0 + 80039aa: 7812 ldrb r2, [r2, #0] + 80039ac: 429a cmp r2, r3 + 80039ae: d822 bhi.n 80039f6 + 80039b0: 4b6d ldr r3, [pc, #436] @ (8003b68 ) + 80039b2: 781b ldrb r3, [r3, #0] + 80039b4: 0019 movs r1, r3 + 80039b6: 4a6d ldr r2, [pc, #436] @ (8003b6c ) + 80039b8: 000b movs r3, r1 + 80039ba: 005b lsls r3, r3, #1 + 80039bc: 185b adds r3, r3, r1 + 80039be: 009b lsls r3, r3, #2 + 80039c0: 18d3 adds r3, r2, r3 + 80039c2: 3307 adds r3, #7 + 80039c4: 781b ldrb r3, [r3, #0] + 80039c6: 183a adds r2, r7, r0 + 80039c8: 7812 ldrb r2, [r2, #0] + 80039ca: 429a cmp r2, r3 + 80039cc: d313 bcc.n 80039f6 tireTempArray[2] = tireTempArray[2] + tempArray[i]; - 80039ba: 683b ldr r3, [r7, #0] - 80039bc: 3308 adds r3, #8 - 80039be: 6819 ldr r1, [r3, #0] - 80039c0: 183b adds r3, r7, r0 - 80039c2: 781b ldrb r3, [r3, #0] - 80039c4: 009b lsls r3, r3, #2 - 80039c6: 687a ldr r2, [r7, #4] - 80039c8: 18d3 adds r3, r2, r3 - 80039ca: 681a ldr r2, [r3, #0] - 80039cc: 683b ldr r3, [r7, #0] - 80039ce: 3308 adds r3, #8 - 80039d0: 188a adds r2, r1, r2 - 80039d2: 601a str r2, [r3, #0] + 80039ce: 683b ldr r3, [r7, #0] + 80039d0: 3308 adds r3, #8 + 80039d2: 6819 ldr r1, [r3, #0] + 80039d4: 183b adds r3, r7, r0 + 80039d6: 781b ldrb r3, [r3, #0] + 80039d8: 009b lsls r3, r3, #2 + 80039da: 687a ldr r2, [r7, #4] + 80039dc: 18d3 adds r3, r2, r3 + 80039de: 681a ldr r2, [r3, #0] + 80039e0: 683b ldr r3, [r7, #0] + 80039e2: 3308 adds r3, #8 + 80039e4: 188a adds r2, r1, r2 + 80039e6: 601a str r2, [r3, #0] zoneWidth[2]++; - 80039d4: 2108 movs r1, #8 - 80039d6: 187b adds r3, r7, r1 - 80039d8: 789b ldrb r3, [r3, #2] - 80039da: 3301 adds r3, #1 - 80039dc: b2da uxtb r2, r3 - 80039de: 187b adds r3, r7, r1 - 80039e0: 709a strb r2, [r3, #2] + 80039e8: 2108 movs r1, #8 + 80039ea: 187b adds r3, r7, r1 + 80039ec: 789b ldrb r3, [r3, #2] + 80039ee: 3301 adds r3, #1 + 80039f0: b2da uxtb r2, r3 + 80039f2: 187b adds r3, r7, r1 + 80039f4: 709a strb r2, [r3, #2] } // center left: if((i <= tts_tiredb[tts_tireid].centerLeftStart) && (i >= tts_tiredb[tts_tireid].centerLeftStop)) { - 80039e2: 4b5c ldr r3, [pc, #368] @ (8003b54 ) - 80039e4: 781b ldrb r3, [r3, #0] - 80039e6: 0019 movs r1, r3 - 80039e8: 4a5b ldr r2, [pc, #364] @ (8003b58 ) - 80039ea: 000b movs r3, r1 - 80039ec: 005b lsls r3, r3, #1 - 80039ee: 185b adds r3, r3, r1 - 80039f0: 009b lsls r3, r3, #2 - 80039f2: 18d3 adds r3, r2, r3 - 80039f4: 3304 adds r3, #4 - 80039f6: 781b ldrb r3, [r3, #0] - 80039f8: 200e movs r0, #14 - 80039fa: 183a adds r2, r7, r0 - 80039fc: 7812 ldrb r2, [r2, #0] - 80039fe: 429a cmp r2, r3 - 8003a00: d822 bhi.n 8003a48 - 8003a02: 4b54 ldr r3, [pc, #336] @ (8003b54 ) - 8003a04: 781b ldrb r3, [r3, #0] - 8003a06: 0019 movs r1, r3 - 8003a08: 4a53 ldr r2, [pc, #332] @ (8003b58 ) - 8003a0a: 000b movs r3, r1 - 8003a0c: 005b lsls r3, r3, #1 - 8003a0e: 185b adds r3, r3, r1 - 8003a10: 009b lsls r3, r3, #2 - 8003a12: 18d3 adds r3, r2, r3 - 8003a14: 3305 adds r3, #5 - 8003a16: 781b ldrb r3, [r3, #0] - 8003a18: 183a adds r2, r7, r0 - 8003a1a: 7812 ldrb r2, [r2, #0] - 8003a1c: 429a cmp r2, r3 - 8003a1e: d313 bcc.n 8003a48 + 80039f6: 4b5c ldr r3, [pc, #368] @ (8003b68 ) + 80039f8: 781b ldrb r3, [r3, #0] + 80039fa: 0019 movs r1, r3 + 80039fc: 4a5b ldr r2, [pc, #364] @ (8003b6c ) + 80039fe: 000b movs r3, r1 + 8003a00: 005b lsls r3, r3, #1 + 8003a02: 185b adds r3, r3, r1 + 8003a04: 009b lsls r3, r3, #2 + 8003a06: 18d3 adds r3, r2, r3 + 8003a08: 3304 adds r3, #4 + 8003a0a: 781b ldrb r3, [r3, #0] + 8003a0c: 200e movs r0, #14 + 8003a0e: 183a adds r2, r7, r0 + 8003a10: 7812 ldrb r2, [r2, #0] + 8003a12: 429a cmp r2, r3 + 8003a14: d822 bhi.n 8003a5c + 8003a16: 4b54 ldr r3, [pc, #336] @ (8003b68 ) + 8003a18: 781b ldrb r3, [r3, #0] + 8003a1a: 0019 movs r1, r3 + 8003a1c: 4a53 ldr r2, [pc, #332] @ (8003b6c ) + 8003a1e: 000b movs r3, r1 + 8003a20: 005b lsls r3, r3, #1 + 8003a22: 185b adds r3, r3, r1 + 8003a24: 009b lsls r3, r3, #2 + 8003a26: 18d3 adds r3, r2, r3 + 8003a28: 3305 adds r3, #5 + 8003a2a: 781b ldrb r3, [r3, #0] + 8003a2c: 183a adds r2, r7, r0 + 8003a2e: 7812 ldrb r2, [r2, #0] + 8003a30: 429a cmp r2, r3 + 8003a32: d313 bcc.n 8003a5c tireTempArray[1] = tireTempArray[1] + tempArray[i]; - 8003a20: 683b ldr r3, [r7, #0] - 8003a22: 3304 adds r3, #4 - 8003a24: 6819 ldr r1, [r3, #0] - 8003a26: 183b adds r3, r7, r0 - 8003a28: 781b ldrb r3, [r3, #0] - 8003a2a: 009b lsls r3, r3, #2 - 8003a2c: 687a ldr r2, [r7, #4] - 8003a2e: 18d3 adds r3, r2, r3 - 8003a30: 681a ldr r2, [r3, #0] - 8003a32: 683b ldr r3, [r7, #0] - 8003a34: 3304 adds r3, #4 - 8003a36: 188a adds r2, r1, r2 - 8003a38: 601a str r2, [r3, #0] + 8003a34: 683b ldr r3, [r7, #0] + 8003a36: 3304 adds r3, #4 + 8003a38: 6819 ldr r1, [r3, #0] + 8003a3a: 183b adds r3, r7, r0 + 8003a3c: 781b ldrb r3, [r3, #0] + 8003a3e: 009b lsls r3, r3, #2 + 8003a40: 687a ldr r2, [r7, #4] + 8003a42: 18d3 adds r3, r2, r3 + 8003a44: 681a ldr r2, [r3, #0] + 8003a46: 683b ldr r3, [r7, #0] + 8003a48: 3304 adds r3, #4 + 8003a4a: 188a adds r2, r1, r2 + 8003a4c: 601a str r2, [r3, #0] zoneWidth[1]++; - 8003a3a: 2108 movs r1, #8 - 8003a3c: 187b adds r3, r7, r1 - 8003a3e: 785b ldrb r3, [r3, #1] - 8003a40: 3301 adds r3, #1 - 8003a42: b2da uxtb r2, r3 - 8003a44: 187b adds r3, r7, r1 - 8003a46: 705a strb r2, [r3, #1] + 8003a4e: 2108 movs r1, #8 + 8003a50: 187b adds r3, r7, r1 + 8003a52: 785b ldrb r3, [r3, #1] + 8003a54: 3301 adds r3, #1 + 8003a56: b2da uxtb r2, r3 + 8003a58: 187b adds r3, r7, r1 + 8003a5a: 705a strb r2, [r3, #1] } // outer left: if((i <= tts_tiredb[tts_tireid].outerLeftStart) && (i >= tts_tiredb[tts_tireid].outerLeftStop)) { - 8003a48: 4b42 ldr r3, [pc, #264] @ (8003b54 ) - 8003a4a: 781b ldrb r3, [r3, #0] - 8003a4c: 0019 movs r1, r3 - 8003a4e: 4a42 ldr r2, [pc, #264] @ (8003b58 ) - 8003a50: 000b movs r3, r1 - 8003a52: 005b lsls r3, r3, #1 - 8003a54: 185b adds r3, r3, r1 - 8003a56: 009b lsls r3, r3, #2 - 8003a58: 18d3 adds r3, r2, r3 - 8003a5a: 3302 adds r3, #2 - 8003a5c: 781b ldrb r3, [r3, #0] - 8003a5e: 200e movs r0, #14 - 8003a60: 183a adds r2, r7, r0 - 8003a62: 7812 ldrb r2, [r2, #0] - 8003a64: 429a cmp r2, r3 - 8003a66: d820 bhi.n 8003aaa - 8003a68: 4b3a ldr r3, [pc, #232] @ (8003b54 ) - 8003a6a: 781b ldrb r3, [r3, #0] - 8003a6c: 0019 movs r1, r3 - 8003a6e: 4a3a ldr r2, [pc, #232] @ (8003b58 ) - 8003a70: 000b movs r3, r1 - 8003a72: 005b lsls r3, r3, #1 - 8003a74: 185b adds r3, r3, r1 - 8003a76: 009b lsls r3, r3, #2 - 8003a78: 18d3 adds r3, r2, r3 - 8003a7a: 3303 adds r3, #3 - 8003a7c: 781b ldrb r3, [r3, #0] - 8003a7e: 183a adds r2, r7, r0 - 8003a80: 7812 ldrb r2, [r2, #0] - 8003a82: 429a cmp r2, r3 - 8003a84: d311 bcc.n 8003aaa + 8003a5c: 4b42 ldr r3, [pc, #264] @ (8003b68 ) + 8003a5e: 781b ldrb r3, [r3, #0] + 8003a60: 0019 movs r1, r3 + 8003a62: 4a42 ldr r2, [pc, #264] @ (8003b6c ) + 8003a64: 000b movs r3, r1 + 8003a66: 005b lsls r3, r3, #1 + 8003a68: 185b adds r3, r3, r1 + 8003a6a: 009b lsls r3, r3, #2 + 8003a6c: 18d3 adds r3, r2, r3 + 8003a6e: 3302 adds r3, #2 + 8003a70: 781b ldrb r3, [r3, #0] + 8003a72: 200e movs r0, #14 + 8003a74: 183a adds r2, r7, r0 + 8003a76: 7812 ldrb r2, [r2, #0] + 8003a78: 429a cmp r2, r3 + 8003a7a: d820 bhi.n 8003abe + 8003a7c: 4b3a ldr r3, [pc, #232] @ (8003b68 ) + 8003a7e: 781b ldrb r3, [r3, #0] + 8003a80: 0019 movs r1, r3 + 8003a82: 4a3a ldr r2, [pc, #232] @ (8003b6c ) + 8003a84: 000b movs r3, r1 + 8003a86: 005b lsls r3, r3, #1 + 8003a88: 185b adds r3, r3, r1 + 8003a8a: 009b lsls r3, r3, #2 + 8003a8c: 18d3 adds r3, r2, r3 + 8003a8e: 3303 adds r3, #3 + 8003a90: 781b ldrb r3, [r3, #0] + 8003a92: 183a adds r2, r7, r0 + 8003a94: 7812 ldrb r2, [r2, #0] + 8003a96: 429a cmp r2, r3 + 8003a98: d311 bcc.n 8003abe tireTempArray[0] = tireTempArray[0] + tempArray[i]; - 8003a86: 683b ldr r3, [r7, #0] - 8003a88: 681a ldr r2, [r3, #0] - 8003a8a: 183b adds r3, r7, r0 - 8003a8c: 781b ldrb r3, [r3, #0] - 8003a8e: 009b lsls r3, r3, #2 - 8003a90: 6879 ldr r1, [r7, #4] - 8003a92: 18cb adds r3, r1, r3 - 8003a94: 681b ldr r3, [r3, #0] - 8003a96: 18d2 adds r2, r2, r3 - 8003a98: 683b ldr r3, [r7, #0] - 8003a9a: 601a str r2, [r3, #0] - zoneWidth[0]++; - 8003a9c: 2108 movs r1, #8 - 8003a9e: 187b adds r3, r7, r1 + 8003a9a: 683b ldr r3, [r7, #0] + 8003a9c: 681a ldr r2, [r3, #0] + 8003a9e: 183b adds r3, r7, r0 8003aa0: 781b ldrb r3, [r3, #0] - 8003aa2: 3301 adds r3, #1 - 8003aa4: b2da uxtb r2, r3 - 8003aa6: 187b adds r3, r7, r1 - 8003aa8: 701a strb r2, [r3, #0] + 8003aa2: 009b lsls r3, r3, #2 + 8003aa4: 6879 ldr r1, [r7, #4] + 8003aa6: 18cb adds r3, r1, r3 + 8003aa8: 681b ldr r3, [r3, #0] + 8003aaa: 18d2 adds r2, r2, r3 + 8003aac: 683b ldr r3, [r7, #0] + 8003aae: 601a str r2, [r3, #0] + zoneWidth[0]++; + 8003ab0: 2108 movs r1, #8 + 8003ab2: 187b adds r3, r7, r1 + 8003ab4: 781b ldrb r3, [r3, #0] + 8003ab6: 3301 adds r3, #1 + 8003ab8: b2da uxtb r2, r3 + 8003aba: 187b adds r3, r7, r1 + 8003abc: 701a strb r2, [r3, #0] for(uint8_t i = 0; i < 32; i++) { - 8003aaa: 210e movs r1, #14 - 8003aac: 187b adds r3, r7, r1 - 8003aae: 781a ldrb r2, [r3, #0] - 8003ab0: 187b adds r3, r7, r1 - 8003ab2: 3201 adds r2, #1 - 8003ab4: 701a strb r2, [r3, #0] - 8003ab6: 230e movs r3, #14 - 8003ab8: 18fb adds r3, r7, r3 - 8003aba: 781b ldrb r3, [r3, #0] - 8003abc: 2b1f cmp r3, #31 - 8003abe: d800 bhi.n 8003ac2 - 8003ac0: e6f6 b.n 80038b0 + 8003abe: 210e movs r1, #14 + 8003ac0: 187b adds r3, r7, r1 + 8003ac2: 781a ldrb r2, [r3, #0] + 8003ac4: 187b adds r3, r7, r1 + 8003ac6: 3201 adds r2, #1 + 8003ac8: 701a strb r2, [r3, #0] + 8003aca: 230e movs r3, #14 + 8003acc: 18fb adds r3, r7, r3 + 8003ace: 781b ldrb r3, [r3, #0] + 8003ad0: 2b1f cmp r3, #31 + 8003ad2: d800 bhi.n 8003ad6 + 8003ad4: e6f6 b.n 80038c4 } } tireTempArray[4] = tireTempArray[4] / zoneWidth[4]; - 8003ac2: 683b ldr r3, [r7, #0] - 8003ac4: 3310 adds r3, #16 - 8003ac6: 681a ldr r2, [r3, #0] - 8003ac8: 2508 movs r5, #8 - 8003aca: 197b adds r3, r7, r5 - 8003acc: 791b ldrb r3, [r3, #4] - 8003ace: 0019 movs r1, r3 - 8003ad0: 683b ldr r3, [r7, #0] - 8003ad2: 3310 adds r3, #16 - 8003ad4: 001c movs r4, r3 - 8003ad6: 0010 movs r0, r2 - 8003ad8: f7fc fb16 bl 8000108 <__udivsi3> - 8003adc: 0003 movs r3, r0 - 8003ade: 6023 str r3, [r4, #0] + 8003ad6: 683b ldr r3, [r7, #0] + 8003ad8: 3310 adds r3, #16 + 8003ada: 681a ldr r2, [r3, #0] + 8003adc: 2508 movs r5, #8 + 8003ade: 197b adds r3, r7, r5 + 8003ae0: 791b ldrb r3, [r3, #4] + 8003ae2: 0019 movs r1, r3 + 8003ae4: 683b ldr r3, [r7, #0] + 8003ae6: 3310 adds r3, #16 + 8003ae8: 001c movs r4, r3 + 8003aea: 0010 movs r0, r2 + 8003aec: f7fc fb0c bl 8000108 <__udivsi3> + 8003af0: 0003 movs r3, r0 + 8003af2: 6023 str r3, [r4, #0] tireTempArray[3] = tireTempArray[3] / zoneWidth[3]; - 8003ae0: 683b ldr r3, [r7, #0] - 8003ae2: 330c adds r3, #12 - 8003ae4: 681a ldr r2, [r3, #0] - 8003ae6: 197b adds r3, r7, r5 - 8003ae8: 78db ldrb r3, [r3, #3] - 8003aea: 0019 movs r1, r3 - 8003aec: 683b ldr r3, [r7, #0] - 8003aee: 330c adds r3, #12 - 8003af0: 001c movs r4, r3 - 8003af2: 0010 movs r0, r2 - 8003af4: f7fc fb08 bl 8000108 <__udivsi3> - 8003af8: 0003 movs r3, r0 - 8003afa: 6023 str r3, [r4, #0] + 8003af4: 683b ldr r3, [r7, #0] + 8003af6: 330c adds r3, #12 + 8003af8: 681a ldr r2, [r3, #0] + 8003afa: 197b adds r3, r7, r5 + 8003afc: 78db ldrb r3, [r3, #3] + 8003afe: 0019 movs r1, r3 + 8003b00: 683b ldr r3, [r7, #0] + 8003b02: 330c adds r3, #12 + 8003b04: 001c movs r4, r3 + 8003b06: 0010 movs r0, r2 + 8003b08: f7fc fafe bl 8000108 <__udivsi3> + 8003b0c: 0003 movs r3, r0 + 8003b0e: 6023 str r3, [r4, #0] tireTempArray[2] = tireTempArray[2] / zoneWidth[2]; - 8003afc: 683b ldr r3, [r7, #0] - 8003afe: 3308 adds r3, #8 - 8003b00: 681a ldr r2, [r3, #0] - 8003b02: 197b adds r3, r7, r5 - 8003b04: 789b ldrb r3, [r3, #2] - 8003b06: 0019 movs r1, r3 - 8003b08: 683b ldr r3, [r7, #0] - 8003b0a: 3308 adds r3, #8 - 8003b0c: 001c movs r4, r3 - 8003b0e: 0010 movs r0, r2 - 8003b10: f7fc fafa bl 8000108 <__udivsi3> - 8003b14: 0003 movs r3, r0 - 8003b16: 6023 str r3, [r4, #0] + 8003b10: 683b ldr r3, [r7, #0] + 8003b12: 3308 adds r3, #8 + 8003b14: 681a ldr r2, [r3, #0] + 8003b16: 197b adds r3, r7, r5 + 8003b18: 789b ldrb r3, [r3, #2] + 8003b1a: 0019 movs r1, r3 + 8003b1c: 683b ldr r3, [r7, #0] + 8003b1e: 3308 adds r3, #8 + 8003b20: 001c movs r4, r3 + 8003b22: 0010 movs r0, r2 + 8003b24: f7fc faf0 bl 8000108 <__udivsi3> + 8003b28: 0003 movs r3, r0 + 8003b2a: 6023 str r3, [r4, #0] tireTempArray[1] = tireTempArray[1] / zoneWidth[1]; - 8003b18: 683b ldr r3, [r7, #0] - 8003b1a: 3304 adds r3, #4 - 8003b1c: 681a ldr r2, [r3, #0] - 8003b1e: 197b adds r3, r7, r5 - 8003b20: 785b ldrb r3, [r3, #1] - 8003b22: 0019 movs r1, r3 - 8003b24: 683b ldr r3, [r7, #0] - 8003b26: 1d1c adds r4, r3, #4 - 8003b28: 0010 movs r0, r2 - 8003b2a: f7fc faed bl 8000108 <__udivsi3> - 8003b2e: 0003 movs r3, r0 - 8003b30: 6023 str r3, [r4, #0] - tireTempArray[0] = tireTempArray[0] / zoneWidth[0]; - 8003b32: 683b ldr r3, [r7, #0] - 8003b34: 681a ldr r2, [r3, #0] - 8003b36: 197b adds r3, r7, r5 - 8003b38: 781b ldrb r3, [r3, #0] - 8003b3a: 0019 movs r1, r3 + 8003b2c: 683b ldr r3, [r7, #0] + 8003b2e: 3304 adds r3, #4 + 8003b30: 681a ldr r2, [r3, #0] + 8003b32: 197b adds r3, r7, r5 + 8003b34: 785b ldrb r3, [r3, #1] + 8003b36: 0019 movs r1, r3 + 8003b38: 683b ldr r3, [r7, #0] + 8003b3a: 1d1c adds r4, r3, #4 8003b3c: 0010 movs r0, r2 8003b3e: f7fc fae3 bl 8000108 <__udivsi3> 8003b42: 0003 movs r3, r0 - 8003b44: 001a movs r2, r3 + 8003b44: 6023 str r3, [r4, #0] + tireTempArray[0] = tireTempArray[0] / zoneWidth[0]; 8003b46: 683b ldr r3, [r7, #0] - 8003b48: 601a str r2, [r3, #0] + 8003b48: 681a ldr r2, [r3, #0] + 8003b4a: 197b adds r3, r7, r5 + 8003b4c: 781b ldrb r3, [r3, #0] + 8003b4e: 0019 movs r1, r3 + 8003b50: 0010 movs r0, r2 + 8003b52: f7fc fad9 bl 8000108 <__udivsi3> + 8003b56: 0003 movs r3, r0 + 8003b58: 001a movs r2, r3 + 8003b5a: 683b ldr r3, [r7, #0] + 8003b5c: 601a str r2, [r3, #0] } - 8003b4a: 46c0 nop @ (mov r8, r8) - 8003b4c: 46bd mov sp, r7 - 8003b4e: b004 add sp, #16 - 8003b50: bdb0 pop {r4, r5, r7, pc} - 8003b52: 46c0 nop @ (mov r8, r8) - 8003b54: 20000872 .word 0x20000872 - 8003b58: 20000874 .word 0x20000874 + 8003b5e: 46c0 nop @ (mov r8, r8) + 8003b60: 46bd mov sp, r7 + 8003b62: b004 add sp, #16 + 8003b64: bdb0 pop {r4, r5, r7, pc} + 8003b66: 46c0 nop @ (mov r8, r8) + 8003b68: 20000872 .word 0x20000872 + 8003b6c: 20000874 .word 0x20000874 -08003b5c : +08003b70 : void TTS_LoadTireData(void) { - 8003b5c: b580 push {r7, lr} - 8003b5e: af00 add r7, sp, #0 + 8003b70: b580 push {r7, lr} + 8003b72: af00 add r7, sp, #0 tts_tiredb[UNKNOWN].id = UNKNOWN; - 8003b60: 4b51 ldr r3, [pc, #324] @ (8003ca8 ) - 8003b62: 2200 movs r2, #0 - 8003b64: 701a strb r2, [r3, #0] + 8003b74: 4b51 ldr r3, [pc, #324] @ (8003cbc ) + 8003b76: 2200 movs r2, #0 + 8003b78: 701a strb r2, [r3, #0] tts_tiredb[UNKNOWN].epsilon = 84; - 8003b66: 4b50 ldr r3, [pc, #320] @ (8003ca8 ) - 8003b68: 2254 movs r2, #84 @ 0x54 - 8003b6a: 705a strb r2, [r3, #1] + 8003b7a: 4b50 ldr r3, [pc, #320] @ (8003cbc ) + 8003b7c: 2254 movs r2, #84 @ 0x54 + 8003b7e: 705a strb r2, [r3, #1] tts_tiredb[UNKNOWN].outerLeftStart = 31; - 8003b6c: 4b4e ldr r3, [pc, #312] @ (8003ca8 ) - 8003b6e: 221f movs r2, #31 - 8003b70: 709a strb r2, [r3, #2] + 8003b80: 4b4e ldr r3, [pc, #312] @ (8003cbc ) + 8003b82: 221f movs r2, #31 + 8003b84: 709a strb r2, [r3, #2] tts_tiredb[UNKNOWN].outerLeftStop = 26; - 8003b72: 4b4d ldr r3, [pc, #308] @ (8003ca8 ) - 8003b74: 221a movs r2, #26 - 8003b76: 70da strb r2, [r3, #3] + 8003b86: 4b4d ldr r3, [pc, #308] @ (8003cbc ) + 8003b88: 221a movs r2, #26 + 8003b8a: 70da strb r2, [r3, #3] tts_tiredb[UNKNOWN].centerLeftStart = 25; - 8003b78: 4b4b ldr r3, [pc, #300] @ (8003ca8 ) - 8003b7a: 2219 movs r2, #25 - 8003b7c: 711a strb r2, [r3, #4] + 8003b8c: 4b4b ldr r3, [pc, #300] @ (8003cbc ) + 8003b8e: 2219 movs r2, #25 + 8003b90: 711a strb r2, [r3, #4] tts_tiredb[UNKNOWN].centerLeftStop = 20; - 8003b7e: 4b4a ldr r3, [pc, #296] @ (8003ca8 ) - 8003b80: 2214 movs r2, #20 - 8003b82: 715a strb r2, [r3, #5] + 8003b92: 4b4a ldr r3, [pc, #296] @ (8003cbc ) + 8003b94: 2214 movs r2, #20 + 8003b96: 715a strb r2, [r3, #5] tts_tiredb[UNKNOWN].centerStart = 19; - 8003b84: 4b48 ldr r3, [pc, #288] @ (8003ca8 ) - 8003b86: 2213 movs r2, #19 - 8003b88: 719a strb r2, [r3, #6] + 8003b98: 4b48 ldr r3, [pc, #288] @ (8003cbc ) + 8003b9a: 2213 movs r2, #19 + 8003b9c: 719a strb r2, [r3, #6] tts_tiredb[UNKNOWN].centerStop = 12; - 8003b8a: 4b47 ldr r3, [pc, #284] @ (8003ca8 ) - 8003b8c: 220c movs r2, #12 - 8003b8e: 71da strb r2, [r3, #7] + 8003b9e: 4b47 ldr r3, [pc, #284] @ (8003cbc ) + 8003ba0: 220c movs r2, #12 + 8003ba2: 71da strb r2, [r3, #7] tts_tiredb[UNKNOWN].centerRightStart = 11; - 8003b90: 4b45 ldr r3, [pc, #276] @ (8003ca8 ) - 8003b92: 220b movs r2, #11 - 8003b94: 721a strb r2, [r3, #8] + 8003ba4: 4b45 ldr r3, [pc, #276] @ (8003cbc ) + 8003ba6: 220b movs r2, #11 + 8003ba8: 721a strb r2, [r3, #8] tts_tiredb[UNKNOWN].centerRightStop = 6; - 8003b96: 4b44 ldr r3, [pc, #272] @ (8003ca8 ) - 8003b98: 2206 movs r2, #6 - 8003b9a: 725a strb r2, [r3, #9] + 8003baa: 4b44 ldr r3, [pc, #272] @ (8003cbc ) + 8003bac: 2206 movs r2, #6 + 8003bae: 725a strb r2, [r3, #9] tts_tiredb[UNKNOWN].outerRightStart = 5; - 8003b9c: 4b42 ldr r3, [pc, #264] @ (8003ca8 ) - 8003b9e: 2205 movs r2, #5 - 8003ba0: 729a strb r2, [r3, #10] + 8003bb0: 4b42 ldr r3, [pc, #264] @ (8003cbc ) + 8003bb2: 2205 movs r2, #5 + 8003bb4: 729a strb r2, [r3, #10] tts_tiredb[UNKNOWN].outerRightStop = 0; - 8003ba2: 4b41 ldr r3, [pc, #260] @ (8003ca8 ) - 8003ba4: 2200 movs r2, #0 - 8003ba6: 72da strb r2, [r3, #11] + 8003bb6: 4b41 ldr r3, [pc, #260] @ (8003cbc ) + 8003bb8: 2200 movs r2, #0 + 8003bba: 72da strb r2, [r3, #11] tts_tiredb[OZ7_SLICKS].id = OZ7_SLICKS; - 8003ba8: 4b3f ldr r3, [pc, #252] @ (8003ca8 ) - 8003baa: 2201 movs r2, #1 - 8003bac: 731a strb r2, [r3, #12] + 8003bbc: 4b3f ldr r3, [pc, #252] @ (8003cbc ) + 8003bbe: 2201 movs r2, #1 + 8003bc0: 731a strb r2, [r3, #12] tts_tiredb[OZ7_SLICKS].epsilon = 84; - 8003bae: 4b3e ldr r3, [pc, #248] @ (8003ca8 ) - 8003bb0: 2254 movs r2, #84 @ 0x54 - 8003bb2: 735a strb r2, [r3, #13] + 8003bc2: 4b3e ldr r3, [pc, #248] @ (8003cbc ) + 8003bc4: 2254 movs r2, #84 @ 0x54 + 8003bc6: 735a strb r2, [r3, #13] tts_tiredb[OZ7_SLICKS].outerLeftStart = 27; - 8003bb4: 4b3c ldr r3, [pc, #240] @ (8003ca8 ) - 8003bb6: 221b movs r2, #27 - 8003bb8: 739a strb r2, [r3, #14] + 8003bc8: 4b3c ldr r3, [pc, #240] @ (8003cbc ) + 8003bca: 221b movs r2, #27 + 8003bcc: 739a strb r2, [r3, #14] tts_tiredb[OZ7_SLICKS].outerLeftStop = 25; - 8003bba: 4b3b ldr r3, [pc, #236] @ (8003ca8 ) - 8003bbc: 2219 movs r2, #25 - 8003bbe: 73da strb r2, [r3, #15] + 8003bce: 4b3b ldr r3, [pc, #236] @ (8003cbc ) + 8003bd0: 2219 movs r2, #25 + 8003bd2: 73da strb r2, [r3, #15] tts_tiredb[OZ7_SLICKS].centerLeftStart = 24; - 8003bc0: 4b39 ldr r3, [pc, #228] @ (8003ca8 ) - 8003bc2: 2218 movs r2, #24 - 8003bc4: 741a strb r2, [r3, #16] + 8003bd4: 4b39 ldr r3, [pc, #228] @ (8003cbc ) + 8003bd6: 2218 movs r2, #24 + 8003bd8: 741a strb r2, [r3, #16] tts_tiredb[OZ7_SLICKS].centerLeftStop = 19; - 8003bc6: 4b38 ldr r3, [pc, #224] @ (8003ca8 ) - 8003bc8: 2213 movs r2, #19 - 8003bca: 745a strb r2, [r3, #17] + 8003bda: 4b38 ldr r3, [pc, #224] @ (8003cbc ) + 8003bdc: 2213 movs r2, #19 + 8003bde: 745a strb r2, [r3, #17] tts_tiredb[OZ7_SLICKS].centerStart = 18; - 8003bcc: 4b36 ldr r3, [pc, #216] @ (8003ca8 ) - 8003bce: 2212 movs r2, #18 - 8003bd0: 749a strb r2, [r3, #18] + 8003be0: 4b36 ldr r3, [pc, #216] @ (8003cbc ) + 8003be2: 2212 movs r2, #18 + 8003be4: 749a strb r2, [r3, #18] tts_tiredb[OZ7_SLICKS].centerStop = 13; - 8003bd2: 4b35 ldr r3, [pc, #212] @ (8003ca8 ) - 8003bd4: 220d movs r2, #13 - 8003bd6: 74da strb r2, [r3, #19] + 8003be6: 4b35 ldr r3, [pc, #212] @ (8003cbc ) + 8003be8: 220d movs r2, #13 + 8003bea: 74da strb r2, [r3, #19] tts_tiredb[OZ7_SLICKS].centerRightStart = 12; - 8003bd8: 4b33 ldr r3, [pc, #204] @ (8003ca8 ) - 8003bda: 220c movs r2, #12 - 8003bdc: 751a strb r2, [r3, #20] + 8003bec: 4b33 ldr r3, [pc, #204] @ (8003cbc ) + 8003bee: 220c movs r2, #12 + 8003bf0: 751a strb r2, [r3, #20] tts_tiredb[OZ7_SLICKS].centerRightStop = 7; - 8003bde: 4b32 ldr r3, [pc, #200] @ (8003ca8 ) - 8003be0: 2207 movs r2, #7 - 8003be2: 755a strb r2, [r3, #21] + 8003bf2: 4b32 ldr r3, [pc, #200] @ (8003cbc ) + 8003bf4: 2207 movs r2, #7 + 8003bf6: 755a strb r2, [r3, #21] tts_tiredb[OZ7_SLICKS].outerRightStart = 6; - 8003be4: 4b30 ldr r3, [pc, #192] @ (8003ca8 ) - 8003be6: 2206 movs r2, #6 - 8003be8: 759a strb r2, [r3, #22] + 8003bf8: 4b30 ldr r3, [pc, #192] @ (8003cbc ) + 8003bfa: 2206 movs r2, #6 + 8003bfc: 759a strb r2, [r3, #22] tts_tiredb[OZ7_SLICKS].outerRightStop = 4; - 8003bea: 4b2f ldr r3, [pc, #188] @ (8003ca8 ) - 8003bec: 2204 movs r2, #4 - 8003bee: 75da strb r2, [r3, #23] + 8003bfe: 4b2f ldr r3, [pc, #188] @ (8003cbc ) + 8003c00: 2204 movs r2, #4 + 8003c02: 75da strb r2, [r3, #23] tts_tiredb[OZ7_RAIN].id = OZ7_RAIN; - 8003bf0: 4b2d ldr r3, [pc, #180] @ (8003ca8 ) - 8003bf2: 2202 movs r2, #2 - 8003bf4: 761a strb r2, [r3, #24] + 8003c04: 4b2d ldr r3, [pc, #180] @ (8003cbc ) + 8003c06: 2202 movs r2, #2 + 8003c08: 761a strb r2, [r3, #24] tts_tiredb[OZ7_RAIN].epsilon = 84; - 8003bf6: 4b2c ldr r3, [pc, #176] @ (8003ca8 ) - 8003bf8: 2254 movs r2, #84 @ 0x54 - 8003bfa: 765a strb r2, [r3, #25] + 8003c0a: 4b2c ldr r3, [pc, #176] @ (8003cbc ) + 8003c0c: 2254 movs r2, #84 @ 0x54 + 8003c0e: 765a strb r2, [r3, #25] tts_tiredb[OZ7_RAIN].outerLeftStart = 31; - 8003bfc: 4b2a ldr r3, [pc, #168] @ (8003ca8 ) - 8003bfe: 221f movs r2, #31 - 8003c00: 769a strb r2, [r3, #26] + 8003c10: 4b2a ldr r3, [pc, #168] @ (8003cbc ) + 8003c12: 221f movs r2, #31 + 8003c14: 769a strb r2, [r3, #26] tts_tiredb[OZ7_RAIN].outerLeftStop = 26; - 8003c02: 4b29 ldr r3, [pc, #164] @ (8003ca8 ) - 8003c04: 221a movs r2, #26 - 8003c06: 76da strb r2, [r3, #27] + 8003c16: 4b29 ldr r3, [pc, #164] @ (8003cbc ) + 8003c18: 221a movs r2, #26 + 8003c1a: 76da strb r2, [r3, #27] tts_tiredb[OZ7_RAIN].centerLeftStart = 25; - 8003c08: 4b27 ldr r3, [pc, #156] @ (8003ca8 ) - 8003c0a: 2219 movs r2, #25 - 8003c0c: 771a strb r2, [r3, #28] + 8003c1c: 4b27 ldr r3, [pc, #156] @ (8003cbc ) + 8003c1e: 2219 movs r2, #25 + 8003c20: 771a strb r2, [r3, #28] tts_tiredb[OZ7_RAIN].centerLeftStop = 20; - 8003c0e: 4b26 ldr r3, [pc, #152] @ (8003ca8 ) - 8003c10: 2214 movs r2, #20 - 8003c12: 775a strb r2, [r3, #29] + 8003c22: 4b26 ldr r3, [pc, #152] @ (8003cbc ) + 8003c24: 2214 movs r2, #20 + 8003c26: 775a strb r2, [r3, #29] tts_tiredb[OZ7_RAIN].centerStart = 19; - 8003c14: 4b24 ldr r3, [pc, #144] @ (8003ca8 ) - 8003c16: 2213 movs r2, #19 - 8003c18: 779a strb r2, [r3, #30] + 8003c28: 4b24 ldr r3, [pc, #144] @ (8003cbc ) + 8003c2a: 2213 movs r2, #19 + 8003c2c: 779a strb r2, [r3, #30] tts_tiredb[OZ7_RAIN].centerStop = 12; - 8003c1a: 4b23 ldr r3, [pc, #140] @ (8003ca8 ) - 8003c1c: 220c movs r2, #12 - 8003c1e: 77da strb r2, [r3, #31] + 8003c2e: 4b23 ldr r3, [pc, #140] @ (8003cbc ) + 8003c30: 220c movs r2, #12 + 8003c32: 77da strb r2, [r3, #31] tts_tiredb[OZ7_RAIN].centerRightStart = 11; - 8003c20: 4b21 ldr r3, [pc, #132] @ (8003ca8 ) - 8003c22: 2220 movs r2, #32 - 8003c24: 210b movs r1, #11 - 8003c26: 5499 strb r1, [r3, r2] + 8003c34: 4b21 ldr r3, [pc, #132] @ (8003cbc ) + 8003c36: 2220 movs r2, #32 + 8003c38: 210b movs r1, #11 + 8003c3a: 5499 strb r1, [r3, r2] tts_tiredb[OZ7_RAIN].centerRightStop = 6; - 8003c28: 4b1f ldr r3, [pc, #124] @ (8003ca8 ) - 8003c2a: 2221 movs r2, #33 @ 0x21 - 8003c2c: 2106 movs r1, #6 - 8003c2e: 5499 strb r1, [r3, r2] + 8003c3c: 4b1f ldr r3, [pc, #124] @ (8003cbc ) + 8003c3e: 2221 movs r2, #33 @ 0x21 + 8003c40: 2106 movs r1, #6 + 8003c42: 5499 strb r1, [r3, r2] tts_tiredb[OZ7_RAIN].outerRightStart = 5; - 8003c30: 4b1d ldr r3, [pc, #116] @ (8003ca8 ) - 8003c32: 2222 movs r2, #34 @ 0x22 - 8003c34: 2105 movs r1, #5 - 8003c36: 5499 strb r1, [r3, r2] + 8003c44: 4b1d ldr r3, [pc, #116] @ (8003cbc ) + 8003c46: 2222 movs r2, #34 @ 0x22 + 8003c48: 2105 movs r1, #5 + 8003c4a: 5499 strb r1, [r3, r2] tts_tiredb[OZ7_RAIN].outerRightStop = 0; - 8003c38: 4b1b ldr r3, [pc, #108] @ (8003ca8 ) - 8003c3a: 2223 movs r2, #35 @ 0x23 - 8003c3c: 2100 movs r1, #0 - 8003c3e: 5499 strb r1, [r3, r2] + 8003c4c: 4b1b ldr r3, [pc, #108] @ (8003cbc ) + 8003c4e: 2223 movs r2, #35 @ 0x23 + 8003c50: 2100 movs r1, #0 + 8003c52: 5499 strb r1, [r3, r2] tts_tiredb[JP8_SLICKS].id = JP8_SLICKS; - 8003c40: 4b19 ldr r3, [pc, #100] @ (8003ca8 ) - 8003c42: 2224 movs r2, #36 @ 0x24 - 8003c44: 2103 movs r1, #3 - 8003c46: 5499 strb r1, [r3, r2] + 8003c54: 4b19 ldr r3, [pc, #100] @ (8003cbc ) + 8003c56: 2224 movs r2, #36 @ 0x24 + 8003c58: 2103 movs r1, #3 + 8003c5a: 5499 strb r1, [r3, r2] tts_tiredb[JP8_SLICKS].epsilon = 84; - 8003c48: 4b17 ldr r3, [pc, #92] @ (8003ca8 ) - 8003c4a: 2225 movs r2, #37 @ 0x25 - 8003c4c: 2154 movs r1, #84 @ 0x54 - 8003c4e: 5499 strb r1, [r3, r2] + 8003c5c: 4b17 ldr r3, [pc, #92] @ (8003cbc ) + 8003c5e: 2225 movs r2, #37 @ 0x25 + 8003c60: 2154 movs r1, #84 @ 0x54 + 8003c62: 5499 strb r1, [r3, r2] tts_tiredb[JP8_SLICKS].outerLeftStart = 28; - 8003c50: 4b15 ldr r3, [pc, #84] @ (8003ca8 ) - 8003c52: 2226 movs r2, #38 @ 0x26 - 8003c54: 211c movs r1, #28 - 8003c56: 5499 strb r1, [r3, r2] + 8003c64: 4b15 ldr r3, [pc, #84] @ (8003cbc ) + 8003c66: 2226 movs r2, #38 @ 0x26 + 8003c68: 211c movs r1, #28 + 8003c6a: 5499 strb r1, [r3, r2] tts_tiredb[JP8_SLICKS].outerLeftStop = 24; - 8003c58: 4b13 ldr r3, [pc, #76] @ (8003ca8 ) - 8003c5a: 2227 movs r2, #39 @ 0x27 - 8003c5c: 2118 movs r1, #24 - 8003c5e: 5499 strb r1, [r3, r2] + 8003c6c: 4b13 ldr r3, [pc, #76] @ (8003cbc ) + 8003c6e: 2227 movs r2, #39 @ 0x27 + 8003c70: 2118 movs r1, #24 + 8003c72: 5499 strb r1, [r3, r2] tts_tiredb[JP8_SLICKS].centerLeftStart = 23; - 8003c60: 4b11 ldr r3, [pc, #68] @ (8003ca8 ) - 8003c62: 2228 movs r2, #40 @ 0x28 - 8003c64: 2117 movs r1, #23 - 8003c66: 5499 strb r1, [r3, r2] + 8003c74: 4b11 ldr r3, [pc, #68] @ (8003cbc ) + 8003c76: 2228 movs r2, #40 @ 0x28 + 8003c78: 2117 movs r1, #23 + 8003c7a: 5499 strb r1, [r3, r2] tts_tiredb[JP8_SLICKS].centerLeftStop = 19; - 8003c68: 4b0f ldr r3, [pc, #60] @ (8003ca8 ) - 8003c6a: 2229 movs r2, #41 @ 0x29 - 8003c6c: 2113 movs r1, #19 - 8003c6e: 5499 strb r1, [r3, r2] + 8003c7c: 4b0f ldr r3, [pc, #60] @ (8003cbc ) + 8003c7e: 2229 movs r2, #41 @ 0x29 + 8003c80: 2113 movs r1, #19 + 8003c82: 5499 strb r1, [r3, r2] tts_tiredb[JP8_SLICKS].centerStart = 18; - 8003c70: 4b0d ldr r3, [pc, #52] @ (8003ca8 ) - 8003c72: 222a movs r2, #42 @ 0x2a - 8003c74: 2112 movs r1, #18 - 8003c76: 5499 strb r1, [r3, r2] + 8003c84: 4b0d ldr r3, [pc, #52] @ (8003cbc ) + 8003c86: 222a movs r2, #42 @ 0x2a + 8003c88: 2112 movs r1, #18 + 8003c8a: 5499 strb r1, [r3, r2] tts_tiredb[JP8_SLICKS].centerStop = 13; - 8003c78: 4b0b ldr r3, [pc, #44] @ (8003ca8 ) - 8003c7a: 222b movs r2, #43 @ 0x2b - 8003c7c: 210d movs r1, #13 - 8003c7e: 5499 strb r1, [r3, r2] + 8003c8c: 4b0b ldr r3, [pc, #44] @ (8003cbc ) + 8003c8e: 222b movs r2, #43 @ 0x2b + 8003c90: 210d movs r1, #13 + 8003c92: 5499 strb r1, [r3, r2] tts_tiredb[JP8_SLICKS].centerRightStart = 12; - 8003c80: 4b09 ldr r3, [pc, #36] @ (8003ca8 ) - 8003c82: 222c movs r2, #44 @ 0x2c - 8003c84: 210c movs r1, #12 - 8003c86: 5499 strb r1, [r3, r2] + 8003c94: 4b09 ldr r3, [pc, #36] @ (8003cbc ) + 8003c96: 222c movs r2, #44 @ 0x2c + 8003c98: 210c movs r1, #12 + 8003c9a: 5499 strb r1, [r3, r2] tts_tiredb[JP8_SLICKS].centerRightStop = 8; - 8003c88: 4b07 ldr r3, [pc, #28] @ (8003ca8 ) - 8003c8a: 222d movs r2, #45 @ 0x2d - 8003c8c: 2108 movs r1, #8 - 8003c8e: 5499 strb r1, [r3, r2] + 8003c9c: 4b07 ldr r3, [pc, #28] @ (8003cbc ) + 8003c9e: 222d movs r2, #45 @ 0x2d + 8003ca0: 2108 movs r1, #8 + 8003ca2: 5499 strb r1, [r3, r2] tts_tiredb[JP8_SLICKS].outerRightStart = 7; - 8003c90: 4b05 ldr r3, [pc, #20] @ (8003ca8 ) - 8003c92: 222e movs r2, #46 @ 0x2e - 8003c94: 2107 movs r1, #7 - 8003c96: 5499 strb r1, [r3, r2] + 8003ca4: 4b05 ldr r3, [pc, #20] @ (8003cbc ) + 8003ca6: 222e movs r2, #46 @ 0x2e + 8003ca8: 2107 movs r1, #7 + 8003caa: 5499 strb r1, [r3, r2] tts_tiredb[JP8_SLICKS].outerRightStop = 3; - 8003c98: 4b03 ldr r3, [pc, #12] @ (8003ca8 ) - 8003c9a: 222f movs r2, #47 @ 0x2f - 8003c9c: 2103 movs r1, #3 - 8003c9e: 5499 strb r1, [r3, r2] + 8003cac: 4b03 ldr r3, [pc, #12] @ (8003cbc ) + 8003cae: 222f movs r2, #47 @ 0x2f + 8003cb0: 2103 movs r1, #3 + 8003cb2: 5499 strb r1, [r3, r2] } - 8003ca0: 46c0 nop @ (mov r8, r8) - 8003ca2: 46bd mov sp, r7 - 8003ca4: bd80 pop {r7, pc} - 8003ca6: 46c0 nop @ (mov r8, r8) - 8003ca8: 20000874 .word 0x20000874 + 8003cb4: 46c0 nop @ (mov r8, r8) + 8003cb6: 46bd mov sp, r7 + 8003cb8: bd80 pop {r7, pc} + 8003cba: 46c0 nop @ (mov r8, r8) + 8003cbc: 20000874 .word 0x20000874 -08003cac : +08003cc0 : .section .text.Reset_Handler .weak Reset_Handler .type Reset_Handler, %function Reset_Handler: ldr r0, =_estack - 8003cac: 4813 ldr r0, [pc, #76] @ (8003cfc ) + 8003cc0: 4813 ldr r0, [pc, #76] @ (8003d10 ) mov sp, r0 /* set stack pointer */ - 8003cae: 4685 mov sp, r0 + 8003cc2: 4685 mov sp, r0 /* Call the clock system initialization function.*/ bl SystemInit - 8003cb0: f7ff fd15 bl 80036de + 8003cc4: f7ff fd15 bl 80036f2 /*Check if boot space corresponds to test memory*/ LDR R0,=0x00000004 - 8003cb4: 4812 ldr r0, [pc, #72] @ (8003d00 ) + 8003cc8: 4812 ldr r0, [pc, #72] @ (8003d14 ) LDR R1, [R0] - 8003cb6: 6801 ldr r1, [r0, #0] + 8003cca: 6801 ldr r1, [r0, #0] LSRS R1, R1, #24 - 8003cb8: 0e09 lsrs r1, r1, #24 + 8003ccc: 0e09 lsrs r1, r1, #24 LDR R2,=0x1F - 8003cba: 4a12 ldr r2, [pc, #72] @ (8003d04 ) + 8003cce: 4a12 ldr r2, [pc, #72] @ (8003d18 ) CMP R1, R2 - 8003cbc: 4291 cmp r1, r2 + 8003cd0: 4291 cmp r1, r2 BNE ApplicationStart - 8003cbe: d105 bne.n 8003ccc + 8003cd2: d105 bne.n 8003ce0 /*SYSCFG clock enable*/ LDR R0,=0x40021018 - 8003cc0: 4811 ldr r0, [pc, #68] @ (8003d08 ) + 8003cd4: 4811 ldr r0, [pc, #68] @ (8003d1c ) LDR R1,=0x00000001 - 8003cc2: 4912 ldr r1, [pc, #72] @ (8003d0c ) + 8003cd6: 4912 ldr r1, [pc, #72] @ (8003d20 ) STR R1, [R0] - 8003cc4: 6001 str r1, [r0, #0] + 8003cd8: 6001 str r1, [r0, #0] /*Set CFGR1 register with flash memory remap at address 0*/ LDR R0,=0x40010000 - 8003cc6: 4812 ldr r0, [pc, #72] @ (8003d10 ) + 8003cda: 4812 ldr r0, [pc, #72] @ (8003d24 ) LDR R1,=0x00000000 - 8003cc8: 4912 ldr r1, [pc, #72] @ (8003d14 ) + 8003cdc: 4912 ldr r1, [pc, #72] @ (8003d28 ) STR R1, [R0] - 8003cca: 6001 str r1, [r0, #0] + 8003cde: 6001 str r1, [r0, #0] -08003ccc : +08003ce0 : ApplicationStart: /* Copy the data segment initializers from flash to SRAM */ ldr r0, =_sdata - 8003ccc: 4812 ldr r0, [pc, #72] @ (8003d18 ) + 8003ce0: 4812 ldr r0, [pc, #72] @ (8003d2c ) ldr r1, =_edata - 8003cce: 4913 ldr r1, [pc, #76] @ (8003d1c ) + 8003ce2: 4913 ldr r1, [pc, #76] @ (8003d30 ) ldr r2, =_sidata - 8003cd0: 4a13 ldr r2, [pc, #76] @ (8003d20 ) + 8003ce4: 4a13 ldr r2, [pc, #76] @ (8003d34 ) movs r3, #0 - 8003cd2: 2300 movs r3, #0 + 8003ce6: 2300 movs r3, #0 b LoopCopyDataInit - 8003cd4: e002 b.n 8003cdc + 8003ce8: e002 b.n 8003cf0 -08003cd6 : +08003cea : CopyDataInit: ldr r4, [r2, r3] - 8003cd6: 58d4 ldr r4, [r2, r3] + 8003cea: 58d4 ldr r4, [r2, r3] str r4, [r0, r3] - 8003cd8: 50c4 str r4, [r0, r3] + 8003cec: 50c4 str r4, [r0, r3] adds r3, r3, #4 - 8003cda: 3304 adds r3, #4 + 8003cee: 3304 adds r3, #4 -08003cdc : +08003cf0 : LoopCopyDataInit: adds r4, r0, r3 - 8003cdc: 18c4 adds r4, r0, r3 + 8003cf0: 18c4 adds r4, r0, r3 cmp r4, r1 - 8003cde: 428c cmp r4, r1 + 8003cf2: 428c cmp r4, r1 bcc CopyDataInit - 8003ce0: d3f9 bcc.n 8003cd6 + 8003cf4: d3f9 bcc.n 8003cea /* Zero fill the bss segment. */ ldr r2, =_sbss - 8003ce2: 4a10 ldr r2, [pc, #64] @ (8003d24 ) + 8003cf6: 4a10 ldr r2, [pc, #64] @ (8003d38 ) ldr r4, =_ebss - 8003ce4: 4c10 ldr r4, [pc, #64] @ (8003d28 ) + 8003cf8: 4c10 ldr r4, [pc, #64] @ (8003d3c ) movs r3, #0 - 8003ce6: 2300 movs r3, #0 + 8003cfa: 2300 movs r3, #0 b LoopFillZerobss - 8003ce8: e001 b.n 8003cee + 8003cfc: e001 b.n 8003d02 -08003cea : +08003cfe : FillZerobss: str r3, [r2] - 8003cea: 6013 str r3, [r2, #0] + 8003cfe: 6013 str r3, [r2, #0] adds r2, r2, #4 - 8003cec: 3204 adds r2, #4 + 8003d00: 3204 adds r2, #4 -08003cee : +08003d02 : LoopFillZerobss: cmp r2, r4 - 8003cee: 42a2 cmp r2, r4 + 8003d02: 42a2 cmp r2, r4 bcc FillZerobss - 8003cf0: d3fb bcc.n 8003cea + 8003d04: d3fb bcc.n 8003cfe /* Call static constructors */ bl __libc_init_array - 8003cf2: f002 fa6d bl 80061d0 <__libc_init_array> + 8003d06: f002 fa6d bl 80061e4 <__libc_init_array> /* Call the application's entry point.*/ bl main - 8003cf6: f7ff fa45 bl 8003184
+ 8003d0a: f7ff fa45 bl 8003198
-08003cfa : +08003d0e : LoopForever: b LoopForever - 8003cfa: e7fe b.n 8003cfa + 8003d0e: e7fe b.n 8003d0e ldr r0, =_estack - 8003cfc: 20001800 .word 0x20001800 + 8003d10: 20001800 .word 0x20001800 LDR R0,=0x00000004 - 8003d00: 00000004 .word 0x00000004 + 8003d14: 00000004 .word 0x00000004 LDR R2,=0x1F - 8003d04: 0000001f .word 0x0000001f + 8003d18: 0000001f .word 0x0000001f LDR R0,=0x40021018 - 8003d08: 40021018 .word 0x40021018 + 8003d1c: 40021018 .word 0x40021018 LDR R1,=0x00000001 - 8003d0c: 00000001 .word 0x00000001 + 8003d20: 00000001 .word 0x00000001 LDR R0,=0x40010000 - 8003d10: 40010000 .word 0x40010000 + 8003d24: 40010000 .word 0x40010000 LDR R1,=0x00000000 - 8003d14: 00000000 .word 0x00000000 + 8003d28: 00000000 .word 0x00000000 ldr r0, =_sdata - 8003d18: 20000000 .word 0x20000000 + 8003d2c: 20000000 .word 0x20000000 ldr r1, =_edata - 8003d1c: 2000000c .word 0x2000000c + 8003d30: 2000000c .word 0x2000000c ldr r2, =_sidata - 8003d20: 0800794c .word 0x0800794c + 8003d34: 08007960 .word 0x08007960 ldr r2, =_sbss - 8003d24: 2000000c .word 0x2000000c + 8003d38: 2000000c .word 0x2000000c ldr r4, =_ebss - 8003d28: 200008a8 .word 0x200008a8 + 8003d3c: 200008a8 .word 0x200008a8 -08003d2c : +08003d40 : * @retval : None */ .section .text.Default_Handler,"ax",%progbits Default_Handler: Infinite_Loop: b Infinite_Loop - 8003d2c: e7fe b.n 8003d2c + 8003d40: e7fe b.n 8003d40 ... -08003d30 : +08003d44 : * In the default implementation,Systick is used as source of time base. * The tick variable is incremented each 1ms in its ISR. * @retval HAL status */ HAL_StatusTypeDef HAL_Init(void) { - 8003d30: b580 push {r7, lr} - 8003d32: af00 add r7, sp, #0 + 8003d44: b580 push {r7, lr} + 8003d46: af00 add r7, sp, #0 /* Configure Flash prefetch */ #if (PREFETCH_ENABLE != 0) __HAL_FLASH_PREFETCH_BUFFER_ENABLE(); - 8003d34: 4b07 ldr r3, [pc, #28] @ (8003d54 ) - 8003d36: 681a ldr r2, [r3, #0] - 8003d38: 4b06 ldr r3, [pc, #24] @ (8003d54 ) - 8003d3a: 2110 movs r1, #16 - 8003d3c: 430a orrs r2, r1 - 8003d3e: 601a str r2, [r3, #0] + 8003d48: 4b07 ldr r3, [pc, #28] @ (8003d68 ) + 8003d4a: 681a ldr r2, [r3, #0] + 8003d4c: 4b06 ldr r3, [pc, #24] @ (8003d68 ) + 8003d4e: 2110 movs r1, #16 + 8003d50: 430a orrs r2, r1 + 8003d52: 601a str r2, [r3, #0] #endif /* PREFETCH_ENABLE */ /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */ HAL_InitTick(TICK_INT_PRIORITY); - 8003d40: 2003 movs r0, #3 - 8003d42: f000 f809 bl 8003d58 + 8003d54: 2003 movs r0, #3 + 8003d56: f000 f809 bl 8003d6c /* Init the low level hardware */ HAL_MspInit(); - 8003d46: f7ff fbcb bl 80034e0 + 8003d5a: f7ff fbcb bl 80034f4 /* Return function status */ return HAL_OK; - 8003d4a: 2300 movs r3, #0 + 8003d5e: 2300 movs r3, #0 } - 8003d4c: 0018 movs r0, r3 - 8003d4e: 46bd mov sp, r7 - 8003d50: bd80 pop {r7, pc} - 8003d52: 46c0 nop @ (mov r8, r8) - 8003d54: 40022000 .word 0x40022000 + 8003d60: 0018 movs r0, r3 + 8003d62: 46bd mov sp, r7 + 8003d64: bd80 pop {r7, pc} + 8003d66: 46c0 nop @ (mov r8, r8) + 8003d68: 40022000 .word 0x40022000 -08003d58 : +08003d6c : * implementation in user file. * @param TickPriority Tick interrupt priority. * @retval HAL status */ __weak HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority) { - 8003d58: b590 push {r4, r7, lr} - 8003d5a: b083 sub sp, #12 - 8003d5c: af00 add r7, sp, #0 - 8003d5e: 6078 str r0, [r7, #4] + 8003d6c: b590 push {r4, r7, lr} + 8003d6e: b083 sub sp, #12 + 8003d70: af00 add r7, sp, #0 + 8003d72: 6078 str r0, [r7, #4] /*Configure the SysTick to have interrupt in 1ms time basis*/ if (HAL_SYSTICK_Config(SystemCoreClock / (1000U / uwTickFreq)) > 0U) - 8003d60: 4b14 ldr r3, [pc, #80] @ (8003db4 ) - 8003d62: 681c ldr r4, [r3, #0] - 8003d64: 4b14 ldr r3, [pc, #80] @ (8003db8 ) - 8003d66: 781b ldrb r3, [r3, #0] - 8003d68: 0019 movs r1, r3 - 8003d6a: 23fa movs r3, #250 @ 0xfa - 8003d6c: 0098 lsls r0, r3, #2 - 8003d6e: f7fc f9cb bl 8000108 <__udivsi3> - 8003d72: 0003 movs r3, r0 - 8003d74: 0019 movs r1, r3 - 8003d76: 0020 movs r0, r4 - 8003d78: f7fc f9c6 bl 8000108 <__udivsi3> - 8003d7c: 0003 movs r3, r0 - 8003d7e: 0018 movs r0, r3 - 8003d80: f000 fb1b bl 80043ba - 8003d84: 1e03 subs r3, r0, #0 - 8003d86: d001 beq.n 8003d8c + 8003d74: 4b14 ldr r3, [pc, #80] @ (8003dc8 ) + 8003d76: 681c ldr r4, [r3, #0] + 8003d78: 4b14 ldr r3, [pc, #80] @ (8003dcc ) + 8003d7a: 781b ldrb r3, [r3, #0] + 8003d7c: 0019 movs r1, r3 + 8003d7e: 23fa movs r3, #250 @ 0xfa + 8003d80: 0098 lsls r0, r3, #2 + 8003d82: f7fc f9c1 bl 8000108 <__udivsi3> + 8003d86: 0003 movs r3, r0 + 8003d88: 0019 movs r1, r3 + 8003d8a: 0020 movs r0, r4 + 8003d8c: f7fc f9bc bl 8000108 <__udivsi3> + 8003d90: 0003 movs r3, r0 + 8003d92: 0018 movs r0, r3 + 8003d94: f000 fb1b bl 80043ce + 8003d98: 1e03 subs r3, r0, #0 + 8003d9a: d001 beq.n 8003da0 { return HAL_ERROR; - 8003d88: 2301 movs r3, #1 - 8003d8a: e00f b.n 8003dac + 8003d9c: 2301 movs r3, #1 + 8003d9e: e00f b.n 8003dc0 } /* Configure the SysTick IRQ priority */ if (TickPriority < (1UL << __NVIC_PRIO_BITS)) - 8003d8c: 687b ldr r3, [r7, #4] - 8003d8e: 2b03 cmp r3, #3 - 8003d90: d80b bhi.n 8003daa + 8003da0: 687b ldr r3, [r7, #4] + 8003da2: 2b03 cmp r3, #3 + 8003da4: d80b bhi.n 8003dbe { HAL_NVIC_SetPriority(SysTick_IRQn, TickPriority, 0U); - 8003d92: 6879 ldr r1, [r7, #4] - 8003d94: 2301 movs r3, #1 - 8003d96: 425b negs r3, r3 - 8003d98: 2200 movs r2, #0 - 8003d9a: 0018 movs r0, r3 - 8003d9c: f000 faf8 bl 8004390 + 8003da6: 6879 ldr r1, [r7, #4] + 8003da8: 2301 movs r3, #1 + 8003daa: 425b negs r3, r3 + 8003dac: 2200 movs r2, #0 + 8003dae: 0018 movs r0, r3 + 8003db0: f000 faf8 bl 80043a4 uwTickPrio = TickPriority; - 8003da0: 4b06 ldr r3, [pc, #24] @ (8003dbc ) - 8003da2: 687a ldr r2, [r7, #4] - 8003da4: 601a str r2, [r3, #0] + 8003db4: 4b06 ldr r3, [pc, #24] @ (8003dd0 ) + 8003db6: 687a ldr r2, [r7, #4] + 8003db8: 601a str r2, [r3, #0] { return HAL_ERROR; } /* Return function status */ return HAL_OK; - 8003da6: 2300 movs r3, #0 - 8003da8: e000 b.n 8003dac + 8003dba: 2300 movs r3, #0 + 8003dbc: e000 b.n 8003dc0 return HAL_ERROR; - 8003daa: 2301 movs r3, #1 + 8003dbe: 2301 movs r3, #1 } - 8003dac: 0018 movs r0, r3 - 8003dae: 46bd mov sp, r7 - 8003db0: b003 add sp, #12 - 8003db2: bd90 pop {r4, r7, pc} - 8003db4: 20000000 .word 0x20000000 - 8003db8: 20000008 .word 0x20000008 - 8003dbc: 20000004 .word 0x20000004 + 8003dc0: 0018 movs r0, r3 + 8003dc2: 46bd mov sp, r7 + 8003dc4: b003 add sp, #12 + 8003dc6: bd90 pop {r4, r7, pc} + 8003dc8: 20000000 .word 0x20000000 + 8003dcc: 20000008 .word 0x20000008 + 8003dd0: 20000004 .word 0x20000004 -08003dc0 : +08003dd4 : * @note This function is declared as __weak to be overwritten in case of other * implementations in user file. * @retval None */ __weak void HAL_IncTick(void) { - 8003dc0: b580 push {r7, lr} - 8003dc2: af00 add r7, sp, #0 + 8003dd4: b580 push {r7, lr} + 8003dd6: af00 add r7, sp, #0 uwTick += uwTickFreq; - 8003dc4: 4b05 ldr r3, [pc, #20] @ (8003ddc ) - 8003dc6: 781b ldrb r3, [r3, #0] - 8003dc8: 001a movs r2, r3 - 8003dca: 4b05 ldr r3, [pc, #20] @ (8003de0 ) - 8003dcc: 681b ldr r3, [r3, #0] - 8003dce: 18d2 adds r2, r2, r3 - 8003dd0: 4b03 ldr r3, [pc, #12] @ (8003de0 ) - 8003dd2: 601a str r2, [r3, #0] + 8003dd8: 4b05 ldr r3, [pc, #20] @ (8003df0 ) + 8003dda: 781b ldrb r3, [r3, #0] + 8003ddc: 001a movs r2, r3 + 8003dde: 4b05 ldr r3, [pc, #20] @ (8003df4 ) + 8003de0: 681b ldr r3, [r3, #0] + 8003de2: 18d2 adds r2, r2, r3 + 8003de4: 4b03 ldr r3, [pc, #12] @ (8003df4 ) + 8003de6: 601a str r2, [r3, #0] } - 8003dd4: 46c0 nop @ (mov r8, r8) - 8003dd6: 46bd mov sp, r7 - 8003dd8: bd80 pop {r7, pc} - 8003dda: 46c0 nop @ (mov r8, r8) - 8003ddc: 20000008 .word 0x20000008 - 8003de0: 200008a4 .word 0x200008a4 + 8003de8: 46c0 nop @ (mov r8, r8) + 8003dea: 46bd mov sp, r7 + 8003dec: bd80 pop {r7, pc} + 8003dee: 46c0 nop @ (mov r8, r8) + 8003df0: 20000008 .word 0x20000008 + 8003df4: 200008a4 .word 0x200008a4 -08003de4 : +08003df8 : * @note This function is declared as __weak to be overwritten in case of other * implementations in user file. * @retval tick value */ __weak uint32_t HAL_GetTick(void) { - 8003de4: b580 push {r7, lr} - 8003de6: af00 add r7, sp, #0 + 8003df8: b580 push {r7, lr} + 8003dfa: af00 add r7, sp, #0 return uwTick; - 8003de8: 4b02 ldr r3, [pc, #8] @ (8003df4 ) - 8003dea: 681b ldr r3, [r3, #0] + 8003dfc: 4b02 ldr r3, [pc, #8] @ (8003e08 ) + 8003dfe: 681b ldr r3, [r3, #0] } - 8003dec: 0018 movs r0, r3 - 8003dee: 46bd mov sp, r7 - 8003df0: bd80 pop {r7, pc} - 8003df2: 46c0 nop @ (mov r8, r8) - 8003df4: 200008a4 .word 0x200008a4 + 8003e00: 0018 movs r0, r3 + 8003e02: 46bd mov sp, r7 + 8003e04: bd80 pop {r7, pc} + 8003e06: 46c0 nop @ (mov r8, r8) + 8003e08: 200008a4 .word 0x200008a4 -08003df8 : +08003e0c : * implementations in user file. * @param Delay specifies the delay time length, in milliseconds. * @retval None */ __weak void HAL_Delay(uint32_t Delay) { - 8003df8: b580 push {r7, lr} - 8003dfa: b084 sub sp, #16 - 8003dfc: af00 add r7, sp, #0 - 8003dfe: 6078 str r0, [r7, #4] + 8003e0c: b580 push {r7, lr} + 8003e0e: b084 sub sp, #16 + 8003e10: af00 add r7, sp, #0 + 8003e12: 6078 str r0, [r7, #4] uint32_t tickstart = HAL_GetTick(); - 8003e00: f7ff fff0 bl 8003de4 - 8003e04: 0003 movs r3, r0 - 8003e06: 60bb str r3, [r7, #8] + 8003e14: f7ff fff0 bl 8003df8 + 8003e18: 0003 movs r3, r0 + 8003e1a: 60bb str r3, [r7, #8] uint32_t wait = Delay; - 8003e08: 687b ldr r3, [r7, #4] - 8003e0a: 60fb str r3, [r7, #12] + 8003e1c: 687b ldr r3, [r7, #4] + 8003e1e: 60fb str r3, [r7, #12] /* Add a freq to guarantee minimum wait */ if (wait < HAL_MAX_DELAY) - 8003e0c: 68fb ldr r3, [r7, #12] - 8003e0e: 3301 adds r3, #1 - 8003e10: d005 beq.n 8003e1e + 8003e20: 68fb ldr r3, [r7, #12] + 8003e22: 3301 adds r3, #1 + 8003e24: d005 beq.n 8003e32 { wait += (uint32_t)(uwTickFreq); - 8003e12: 4b0a ldr r3, [pc, #40] @ (8003e3c ) - 8003e14: 781b ldrb r3, [r3, #0] - 8003e16: 001a movs r2, r3 - 8003e18: 68fb ldr r3, [r7, #12] - 8003e1a: 189b adds r3, r3, r2 - 8003e1c: 60fb str r3, [r7, #12] + 8003e26: 4b0a ldr r3, [pc, #40] @ (8003e50 ) + 8003e28: 781b ldrb r3, [r3, #0] + 8003e2a: 001a movs r2, r3 + 8003e2c: 68fb ldr r3, [r7, #12] + 8003e2e: 189b adds r3, r3, r2 + 8003e30: 60fb str r3, [r7, #12] } while((HAL_GetTick() - tickstart) < wait) - 8003e1e: 46c0 nop @ (mov r8, r8) - 8003e20: f7ff ffe0 bl 8003de4 - 8003e24: 0002 movs r2, r0 - 8003e26: 68bb ldr r3, [r7, #8] - 8003e28: 1ad3 subs r3, r2, r3 - 8003e2a: 68fa ldr r2, [r7, #12] - 8003e2c: 429a cmp r2, r3 - 8003e2e: d8f7 bhi.n 8003e20 + 8003e32: 46c0 nop @ (mov r8, r8) + 8003e34: f7ff ffe0 bl 8003df8 + 8003e38: 0002 movs r2, r0 + 8003e3a: 68bb ldr r3, [r7, #8] + 8003e3c: 1ad3 subs r3, r2, r3 + 8003e3e: 68fa ldr r2, [r7, #12] + 8003e40: 429a cmp r2, r3 + 8003e42: d8f7 bhi.n 8003e34 { } } - 8003e30: 46c0 nop @ (mov r8, r8) - 8003e32: 46c0 nop @ (mov r8, r8) - 8003e34: 46bd mov sp, r7 - 8003e36: b004 add sp, #16 - 8003e38: bd80 pop {r7, pc} - 8003e3a: 46c0 nop @ (mov r8, r8) - 8003e3c: 20000008 .word 0x20000008 + 8003e44: 46c0 nop @ (mov r8, r8) + 8003e46: 46c0 nop @ (mov r8, r8) + 8003e48: 46bd mov sp, r7 + 8003e4a: b004 add sp, #16 + 8003e4c: bd80 pop {r7, pc} + 8003e4e: 46c0 nop @ (mov r8, r8) + 8003e50: 20000008 .word 0x20000008 -08003e40 : +08003e54 : * @param hcan pointer to a CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval HAL status */ HAL_StatusTypeDef HAL_CAN_Init(CAN_HandleTypeDef *hcan) { - 8003e40: b580 push {r7, lr} - 8003e42: b084 sub sp, #16 - 8003e44: af00 add r7, sp, #0 - 8003e46: 6078 str r0, [r7, #4] + 8003e54: b580 push {r7, lr} + 8003e56: b084 sub sp, #16 + 8003e58: af00 add r7, sp, #0 + 8003e5a: 6078 str r0, [r7, #4] uint32_t tickstart; /* Check CAN handle */ if (hcan == NULL) - 8003e48: 687b ldr r3, [r7, #4] - 8003e4a: 2b00 cmp r3, #0 - 8003e4c: d101 bne.n 8003e52 + 8003e5c: 687b ldr r3, [r7, #4] + 8003e5e: 2b00 cmp r3, #0 + 8003e60: d101 bne.n 8003e66 { return HAL_ERROR; - 8003e4e: 2301 movs r3, #1 - 8003e50: e0f0 b.n 8004034 + 8003e62: 2301 movs r3, #1 + 8003e64: e0f0 b.n 8004048 /* Init the low level hardware: CLOCK, NVIC */ hcan->MspInitCallback(hcan); } #else if (hcan->State == HAL_CAN_STATE_RESET) - 8003e52: 687b ldr r3, [r7, #4] - 8003e54: 2220 movs r2, #32 - 8003e56: 5c9b ldrb r3, [r3, r2] - 8003e58: b2db uxtb r3, r3 - 8003e5a: 2b00 cmp r3, #0 - 8003e5c: d103 bne.n 8003e66 + 8003e66: 687b ldr r3, [r7, #4] + 8003e68: 2220 movs r2, #32 + 8003e6a: 5c9b ldrb r3, [r3, r2] + 8003e6c: b2db uxtb r3, r3 + 8003e6e: 2b00 cmp r3, #0 + 8003e70: d103 bne.n 8003e7a { /* Init the low level hardware: CLOCK, NVIC */ HAL_CAN_MspInit(hcan); - 8003e5e: 687b ldr r3, [r7, #4] - 8003e60: 0018 movs r0, r3 - 8003e62: f7ff fb61 bl 8003528 + 8003e72: 687b ldr r3, [r7, #4] + 8003e74: 0018 movs r0, r3 + 8003e76: f7ff fb61 bl 800353c } #endif /* USE_HAL_CAN_REGISTER_CALLBACKS */ /* Request initialisation */ SET_BIT(hcan->Instance->MCR, CAN_MCR_INRQ); - 8003e66: 687b ldr r3, [r7, #4] - 8003e68: 681b ldr r3, [r3, #0] - 8003e6a: 681a ldr r2, [r3, #0] - 8003e6c: 687b ldr r3, [r7, #4] - 8003e6e: 681b ldr r3, [r3, #0] - 8003e70: 2101 movs r1, #1 - 8003e72: 430a orrs r2, r1 - 8003e74: 601a str r2, [r3, #0] + 8003e7a: 687b ldr r3, [r7, #4] + 8003e7c: 681b ldr r3, [r3, #0] + 8003e7e: 681a ldr r2, [r3, #0] + 8003e80: 687b ldr r3, [r7, #4] + 8003e82: 681b ldr r3, [r3, #0] + 8003e84: 2101 movs r1, #1 + 8003e86: 430a orrs r2, r1 + 8003e88: 601a str r2, [r3, #0] /* Get tick */ tickstart = HAL_GetTick(); - 8003e76: f7ff ffb5 bl 8003de4 - 8003e7a: 0003 movs r3, r0 - 8003e7c: 60fb str r3, [r7, #12] + 8003e8a: f7ff ffb5 bl 8003df8 + 8003e8e: 0003 movs r3, r0 + 8003e90: 60fb str r3, [r7, #12] /* Wait initialisation acknowledge */ while ((hcan->Instance->MSR & CAN_MSR_INAK) == 0U) - 8003e7e: e013 b.n 8003ea8 + 8003e92: e013 b.n 8003ebc { if ((HAL_GetTick() - tickstart) > CAN_TIMEOUT_VALUE) - 8003e80: f7ff ffb0 bl 8003de4 - 8003e84: 0002 movs r2, r0 - 8003e86: 68fb ldr r3, [r7, #12] - 8003e88: 1ad3 subs r3, r2, r3 - 8003e8a: 2b0a cmp r3, #10 - 8003e8c: d90c bls.n 8003ea8 + 8003e94: f7ff ffb0 bl 8003df8 + 8003e98: 0002 movs r2, r0 + 8003e9a: 68fb ldr r3, [r7, #12] + 8003e9c: 1ad3 subs r3, r2, r3 + 8003e9e: 2b0a cmp r3, #10 + 8003ea0: d90c bls.n 8003ebc { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_TIMEOUT; - 8003e8e: 687b ldr r3, [r7, #4] - 8003e90: 6a5b ldr r3, [r3, #36] @ 0x24 - 8003e92: 2280 movs r2, #128 @ 0x80 - 8003e94: 0292 lsls r2, r2, #10 - 8003e96: 431a orrs r2, r3 - 8003e98: 687b ldr r3, [r7, #4] - 8003e9a: 625a str r2, [r3, #36] @ 0x24 + 8003ea2: 687b ldr r3, [r7, #4] + 8003ea4: 6a5b ldr r3, [r3, #36] @ 0x24 + 8003ea6: 2280 movs r2, #128 @ 0x80 + 8003ea8: 0292 lsls r2, r2, #10 + 8003eaa: 431a orrs r2, r3 + 8003eac: 687b ldr r3, [r7, #4] + 8003eae: 625a str r2, [r3, #36] @ 0x24 /* Change CAN state */ hcan->State = HAL_CAN_STATE_ERROR; - 8003e9c: 687b ldr r3, [r7, #4] - 8003e9e: 2220 movs r2, #32 - 8003ea0: 2105 movs r1, #5 - 8003ea2: 5499 strb r1, [r3, r2] + 8003eb0: 687b ldr r3, [r7, #4] + 8003eb2: 2220 movs r2, #32 + 8003eb4: 2105 movs r1, #5 + 8003eb6: 5499 strb r1, [r3, r2] return HAL_ERROR; - 8003ea4: 2301 movs r3, #1 - 8003ea6: e0c5 b.n 8004034 + 8003eb8: 2301 movs r3, #1 + 8003eba: e0c5 b.n 8004048 while ((hcan->Instance->MSR & CAN_MSR_INAK) == 0U) - 8003ea8: 687b ldr r3, [r7, #4] - 8003eaa: 681b ldr r3, [r3, #0] - 8003eac: 685b ldr r3, [r3, #4] - 8003eae: 2201 movs r2, #1 - 8003eb0: 4013 ands r3, r2 - 8003eb2: d0e5 beq.n 8003e80 + 8003ebc: 687b ldr r3, [r7, #4] + 8003ebe: 681b ldr r3, [r3, #0] + 8003ec0: 685b ldr r3, [r3, #4] + 8003ec2: 2201 movs r2, #1 + 8003ec4: 4013 ands r3, r2 + 8003ec6: d0e5 beq.n 8003e94 } } /* Exit from sleep mode */ CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_SLEEP); - 8003eb4: 687b ldr r3, [r7, #4] - 8003eb6: 681b ldr r3, [r3, #0] - 8003eb8: 681a ldr r2, [r3, #0] - 8003eba: 687b ldr r3, [r7, #4] - 8003ebc: 681b ldr r3, [r3, #0] - 8003ebe: 2102 movs r1, #2 - 8003ec0: 438a bics r2, r1 - 8003ec2: 601a str r2, [r3, #0] + 8003ec8: 687b ldr r3, [r7, #4] + 8003eca: 681b ldr r3, [r3, #0] + 8003ecc: 681a ldr r2, [r3, #0] + 8003ece: 687b ldr r3, [r7, #4] + 8003ed0: 681b ldr r3, [r3, #0] + 8003ed2: 2102 movs r1, #2 + 8003ed4: 438a bics r2, r1 + 8003ed6: 601a str r2, [r3, #0] /* Get tick */ tickstart = HAL_GetTick(); - 8003ec4: f7ff ff8e bl 8003de4 - 8003ec8: 0003 movs r3, r0 - 8003eca: 60fb str r3, [r7, #12] + 8003ed8: f7ff ff8e bl 8003df8 + 8003edc: 0003 movs r3, r0 + 8003ede: 60fb str r3, [r7, #12] /* Check Sleep mode leave acknowledge */ while ((hcan->Instance->MSR & CAN_MSR_SLAK) != 0U) - 8003ecc: e013 b.n 8003ef6 + 8003ee0: e013 b.n 8003f0a { if ((HAL_GetTick() - tickstart) > CAN_TIMEOUT_VALUE) - 8003ece: f7ff ff89 bl 8003de4 - 8003ed2: 0002 movs r2, r0 - 8003ed4: 68fb ldr r3, [r7, #12] - 8003ed6: 1ad3 subs r3, r2, r3 - 8003ed8: 2b0a cmp r3, #10 - 8003eda: d90c bls.n 8003ef6 + 8003ee2: f7ff ff89 bl 8003df8 + 8003ee6: 0002 movs r2, r0 + 8003ee8: 68fb ldr r3, [r7, #12] + 8003eea: 1ad3 subs r3, r2, r3 + 8003eec: 2b0a cmp r3, #10 + 8003eee: d90c bls.n 8003f0a { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_TIMEOUT; - 8003edc: 687b ldr r3, [r7, #4] - 8003ede: 6a5b ldr r3, [r3, #36] @ 0x24 - 8003ee0: 2280 movs r2, #128 @ 0x80 - 8003ee2: 0292 lsls r2, r2, #10 - 8003ee4: 431a orrs r2, r3 - 8003ee6: 687b ldr r3, [r7, #4] - 8003ee8: 625a str r2, [r3, #36] @ 0x24 + 8003ef0: 687b ldr r3, [r7, #4] + 8003ef2: 6a5b ldr r3, [r3, #36] @ 0x24 + 8003ef4: 2280 movs r2, #128 @ 0x80 + 8003ef6: 0292 lsls r2, r2, #10 + 8003ef8: 431a orrs r2, r3 + 8003efa: 687b ldr r3, [r7, #4] + 8003efc: 625a str r2, [r3, #36] @ 0x24 /* Change CAN state */ hcan->State = HAL_CAN_STATE_ERROR; - 8003eea: 687b ldr r3, [r7, #4] - 8003eec: 2220 movs r2, #32 - 8003eee: 2105 movs r1, #5 - 8003ef0: 5499 strb r1, [r3, r2] + 8003efe: 687b ldr r3, [r7, #4] + 8003f00: 2220 movs r2, #32 + 8003f02: 2105 movs r1, #5 + 8003f04: 5499 strb r1, [r3, r2] return HAL_ERROR; - 8003ef2: 2301 movs r3, #1 - 8003ef4: e09e b.n 8004034 + 8003f06: 2301 movs r3, #1 + 8003f08: e09e b.n 8004048 while ((hcan->Instance->MSR & CAN_MSR_SLAK) != 0U) - 8003ef6: 687b ldr r3, [r7, #4] - 8003ef8: 681b ldr r3, [r3, #0] - 8003efa: 685b ldr r3, [r3, #4] - 8003efc: 2202 movs r2, #2 - 8003efe: 4013 ands r3, r2 - 8003f00: d1e5 bne.n 8003ece + 8003f0a: 687b ldr r3, [r7, #4] + 8003f0c: 681b ldr r3, [r3, #0] + 8003f0e: 685b ldr r3, [r3, #4] + 8003f10: 2202 movs r2, #2 + 8003f12: 4013 ands r3, r2 + 8003f14: d1e5 bne.n 8003ee2 } } /* Set the time triggered communication mode */ if (hcan->Init.TimeTriggeredMode == ENABLE) - 8003f02: 687b ldr r3, [r7, #4] - 8003f04: 7e1b ldrb r3, [r3, #24] - 8003f06: 2b01 cmp r3, #1 - 8003f08: d108 bne.n 8003f1c + 8003f16: 687b ldr r3, [r7, #4] + 8003f18: 7e1b ldrb r3, [r3, #24] + 8003f1a: 2b01 cmp r3, #1 + 8003f1c: d108 bne.n 8003f30 { SET_BIT(hcan->Instance->MCR, CAN_MCR_TTCM); - 8003f0a: 687b ldr r3, [r7, #4] - 8003f0c: 681b ldr r3, [r3, #0] - 8003f0e: 681a ldr r2, [r3, #0] - 8003f10: 687b ldr r3, [r7, #4] - 8003f12: 681b ldr r3, [r3, #0] - 8003f14: 2180 movs r1, #128 @ 0x80 - 8003f16: 430a orrs r2, r1 - 8003f18: 601a str r2, [r3, #0] - 8003f1a: e007 b.n 8003f2c + 8003f1e: 687b ldr r3, [r7, #4] + 8003f20: 681b ldr r3, [r3, #0] + 8003f22: 681a ldr r2, [r3, #0] + 8003f24: 687b ldr r3, [r7, #4] + 8003f26: 681b ldr r3, [r3, #0] + 8003f28: 2180 movs r1, #128 @ 0x80 + 8003f2a: 430a orrs r2, r1 + 8003f2c: 601a str r2, [r3, #0] + 8003f2e: e007 b.n 8003f40 } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_TTCM); - 8003f1c: 687b ldr r3, [r7, #4] - 8003f1e: 681b ldr r3, [r3, #0] - 8003f20: 681a ldr r2, [r3, #0] - 8003f22: 687b ldr r3, [r7, #4] - 8003f24: 681b ldr r3, [r3, #0] - 8003f26: 2180 movs r1, #128 @ 0x80 - 8003f28: 438a bics r2, r1 - 8003f2a: 601a str r2, [r3, #0] + 8003f30: 687b ldr r3, [r7, #4] + 8003f32: 681b ldr r3, [r3, #0] + 8003f34: 681a ldr r2, [r3, #0] + 8003f36: 687b ldr r3, [r7, #4] + 8003f38: 681b ldr r3, [r3, #0] + 8003f3a: 2180 movs r1, #128 @ 0x80 + 8003f3c: 438a bics r2, r1 + 8003f3e: 601a str r2, [r3, #0] } /* Set the automatic bus-off management */ if (hcan->Init.AutoBusOff == ENABLE) - 8003f2c: 687b ldr r3, [r7, #4] - 8003f2e: 7e5b ldrb r3, [r3, #25] - 8003f30: 2b01 cmp r3, #1 - 8003f32: d108 bne.n 8003f46 + 8003f40: 687b ldr r3, [r7, #4] + 8003f42: 7e5b ldrb r3, [r3, #25] + 8003f44: 2b01 cmp r3, #1 + 8003f46: d108 bne.n 8003f5a { SET_BIT(hcan->Instance->MCR, CAN_MCR_ABOM); - 8003f34: 687b ldr r3, [r7, #4] - 8003f36: 681b ldr r3, [r3, #0] - 8003f38: 681a ldr r2, [r3, #0] - 8003f3a: 687b ldr r3, [r7, #4] - 8003f3c: 681b ldr r3, [r3, #0] - 8003f3e: 2140 movs r1, #64 @ 0x40 - 8003f40: 430a orrs r2, r1 - 8003f42: 601a str r2, [r3, #0] - 8003f44: e007 b.n 8003f56 + 8003f48: 687b ldr r3, [r7, #4] + 8003f4a: 681b ldr r3, [r3, #0] + 8003f4c: 681a ldr r2, [r3, #0] + 8003f4e: 687b ldr r3, [r7, #4] + 8003f50: 681b ldr r3, [r3, #0] + 8003f52: 2140 movs r1, #64 @ 0x40 + 8003f54: 430a orrs r2, r1 + 8003f56: 601a str r2, [r3, #0] + 8003f58: e007 b.n 8003f6a } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_ABOM); - 8003f46: 687b ldr r3, [r7, #4] - 8003f48: 681b ldr r3, [r3, #0] - 8003f4a: 681a ldr r2, [r3, #0] - 8003f4c: 687b ldr r3, [r7, #4] - 8003f4e: 681b ldr r3, [r3, #0] - 8003f50: 2140 movs r1, #64 @ 0x40 - 8003f52: 438a bics r2, r1 - 8003f54: 601a str r2, [r3, #0] + 8003f5a: 687b ldr r3, [r7, #4] + 8003f5c: 681b ldr r3, [r3, #0] + 8003f5e: 681a ldr r2, [r3, #0] + 8003f60: 687b ldr r3, [r7, #4] + 8003f62: 681b ldr r3, [r3, #0] + 8003f64: 2140 movs r1, #64 @ 0x40 + 8003f66: 438a bics r2, r1 + 8003f68: 601a str r2, [r3, #0] } /* Set the automatic wake-up mode */ if (hcan->Init.AutoWakeUp == ENABLE) - 8003f56: 687b ldr r3, [r7, #4] - 8003f58: 7e9b ldrb r3, [r3, #26] - 8003f5a: 2b01 cmp r3, #1 - 8003f5c: d108 bne.n 8003f70 + 8003f6a: 687b ldr r3, [r7, #4] + 8003f6c: 7e9b ldrb r3, [r3, #26] + 8003f6e: 2b01 cmp r3, #1 + 8003f70: d108 bne.n 8003f84 { SET_BIT(hcan->Instance->MCR, CAN_MCR_AWUM); - 8003f5e: 687b ldr r3, [r7, #4] - 8003f60: 681b ldr r3, [r3, #0] - 8003f62: 681a ldr r2, [r3, #0] - 8003f64: 687b ldr r3, [r7, #4] - 8003f66: 681b ldr r3, [r3, #0] - 8003f68: 2120 movs r1, #32 - 8003f6a: 430a orrs r2, r1 - 8003f6c: 601a str r2, [r3, #0] - 8003f6e: e007 b.n 8003f80 + 8003f72: 687b ldr r3, [r7, #4] + 8003f74: 681b ldr r3, [r3, #0] + 8003f76: 681a ldr r2, [r3, #0] + 8003f78: 687b ldr r3, [r7, #4] + 8003f7a: 681b ldr r3, [r3, #0] + 8003f7c: 2120 movs r1, #32 + 8003f7e: 430a orrs r2, r1 + 8003f80: 601a str r2, [r3, #0] + 8003f82: e007 b.n 8003f94 } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_AWUM); - 8003f70: 687b ldr r3, [r7, #4] - 8003f72: 681b ldr r3, [r3, #0] - 8003f74: 681a ldr r2, [r3, #0] - 8003f76: 687b ldr r3, [r7, #4] - 8003f78: 681b ldr r3, [r3, #0] - 8003f7a: 2120 movs r1, #32 - 8003f7c: 438a bics r2, r1 - 8003f7e: 601a str r2, [r3, #0] + 8003f84: 687b ldr r3, [r7, #4] + 8003f86: 681b ldr r3, [r3, #0] + 8003f88: 681a ldr r2, [r3, #0] + 8003f8a: 687b ldr r3, [r7, #4] + 8003f8c: 681b ldr r3, [r3, #0] + 8003f8e: 2120 movs r1, #32 + 8003f90: 438a bics r2, r1 + 8003f92: 601a str r2, [r3, #0] } /* Set the automatic retransmission */ if (hcan->Init.AutoRetransmission == ENABLE) - 8003f80: 687b ldr r3, [r7, #4] - 8003f82: 7edb ldrb r3, [r3, #27] - 8003f84: 2b01 cmp r3, #1 - 8003f86: d108 bne.n 8003f9a + 8003f94: 687b ldr r3, [r7, #4] + 8003f96: 7edb ldrb r3, [r3, #27] + 8003f98: 2b01 cmp r3, #1 + 8003f9a: d108 bne.n 8003fae { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_NART); - 8003f88: 687b ldr r3, [r7, #4] - 8003f8a: 681b ldr r3, [r3, #0] - 8003f8c: 681a ldr r2, [r3, #0] - 8003f8e: 687b ldr r3, [r7, #4] - 8003f90: 681b ldr r3, [r3, #0] - 8003f92: 2110 movs r1, #16 - 8003f94: 438a bics r2, r1 - 8003f96: 601a str r2, [r3, #0] - 8003f98: e007 b.n 8003faa + 8003f9c: 687b ldr r3, [r7, #4] + 8003f9e: 681b ldr r3, [r3, #0] + 8003fa0: 681a ldr r2, [r3, #0] + 8003fa2: 687b ldr r3, [r7, #4] + 8003fa4: 681b ldr r3, [r3, #0] + 8003fa6: 2110 movs r1, #16 + 8003fa8: 438a bics r2, r1 + 8003faa: 601a str r2, [r3, #0] + 8003fac: e007 b.n 8003fbe } else { SET_BIT(hcan->Instance->MCR, CAN_MCR_NART); - 8003f9a: 687b ldr r3, [r7, #4] - 8003f9c: 681b ldr r3, [r3, #0] - 8003f9e: 681a ldr r2, [r3, #0] - 8003fa0: 687b ldr r3, [r7, #4] - 8003fa2: 681b ldr r3, [r3, #0] - 8003fa4: 2110 movs r1, #16 - 8003fa6: 430a orrs r2, r1 - 8003fa8: 601a str r2, [r3, #0] + 8003fae: 687b ldr r3, [r7, #4] + 8003fb0: 681b ldr r3, [r3, #0] + 8003fb2: 681a ldr r2, [r3, #0] + 8003fb4: 687b ldr r3, [r7, #4] + 8003fb6: 681b ldr r3, [r3, #0] + 8003fb8: 2110 movs r1, #16 + 8003fba: 430a orrs r2, r1 + 8003fbc: 601a str r2, [r3, #0] } /* Set the receive FIFO locked mode */ if (hcan->Init.ReceiveFifoLocked == ENABLE) - 8003faa: 687b ldr r3, [r7, #4] - 8003fac: 7f1b ldrb r3, [r3, #28] - 8003fae: 2b01 cmp r3, #1 - 8003fb0: d108 bne.n 8003fc4 + 8003fbe: 687b ldr r3, [r7, #4] + 8003fc0: 7f1b ldrb r3, [r3, #28] + 8003fc2: 2b01 cmp r3, #1 + 8003fc4: d108 bne.n 8003fd8 { SET_BIT(hcan->Instance->MCR, CAN_MCR_RFLM); - 8003fb2: 687b ldr r3, [r7, #4] - 8003fb4: 681b ldr r3, [r3, #0] - 8003fb6: 681a ldr r2, [r3, #0] - 8003fb8: 687b ldr r3, [r7, #4] - 8003fba: 681b ldr r3, [r3, #0] - 8003fbc: 2108 movs r1, #8 - 8003fbe: 430a orrs r2, r1 - 8003fc0: 601a str r2, [r3, #0] - 8003fc2: e007 b.n 8003fd4 + 8003fc6: 687b ldr r3, [r7, #4] + 8003fc8: 681b ldr r3, [r3, #0] + 8003fca: 681a ldr r2, [r3, #0] + 8003fcc: 687b ldr r3, [r7, #4] + 8003fce: 681b ldr r3, [r3, #0] + 8003fd0: 2108 movs r1, #8 + 8003fd2: 430a orrs r2, r1 + 8003fd4: 601a str r2, [r3, #0] + 8003fd6: e007 b.n 8003fe8 } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_RFLM); - 8003fc4: 687b ldr r3, [r7, #4] - 8003fc6: 681b ldr r3, [r3, #0] - 8003fc8: 681a ldr r2, [r3, #0] - 8003fca: 687b ldr r3, [r7, #4] - 8003fcc: 681b ldr r3, [r3, #0] - 8003fce: 2108 movs r1, #8 - 8003fd0: 438a bics r2, r1 - 8003fd2: 601a str r2, [r3, #0] + 8003fd8: 687b ldr r3, [r7, #4] + 8003fda: 681b ldr r3, [r3, #0] + 8003fdc: 681a ldr r2, [r3, #0] + 8003fde: 687b ldr r3, [r7, #4] + 8003fe0: 681b ldr r3, [r3, #0] + 8003fe2: 2108 movs r1, #8 + 8003fe4: 438a bics r2, r1 + 8003fe6: 601a str r2, [r3, #0] } /* Set the transmit FIFO priority */ if (hcan->Init.TransmitFifoPriority == ENABLE) - 8003fd4: 687b ldr r3, [r7, #4] - 8003fd6: 7f5b ldrb r3, [r3, #29] - 8003fd8: 2b01 cmp r3, #1 - 8003fda: d108 bne.n 8003fee + 8003fe8: 687b ldr r3, [r7, #4] + 8003fea: 7f5b ldrb r3, [r3, #29] + 8003fec: 2b01 cmp r3, #1 + 8003fee: d108 bne.n 8004002 { SET_BIT(hcan->Instance->MCR, CAN_MCR_TXFP); - 8003fdc: 687b ldr r3, [r7, #4] - 8003fde: 681b ldr r3, [r3, #0] - 8003fe0: 681a ldr r2, [r3, #0] - 8003fe2: 687b ldr r3, [r7, #4] - 8003fe4: 681b ldr r3, [r3, #0] - 8003fe6: 2104 movs r1, #4 - 8003fe8: 430a orrs r2, r1 - 8003fea: 601a str r2, [r3, #0] - 8003fec: e007 b.n 8003ffe + 8003ff0: 687b ldr r3, [r7, #4] + 8003ff2: 681b ldr r3, [r3, #0] + 8003ff4: 681a ldr r2, [r3, #0] + 8003ff6: 687b ldr r3, [r7, #4] + 8003ff8: 681b ldr r3, [r3, #0] + 8003ffa: 2104 movs r1, #4 + 8003ffc: 430a orrs r2, r1 + 8003ffe: 601a str r2, [r3, #0] + 8004000: e007 b.n 8004012 } else { CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_TXFP); - 8003fee: 687b ldr r3, [r7, #4] - 8003ff0: 681b ldr r3, [r3, #0] - 8003ff2: 681a ldr r2, [r3, #0] - 8003ff4: 687b ldr r3, [r7, #4] - 8003ff6: 681b ldr r3, [r3, #0] - 8003ff8: 2104 movs r1, #4 - 8003ffa: 438a bics r2, r1 - 8003ffc: 601a str r2, [r3, #0] + 8004002: 687b ldr r3, [r7, #4] + 8004004: 681b ldr r3, [r3, #0] + 8004006: 681a ldr r2, [r3, #0] + 8004008: 687b ldr r3, [r7, #4] + 800400a: 681b ldr r3, [r3, #0] + 800400c: 2104 movs r1, #4 + 800400e: 438a bics r2, r1 + 8004010: 601a str r2, [r3, #0] } /* Set the bit timing register */ WRITE_REG(hcan->Instance->BTR, (uint32_t)(hcan->Init.Mode | - 8003ffe: 687b ldr r3, [r7, #4] - 8004000: 689a ldr r2, [r3, #8] - 8004002: 687b ldr r3, [r7, #4] - 8004004: 68db ldr r3, [r3, #12] - 8004006: 431a orrs r2, r3 - 8004008: 687b ldr r3, [r7, #4] - 800400a: 691b ldr r3, [r3, #16] - 800400c: 431a orrs r2, r3 - 800400e: 687b ldr r3, [r7, #4] - 8004010: 695b ldr r3, [r3, #20] - 8004012: 431a orrs r2, r3 - 8004014: 0011 movs r1, r2 + 8004012: 687b ldr r3, [r7, #4] + 8004014: 689a ldr r2, [r3, #8] 8004016: 687b ldr r3, [r7, #4] - 8004018: 685b ldr r3, [r3, #4] - 800401a: 1e5a subs r2, r3, #1 + 8004018: 68db ldr r3, [r3, #12] + 800401a: 431a orrs r2, r3 800401c: 687b ldr r3, [r7, #4] - 800401e: 681b ldr r3, [r3, #0] - 8004020: 430a orrs r2, r1 - 8004022: 61da str r2, [r3, #28] + 800401e: 691b ldr r3, [r3, #16] + 8004020: 431a orrs r2, r3 + 8004022: 687b ldr r3, [r7, #4] + 8004024: 695b ldr r3, [r3, #20] + 8004026: 431a orrs r2, r3 + 8004028: 0011 movs r1, r2 + 800402a: 687b ldr r3, [r7, #4] + 800402c: 685b ldr r3, [r3, #4] + 800402e: 1e5a subs r2, r3, #1 + 8004030: 687b ldr r3, [r7, #4] + 8004032: 681b ldr r3, [r3, #0] + 8004034: 430a orrs r2, r1 + 8004036: 61da str r2, [r3, #28] hcan->Init.TimeSeg1 | hcan->Init.TimeSeg2 | (hcan->Init.Prescaler - 1U))); /* Initialize the error code */ hcan->ErrorCode = HAL_CAN_ERROR_NONE; - 8004024: 687b ldr r3, [r7, #4] - 8004026: 2200 movs r2, #0 - 8004028: 625a str r2, [r3, #36] @ 0x24 + 8004038: 687b ldr r3, [r7, #4] + 800403a: 2200 movs r2, #0 + 800403c: 625a str r2, [r3, #36] @ 0x24 /* Initialize the CAN state */ hcan->State = HAL_CAN_STATE_READY; - 800402a: 687b ldr r3, [r7, #4] - 800402c: 2220 movs r2, #32 - 800402e: 2101 movs r1, #1 - 8004030: 5499 strb r1, [r3, r2] + 800403e: 687b ldr r3, [r7, #4] + 8004040: 2220 movs r2, #32 + 8004042: 2101 movs r1, #1 + 8004044: 5499 strb r1, [r3, r2] /* Return function status */ return HAL_OK; - 8004032: 2300 movs r3, #0 + 8004046: 2300 movs r3, #0 } - 8004034: 0018 movs r0, r3 - 8004036: 46bd mov sp, r7 - 8004038: b004 add sp, #16 - 800403a: bd80 pop {r7, pc} + 8004048: 0018 movs r0, r3 + 800404a: 46bd mov sp, r7 + 800404c: b004 add sp, #16 + 800404e: bd80 pop {r7, pc} -0800403c : +08004050 : * @param hcan pointer to an CAN_HandleTypeDef structure that contains * the configuration information for the specified CAN. * @retval HAL status */ HAL_StatusTypeDef HAL_CAN_Start(CAN_HandleTypeDef *hcan) { - 800403c: b580 push {r7, lr} - 800403e: b084 sub sp, #16 - 8004040: af00 add r7, sp, #0 - 8004042: 6078 str r0, [r7, #4] + 8004050: b580 push {r7, lr} + 8004052: b084 sub sp, #16 + 8004054: af00 add r7, sp, #0 + 8004056: 6078 str r0, [r7, #4] uint32_t tickstart; if (hcan->State == HAL_CAN_STATE_READY) - 8004044: 687b ldr r3, [r7, #4] - 8004046: 2220 movs r2, #32 - 8004048: 5c9b ldrb r3, [r3, r2] - 800404a: b2db uxtb r3, r3 - 800404c: 2b01 cmp r3, #1 - 800404e: d12f bne.n 80040b0 + 8004058: 687b ldr r3, [r7, #4] + 800405a: 2220 movs r2, #32 + 800405c: 5c9b ldrb r3, [r3, r2] + 800405e: b2db uxtb r3, r3 + 8004060: 2b01 cmp r3, #1 + 8004062: d12f bne.n 80040c4 { /* Change CAN peripheral state */ hcan->State = HAL_CAN_STATE_LISTENING; - 8004050: 687b ldr r3, [r7, #4] - 8004052: 2220 movs r2, #32 - 8004054: 2102 movs r1, #2 - 8004056: 5499 strb r1, [r3, r2] + 8004064: 687b ldr r3, [r7, #4] + 8004066: 2220 movs r2, #32 + 8004068: 2102 movs r1, #2 + 800406a: 5499 strb r1, [r3, r2] /* Request leave initialisation */ CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_INRQ); - 8004058: 687b ldr r3, [r7, #4] - 800405a: 681b ldr r3, [r3, #0] - 800405c: 681a ldr r2, [r3, #0] - 800405e: 687b ldr r3, [r7, #4] - 8004060: 681b ldr r3, [r3, #0] - 8004062: 2101 movs r1, #1 - 8004064: 438a bics r2, r1 - 8004066: 601a str r2, [r3, #0] + 800406c: 687b ldr r3, [r7, #4] + 800406e: 681b ldr r3, [r3, #0] + 8004070: 681a ldr r2, [r3, #0] + 8004072: 687b ldr r3, [r7, #4] + 8004074: 681b ldr r3, [r3, #0] + 8004076: 2101 movs r1, #1 + 8004078: 438a bics r2, r1 + 800407a: 601a str r2, [r3, #0] /* Get tick */ tickstart = HAL_GetTick(); - 8004068: f7ff febc bl 8003de4 - 800406c: 0003 movs r3, r0 - 800406e: 60fb str r3, [r7, #12] + 800407c: f7ff febc bl 8003df8 + 8004080: 0003 movs r3, r0 + 8004082: 60fb str r3, [r7, #12] /* Wait the acknowledge */ while ((hcan->Instance->MSR & CAN_MSR_INAK) != 0U) - 8004070: e013 b.n 800409a + 8004084: e013 b.n 80040ae { /* Check for the Timeout */ if ((HAL_GetTick() - tickstart) > CAN_TIMEOUT_VALUE) - 8004072: f7ff feb7 bl 8003de4 - 8004076: 0002 movs r2, r0 - 8004078: 68fb ldr r3, [r7, #12] - 800407a: 1ad3 subs r3, r2, r3 - 800407c: 2b0a cmp r3, #10 - 800407e: d90c bls.n 800409a + 8004086: f7ff feb7 bl 8003df8 + 800408a: 0002 movs r2, r0 + 800408c: 68fb ldr r3, [r7, #12] + 800408e: 1ad3 subs r3, r2, r3 + 8004090: 2b0a cmp r3, #10 + 8004092: d90c bls.n 80040ae { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_TIMEOUT; - 8004080: 687b ldr r3, [r7, #4] - 8004082: 6a5b ldr r3, [r3, #36] @ 0x24 - 8004084: 2280 movs r2, #128 @ 0x80 - 8004086: 0292 lsls r2, r2, #10 - 8004088: 431a orrs r2, r3 - 800408a: 687b ldr r3, [r7, #4] - 800408c: 625a str r2, [r3, #36] @ 0x24 + 8004094: 687b ldr r3, [r7, #4] + 8004096: 6a5b ldr r3, [r3, #36] @ 0x24 + 8004098: 2280 movs r2, #128 @ 0x80 + 800409a: 0292 lsls r2, r2, #10 + 800409c: 431a orrs r2, r3 + 800409e: 687b ldr r3, [r7, #4] + 80040a0: 625a str r2, [r3, #36] @ 0x24 /* Change CAN state */ hcan->State = HAL_CAN_STATE_ERROR; - 800408e: 687b ldr r3, [r7, #4] - 8004090: 2220 movs r2, #32 - 8004092: 2105 movs r1, #5 - 8004094: 5499 strb r1, [r3, r2] + 80040a2: 687b ldr r3, [r7, #4] + 80040a4: 2220 movs r2, #32 + 80040a6: 2105 movs r1, #5 + 80040a8: 5499 strb r1, [r3, r2] return HAL_ERROR; - 8004096: 2301 movs r3, #1 - 8004098: e012 b.n 80040c0 + 80040aa: 2301 movs r3, #1 + 80040ac: e012 b.n 80040d4 while ((hcan->Instance->MSR & CAN_MSR_INAK) != 0U) - 800409a: 687b ldr r3, [r7, #4] - 800409c: 681b ldr r3, [r3, #0] - 800409e: 685b ldr r3, [r3, #4] - 80040a0: 2201 movs r2, #1 - 80040a2: 4013 ands r3, r2 - 80040a4: d1e5 bne.n 8004072 + 80040ae: 687b ldr r3, [r7, #4] + 80040b0: 681b ldr r3, [r3, #0] + 80040b2: 685b ldr r3, [r3, #4] + 80040b4: 2201 movs r2, #1 + 80040b6: 4013 ands r3, r2 + 80040b8: d1e5 bne.n 8004086 } } /* Reset the CAN ErrorCode */ hcan->ErrorCode = HAL_CAN_ERROR_NONE; - 80040a6: 687b ldr r3, [r7, #4] - 80040a8: 2200 movs r2, #0 - 80040aa: 625a str r2, [r3, #36] @ 0x24 + 80040ba: 687b ldr r3, [r7, #4] + 80040bc: 2200 movs r2, #0 + 80040be: 625a str r2, [r3, #36] @ 0x24 /* Return function status */ return HAL_OK; - 80040ac: 2300 movs r3, #0 - 80040ae: e007 b.n 80040c0 + 80040c0: 2300 movs r3, #0 + 80040c2: e007 b.n 80040d4 } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_READY; - 80040b0: 687b ldr r3, [r7, #4] - 80040b2: 6a5b ldr r3, [r3, #36] @ 0x24 - 80040b4: 2280 movs r2, #128 @ 0x80 - 80040b6: 0312 lsls r2, r2, #12 - 80040b8: 431a orrs r2, r3 - 80040ba: 687b ldr r3, [r7, #4] - 80040bc: 625a str r2, [r3, #36] @ 0x24 + 80040c4: 687b ldr r3, [r7, #4] + 80040c6: 6a5b ldr r3, [r3, #36] @ 0x24 + 80040c8: 2280 movs r2, #128 @ 0x80 + 80040ca: 0312 lsls r2, r2, #12 + 80040cc: 431a orrs r2, r3 + 80040ce: 687b ldr r3, [r7, #4] + 80040d0: 625a str r2, [r3, #36] @ 0x24 return HAL_ERROR; - 80040be: 2301 movs r3, #1 + 80040d2: 2301 movs r3, #1 } } - 80040c0: 0018 movs r0, r3 - 80040c2: 46bd mov sp, r7 - 80040c4: b004 add sp, #16 - 80040c6: bd80 pop {r7, pc} + 80040d4: 0018 movs r0, r3 + 80040d6: 46bd mov sp, r7 + 80040d8: b004 add sp, #16 + 80040da: bd80 pop {r7, pc} -080040c8 : +080040dc : * This parameter can be a value of @arg CAN_Tx_Mailboxes. * @retval HAL status */ HAL_StatusTypeDef HAL_CAN_AddTxMessage(CAN_HandleTypeDef *hcan, const CAN_TxHeaderTypeDef *pHeader, const uint8_t aData[], uint32_t *pTxMailbox) { - 80040c8: b580 push {r7, lr} - 80040ca: b088 sub sp, #32 - 80040cc: af00 add r7, sp, #0 - 80040ce: 60f8 str r0, [r7, #12] - 80040d0: 60b9 str r1, [r7, #8] - 80040d2: 607a str r2, [r7, #4] - 80040d4: 603b str r3, [r7, #0] + 80040dc: b580 push {r7, lr} + 80040de: b088 sub sp, #32 + 80040e0: af00 add r7, sp, #0 + 80040e2: 60f8 str r0, [r7, #12] + 80040e4: 60b9 str r1, [r7, #8] + 80040e6: 607a str r2, [r7, #4] + 80040e8: 603b str r3, [r7, #0] uint32_t transmitmailbox; HAL_CAN_StateTypeDef state = hcan->State; - 80040d6: 201f movs r0, #31 - 80040d8: 183b adds r3, r7, r0 - 80040da: 68fa ldr r2, [r7, #12] - 80040dc: 2120 movs r1, #32 - 80040de: 5c52 ldrb r2, [r2, r1] - 80040e0: 701a strb r2, [r3, #0] + 80040ea: 201f movs r0, #31 + 80040ec: 183b adds r3, r7, r0 + 80040ee: 68fa ldr r2, [r7, #12] + 80040f0: 2120 movs r1, #32 + 80040f2: 5c52 ldrb r2, [r2, r1] + 80040f4: 701a strb r2, [r3, #0] uint32_t tsr = READ_REG(hcan->Instance->TSR); - 80040e2: 68fb ldr r3, [r7, #12] - 80040e4: 681b ldr r3, [r3, #0] - 80040e6: 689b ldr r3, [r3, #8] - 80040e8: 61bb str r3, [r7, #24] + 80040f6: 68fb ldr r3, [r7, #12] + 80040f8: 681b ldr r3, [r3, #0] + 80040fa: 689b ldr r3, [r3, #8] + 80040fc: 61bb str r3, [r7, #24] { assert_param(IS_CAN_EXTID(pHeader->ExtId)); } assert_param(IS_FUNCTIONAL_STATE(pHeader->TransmitGlobalTime)); if ((state == HAL_CAN_STATE_READY) || - 80040ea: 183b adds r3, r7, r0 - 80040ec: 781b ldrb r3, [r3, #0] - 80040ee: 2b01 cmp r3, #1 - 80040f0: d004 beq.n 80040fc - 80040f2: 183b adds r3, r7, r0 - 80040f4: 781b ldrb r3, [r3, #0] - 80040f6: 2b02 cmp r3, #2 - 80040f8: d000 beq.n 80040fc - 80040fa: e0ab b.n 8004254 + 80040fe: 183b adds r3, r7, r0 + 8004100: 781b ldrb r3, [r3, #0] + 8004102: 2b01 cmp r3, #1 + 8004104: d004 beq.n 8004110 + 8004106: 183b adds r3, r7, r0 + 8004108: 781b ldrb r3, [r3, #0] + 800410a: 2b02 cmp r3, #2 + 800410c: d000 beq.n 8004110 + 800410e: e0ab b.n 8004268 (state == HAL_CAN_STATE_LISTENING)) { /* Check that all the Tx mailboxes are not full */ if (((tsr & CAN_TSR_TME0) != 0U) || - 80040fc: 69ba ldr r2, [r7, #24] - 80040fe: 2380 movs r3, #128 @ 0x80 - 8004100: 04db lsls r3, r3, #19 - 8004102: 4013 ands r3, r2 - 8004104: d10a bne.n 800411c - ((tsr & CAN_TSR_TME1) != 0U) || - 8004106: 69ba ldr r2, [r7, #24] - 8004108: 2380 movs r3, #128 @ 0x80 - 800410a: 051b lsls r3, r3, #20 - 800410c: 4013 ands r3, r2 - if (((tsr & CAN_TSR_TME0) != 0U) || - 800410e: d105 bne.n 800411c - ((tsr & CAN_TSR_TME2) != 0U)) 8004110: 69ba ldr r2, [r7, #24] 8004112: 2380 movs r3, #128 @ 0x80 - 8004114: 055b lsls r3, r3, #21 + 8004114: 04db lsls r3, r3, #19 8004116: 4013 ands r3, r2 + 8004118: d10a bne.n 8004130 ((tsr & CAN_TSR_TME1) != 0U) || - 8004118: d100 bne.n 800411c - 800411a: e092 b.n 8004242 + 800411a: 69ba ldr r2, [r7, #24] + 800411c: 2380 movs r3, #128 @ 0x80 + 800411e: 051b lsls r3, r3, #20 + 8004120: 4013 ands r3, r2 + if (((tsr & CAN_TSR_TME0) != 0U) || + 8004122: d105 bne.n 8004130 + ((tsr & CAN_TSR_TME2) != 0U)) + 8004124: 69ba ldr r2, [r7, #24] + 8004126: 2380 movs r3, #128 @ 0x80 + 8004128: 055b lsls r3, r3, #21 + 800412a: 4013 ands r3, r2 + ((tsr & CAN_TSR_TME1) != 0U) || + 800412c: d100 bne.n 8004130 + 800412e: e092 b.n 8004256 { /* Select an empty transmit mailbox */ transmitmailbox = (tsr & CAN_TSR_CODE) >> CAN_TSR_CODE_Pos; - 800411c: 69bb ldr r3, [r7, #24] - 800411e: 0e1b lsrs r3, r3, #24 - 8004120: 2203 movs r2, #3 - 8004122: 4013 ands r3, r2 - 8004124: 617b str r3, [r7, #20] + 8004130: 69bb ldr r3, [r7, #24] + 8004132: 0e1b lsrs r3, r3, #24 + 8004134: 2203 movs r2, #3 + 8004136: 4013 ands r3, r2 + 8004138: 617b str r3, [r7, #20] /* Store the Tx mailbox */ *pTxMailbox = (uint32_t)1 << transmitmailbox; - 8004126: 2201 movs r2, #1 - 8004128: 697b ldr r3, [r7, #20] - 800412a: 409a lsls r2, r3 - 800412c: 683b ldr r3, [r7, #0] - 800412e: 601a str r2, [r3, #0] + 800413a: 2201 movs r2, #1 + 800413c: 697b ldr r3, [r7, #20] + 800413e: 409a lsls r2, r3 + 8004140: 683b ldr r3, [r7, #0] + 8004142: 601a str r2, [r3, #0] /* Set up the Id */ if (pHeader->IDE == CAN_ID_STD) - 8004130: 68bb ldr r3, [r7, #8] - 8004132: 689b ldr r3, [r3, #8] - 8004134: 2b00 cmp r3, #0 - 8004136: d10c bne.n 8004152 + 8004144: 68bb ldr r3, [r7, #8] + 8004146: 689b ldr r3, [r3, #8] + 8004148: 2b00 cmp r3, #0 + 800414a: d10c bne.n 8004166 { hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->StdId << CAN_TI0R_STID_Pos) | - 8004138: 68bb ldr r3, [r7, #8] - 800413a: 681b ldr r3, [r3, #0] - 800413c: 0559 lsls r1, r3, #21 + 800414c: 68bb ldr r3, [r7, #8] + 800414e: 681b ldr r3, [r3, #0] + 8004150: 0559 lsls r1, r3, #21 pHeader->RTR); - 800413e: 68bb ldr r3, [r7, #8] - 8004140: 68da ldr r2, [r3, #12] + 8004152: 68bb ldr r3, [r7, #8] + 8004154: 68da ldr r2, [r3, #12] hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->StdId << CAN_TI0R_STID_Pos) | - 8004142: 68fb ldr r3, [r7, #12] - 8004144: 681b ldr r3, [r3, #0] - 8004146: 4311 orrs r1, r2 - 8004148: 697a ldr r2, [r7, #20] - 800414a: 3218 adds r2, #24 - 800414c: 0112 lsls r2, r2, #4 - 800414e: 50d1 str r1, [r2, r3] - 8004150: e00f b.n 8004172 + 8004156: 68fb ldr r3, [r7, #12] + 8004158: 681b ldr r3, [r3, #0] + 800415a: 4311 orrs r1, r2 + 800415c: 697a ldr r2, [r7, #20] + 800415e: 3218 adds r2, #24 + 8004160: 0112 lsls r2, r2, #4 + 8004162: 50d1 str r1, [r2, r3] + 8004164: e00f b.n 8004186 } else { hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->ExtId << CAN_TI0R_EXID_Pos) | - 8004152: 68bb ldr r3, [r7, #8] - 8004154: 685b ldr r3, [r3, #4] - 8004156: 00da lsls r2, r3, #3 + 8004166: 68bb ldr r3, [r7, #8] + 8004168: 685b ldr r3, [r3, #4] + 800416a: 00da lsls r2, r3, #3 pHeader->IDE | - 8004158: 68bb ldr r3, [r7, #8] - 800415a: 689b ldr r3, [r3, #8] + 800416c: 68bb ldr r3, [r7, #8] + 800416e: 689b ldr r3, [r3, #8] hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->ExtId << CAN_TI0R_EXID_Pos) | - 800415c: 431a orrs r2, r3 - 800415e: 0011 movs r1, r2 + 8004170: 431a orrs r2, r3 + 8004172: 0011 movs r1, r2 pHeader->RTR); - 8004160: 68bb ldr r3, [r7, #8] - 8004162: 68da ldr r2, [r3, #12] + 8004174: 68bb ldr r3, [r7, #8] + 8004176: 68da ldr r2, [r3, #12] hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->ExtId << CAN_TI0R_EXID_Pos) | - 8004164: 68fb ldr r3, [r7, #12] - 8004166: 681b ldr r3, [r3, #0] + 8004178: 68fb ldr r3, [r7, #12] + 800417a: 681b ldr r3, [r3, #0] pHeader->IDE | - 8004168: 4311 orrs r1, r2 + 800417c: 4311 orrs r1, r2 hcan->Instance->sTxMailBox[transmitmailbox].TIR = ((pHeader->ExtId << CAN_TI0R_EXID_Pos) | - 800416a: 697a ldr r2, [r7, #20] - 800416c: 3218 adds r2, #24 - 800416e: 0112 lsls r2, r2, #4 - 8004170: 50d1 str r1, [r2, r3] + 800417e: 697a ldr r2, [r7, #20] + 8004180: 3218 adds r2, #24 + 8004182: 0112 lsls r2, r2, #4 + 8004184: 50d1 str r1, [r2, r3] } /* Set up the DLC */ hcan->Instance->sTxMailBox[transmitmailbox].TDTR = (pHeader->DLC); - 8004172: 68fb ldr r3, [r7, #12] - 8004174: 6819 ldr r1, [r3, #0] - 8004176: 68bb ldr r3, [r7, #8] - 8004178: 691a ldr r2, [r3, #16] - 800417a: 697b ldr r3, [r7, #20] - 800417c: 3318 adds r3, #24 - 800417e: 011b lsls r3, r3, #4 - 8004180: 18cb adds r3, r1, r3 - 8004182: 3304 adds r3, #4 - 8004184: 601a str r2, [r3, #0] + 8004186: 68fb ldr r3, [r7, #12] + 8004188: 6819 ldr r1, [r3, #0] + 800418a: 68bb ldr r3, [r7, #8] + 800418c: 691a ldr r2, [r3, #16] + 800418e: 697b ldr r3, [r7, #20] + 8004190: 3318 adds r3, #24 + 8004192: 011b lsls r3, r3, #4 + 8004194: 18cb adds r3, r1, r3 + 8004196: 3304 adds r3, #4 + 8004198: 601a str r2, [r3, #0] /* Set up the Transmit Global Time mode */ if (pHeader->TransmitGlobalTime == ENABLE) - 8004186: 68bb ldr r3, [r7, #8] - 8004188: 7d1b ldrb r3, [r3, #20] - 800418a: 2b01 cmp r3, #1 - 800418c: d112 bne.n 80041b4 + 800419a: 68bb ldr r3, [r7, #8] + 800419c: 7d1b ldrb r3, [r3, #20] + 800419e: 2b01 cmp r3, #1 + 80041a0: d112 bne.n 80041c8 { SET_BIT(hcan->Instance->sTxMailBox[transmitmailbox].TDTR, CAN_TDT0R_TGT); - 800418e: 68fb ldr r3, [r7, #12] - 8004190: 681a ldr r2, [r3, #0] - 8004192: 697b ldr r3, [r7, #20] - 8004194: 3318 adds r3, #24 - 8004196: 011b lsls r3, r3, #4 - 8004198: 18d3 adds r3, r2, r3 - 800419a: 3304 adds r3, #4 - 800419c: 681a ldr r2, [r3, #0] - 800419e: 68fb ldr r3, [r7, #12] - 80041a0: 6819 ldr r1, [r3, #0] - 80041a2: 2380 movs r3, #128 @ 0x80 - 80041a4: 005b lsls r3, r3, #1 - 80041a6: 431a orrs r2, r3 - 80041a8: 697b ldr r3, [r7, #20] - 80041aa: 3318 adds r3, #24 - 80041ac: 011b lsls r3, r3, #4 - 80041ae: 18cb adds r3, r1, r3 - 80041b0: 3304 adds r3, #4 - 80041b2: 601a str r2, [r3, #0] + 80041a2: 68fb ldr r3, [r7, #12] + 80041a4: 681a ldr r2, [r3, #0] + 80041a6: 697b ldr r3, [r7, #20] + 80041a8: 3318 adds r3, #24 + 80041aa: 011b lsls r3, r3, #4 + 80041ac: 18d3 adds r3, r2, r3 + 80041ae: 3304 adds r3, #4 + 80041b0: 681a ldr r2, [r3, #0] + 80041b2: 68fb ldr r3, [r7, #12] + 80041b4: 6819 ldr r1, [r3, #0] + 80041b6: 2380 movs r3, #128 @ 0x80 + 80041b8: 005b lsls r3, r3, #1 + 80041ba: 431a orrs r2, r3 + 80041bc: 697b ldr r3, [r7, #20] + 80041be: 3318 adds r3, #24 + 80041c0: 011b lsls r3, r3, #4 + 80041c2: 18cb adds r3, r1, r3 + 80041c4: 3304 adds r3, #4 + 80041c6: 601a str r2, [r3, #0] } /* Set up the data field */ WRITE_REG(hcan->Instance->sTxMailBox[transmitmailbox].TDHR, - 80041b4: 687b ldr r3, [r7, #4] - 80041b6: 3307 adds r3, #7 - 80041b8: 781b ldrb r3, [r3, #0] - 80041ba: 061a lsls r2, r3, #24 - 80041bc: 687b ldr r3, [r7, #4] - 80041be: 3306 adds r3, #6 - 80041c0: 781b ldrb r3, [r3, #0] - 80041c2: 041b lsls r3, r3, #16 - 80041c4: 431a orrs r2, r3 - 80041c6: 687b ldr r3, [r7, #4] - 80041c8: 3305 adds r3, #5 - 80041ca: 781b ldrb r3, [r3, #0] - 80041cc: 021b lsls r3, r3, #8 - 80041ce: 431a orrs r2, r3 + 80041c8: 687b ldr r3, [r7, #4] + 80041ca: 3307 adds r3, #7 + 80041cc: 781b ldrb r3, [r3, #0] + 80041ce: 061a lsls r2, r3, #24 80041d0: 687b ldr r3, [r7, #4] - 80041d2: 3304 adds r3, #4 + 80041d2: 3306 adds r3, #6 80041d4: 781b ldrb r3, [r3, #0] - 80041d6: 0019 movs r1, r3 - 80041d8: 68fb ldr r3, [r7, #12] - 80041da: 6818 ldr r0, [r3, #0] - 80041dc: 430a orrs r2, r1 - 80041de: 6979 ldr r1, [r7, #20] - 80041e0: 23c6 movs r3, #198 @ 0xc6 - 80041e2: 005b lsls r3, r3, #1 - 80041e4: 0109 lsls r1, r1, #4 - 80041e6: 1841 adds r1, r0, r1 - 80041e8: 18cb adds r3, r1, r3 - 80041ea: 601a str r2, [r3, #0] + 80041d6: 041b lsls r3, r3, #16 + 80041d8: 431a orrs r2, r3 + 80041da: 687b ldr r3, [r7, #4] + 80041dc: 3305 adds r3, #5 + 80041de: 781b ldrb r3, [r3, #0] + 80041e0: 021b lsls r3, r3, #8 + 80041e2: 431a orrs r2, r3 + 80041e4: 687b ldr r3, [r7, #4] + 80041e6: 3304 adds r3, #4 + 80041e8: 781b ldrb r3, [r3, #0] + 80041ea: 0019 movs r1, r3 + 80041ec: 68fb ldr r3, [r7, #12] + 80041ee: 6818 ldr r0, [r3, #0] + 80041f0: 430a orrs r2, r1 + 80041f2: 6979 ldr r1, [r7, #20] + 80041f4: 23c6 movs r3, #198 @ 0xc6 + 80041f6: 005b lsls r3, r3, #1 + 80041f8: 0109 lsls r1, r1, #4 + 80041fa: 1841 adds r1, r0, r1 + 80041fc: 18cb adds r3, r1, r3 + 80041fe: 601a str r2, [r3, #0] ((uint32_t)aData[7] << CAN_TDH0R_DATA7_Pos) | ((uint32_t)aData[6] << CAN_TDH0R_DATA6_Pos) | ((uint32_t)aData[5] << CAN_TDH0R_DATA5_Pos) | ((uint32_t)aData[4] << CAN_TDH0R_DATA4_Pos)); WRITE_REG(hcan->Instance->sTxMailBox[transmitmailbox].TDLR, - 80041ec: 687b ldr r3, [r7, #4] - 80041ee: 3303 adds r3, #3 - 80041f0: 781b ldrb r3, [r3, #0] - 80041f2: 061a lsls r2, r3, #24 - 80041f4: 687b ldr r3, [r7, #4] - 80041f6: 3302 adds r3, #2 - 80041f8: 781b ldrb r3, [r3, #0] - 80041fa: 041b lsls r3, r3, #16 - 80041fc: 431a orrs r2, r3 - 80041fe: 687b ldr r3, [r7, #4] - 8004200: 3301 adds r3, #1 - 8004202: 781b ldrb r3, [r3, #0] - 8004204: 021b lsls r3, r3, #8 - 8004206: 431a orrs r2, r3 + 8004200: 687b ldr r3, [r7, #4] + 8004202: 3303 adds r3, #3 + 8004204: 781b ldrb r3, [r3, #0] + 8004206: 061a lsls r2, r3, #24 8004208: 687b ldr r3, [r7, #4] - 800420a: 781b ldrb r3, [r3, #0] - 800420c: 0019 movs r1, r3 - 800420e: 68fb ldr r3, [r7, #12] - 8004210: 6818 ldr r0, [r3, #0] - 8004212: 430a orrs r2, r1 - 8004214: 6979 ldr r1, [r7, #20] - 8004216: 23c4 movs r3, #196 @ 0xc4 - 8004218: 005b lsls r3, r3, #1 - 800421a: 0109 lsls r1, r1, #4 - 800421c: 1841 adds r1, r0, r1 - 800421e: 18cb adds r3, r1, r3 - 8004220: 601a str r2, [r3, #0] + 800420a: 3302 adds r3, #2 + 800420c: 781b ldrb r3, [r3, #0] + 800420e: 041b lsls r3, r3, #16 + 8004210: 431a orrs r2, r3 + 8004212: 687b ldr r3, [r7, #4] + 8004214: 3301 adds r3, #1 + 8004216: 781b ldrb r3, [r3, #0] + 8004218: 021b lsls r3, r3, #8 + 800421a: 431a orrs r2, r3 + 800421c: 687b ldr r3, [r7, #4] + 800421e: 781b ldrb r3, [r3, #0] + 8004220: 0019 movs r1, r3 + 8004222: 68fb ldr r3, [r7, #12] + 8004224: 6818 ldr r0, [r3, #0] + 8004226: 430a orrs r2, r1 + 8004228: 6979 ldr r1, [r7, #20] + 800422a: 23c4 movs r3, #196 @ 0xc4 + 800422c: 005b lsls r3, r3, #1 + 800422e: 0109 lsls r1, r1, #4 + 8004230: 1841 adds r1, r0, r1 + 8004232: 18cb adds r3, r1, r3 + 8004234: 601a str r2, [r3, #0] ((uint32_t)aData[2] << CAN_TDL0R_DATA2_Pos) | ((uint32_t)aData[1] << CAN_TDL0R_DATA1_Pos) | ((uint32_t)aData[0] << CAN_TDL0R_DATA0_Pos)); /* Request transmission */ SET_BIT(hcan->Instance->sTxMailBox[transmitmailbox].TIR, CAN_TI0R_TXRQ); - 8004222: 68fb ldr r3, [r7, #12] - 8004224: 681b ldr r3, [r3, #0] - 8004226: 697a ldr r2, [r7, #20] - 8004228: 3218 adds r2, #24 - 800422a: 0112 lsls r2, r2, #4 - 800422c: 58d2 ldr r2, [r2, r3] - 800422e: 68fb ldr r3, [r7, #12] - 8004230: 681b ldr r3, [r3, #0] - 8004232: 2101 movs r1, #1 - 8004234: 4311 orrs r1, r2 - 8004236: 697a ldr r2, [r7, #20] - 8004238: 3218 adds r2, #24 - 800423a: 0112 lsls r2, r2, #4 - 800423c: 50d1 str r1, [r2, r3] + 8004236: 68fb ldr r3, [r7, #12] + 8004238: 681b ldr r3, [r3, #0] + 800423a: 697a ldr r2, [r7, #20] + 800423c: 3218 adds r2, #24 + 800423e: 0112 lsls r2, r2, #4 + 8004240: 58d2 ldr r2, [r2, r3] + 8004242: 68fb ldr r3, [r7, #12] + 8004244: 681b ldr r3, [r3, #0] + 8004246: 2101 movs r1, #1 + 8004248: 4311 orrs r1, r2 + 800424a: 697a ldr r2, [r7, #20] + 800424c: 3218 adds r2, #24 + 800424e: 0112 lsls r2, r2, #4 + 8004250: 50d1 str r1, [r2, r3] /* Return function status */ return HAL_OK; - 800423e: 2300 movs r3, #0 - 8004240: e010 b.n 8004264 + 8004252: 2300 movs r3, #0 + 8004254: e010 b.n 8004278 } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_PARAM; - 8004242: 68fb ldr r3, [r7, #12] - 8004244: 6a5b ldr r3, [r3, #36] @ 0x24 - 8004246: 2280 movs r2, #128 @ 0x80 - 8004248: 0392 lsls r2, r2, #14 - 800424a: 431a orrs r2, r3 - 800424c: 68fb ldr r3, [r7, #12] - 800424e: 625a str r2, [r3, #36] @ 0x24 + 8004256: 68fb ldr r3, [r7, #12] + 8004258: 6a5b ldr r3, [r3, #36] @ 0x24 + 800425a: 2280 movs r2, #128 @ 0x80 + 800425c: 0392 lsls r2, r2, #14 + 800425e: 431a orrs r2, r3 + 8004260: 68fb ldr r3, [r7, #12] + 8004262: 625a str r2, [r3, #36] @ 0x24 return HAL_ERROR; - 8004250: 2301 movs r3, #1 - 8004252: e007 b.n 8004264 + 8004264: 2301 movs r3, #1 + 8004266: e007 b.n 8004278 } } else { /* Update error code */ hcan->ErrorCode |= HAL_CAN_ERROR_NOT_INITIALIZED; - 8004254: 68fb ldr r3, [r7, #12] - 8004256: 6a5b ldr r3, [r3, #36] @ 0x24 - 8004258: 2280 movs r2, #128 @ 0x80 - 800425a: 02d2 lsls r2, r2, #11 - 800425c: 431a orrs r2, r3 - 800425e: 68fb ldr r3, [r7, #12] - 8004260: 625a str r2, [r3, #36] @ 0x24 + 8004268: 68fb ldr r3, [r7, #12] + 800426a: 6a5b ldr r3, [r3, #36] @ 0x24 + 800426c: 2280 movs r2, #128 @ 0x80 + 800426e: 02d2 lsls r2, r2, #11 + 8004270: 431a orrs r2, r3 + 8004272: 68fb ldr r3, [r7, #12] + 8004274: 625a str r2, [r3, #36] @ 0x24 return HAL_ERROR; - 8004262: 2301 movs r3, #1 + 8004276: 2301 movs r3, #1 } } - 8004264: 0018 movs r0, r3 - 8004266: 46bd mov sp, r7 - 8004268: b008 add sp, #32 - 800426a: bd80 pop {r7, pc} + 8004278: 0018 movs r0, r3 + 800427a: 46bd mov sp, r7 + 800427c: b008 add sp, #32 + 800427e: bd80 pop {r7, pc} -0800426c <__NVIC_SetPriority>: +08004280 <__NVIC_SetPriority>: \param [in] IRQn Interrupt number. \param [in] priority Priority to set. \note The priority cannot be set for every processor exception. */ __STATIC_INLINE void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) { - 800426c: b590 push {r4, r7, lr} - 800426e: b083 sub sp, #12 - 8004270: af00 add r7, sp, #0 - 8004272: 0002 movs r2, r0 - 8004274: 6039 str r1, [r7, #0] - 8004276: 1dfb adds r3, r7, #7 - 8004278: 701a strb r2, [r3, #0] + 8004280: b590 push {r4, r7, lr} + 8004282: b083 sub sp, #12 + 8004284: af00 add r7, sp, #0 + 8004286: 0002 movs r2, r0 + 8004288: 6039 str r1, [r7, #0] + 800428a: 1dfb adds r3, r7, #7 + 800428c: 701a strb r2, [r3, #0] if ((int32_t)(IRQn) >= 0) - 800427a: 1dfb adds r3, r7, #7 - 800427c: 781b ldrb r3, [r3, #0] - 800427e: 2b7f cmp r3, #127 @ 0x7f - 8004280: d828 bhi.n 80042d4 <__NVIC_SetPriority+0x68> + 800428e: 1dfb adds r3, r7, #7 + 8004290: 781b ldrb r3, [r3, #0] + 8004292: 2b7f cmp r3, #127 @ 0x7f + 8004294: d828 bhi.n 80042e8 <__NVIC_SetPriority+0x68> { NVIC->IP[_IP_IDX(IRQn)] = ((uint32_t)(NVIC->IP[_IP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | - 8004282: 4a2f ldr r2, [pc, #188] @ (8004340 <__NVIC_SetPriority+0xd4>) - 8004284: 1dfb adds r3, r7, #7 - 8004286: 781b ldrb r3, [r3, #0] - 8004288: b25b sxtb r3, r3 - 800428a: 089b lsrs r3, r3, #2 - 800428c: 33c0 adds r3, #192 @ 0xc0 - 800428e: 009b lsls r3, r3, #2 - 8004290: 589b ldr r3, [r3, r2] - 8004292: 1dfa adds r2, r7, #7 - 8004294: 7812 ldrb r2, [r2, #0] - 8004296: 0011 movs r1, r2 - 8004298: 2203 movs r2, #3 - 800429a: 400a ands r2, r1 - 800429c: 00d2 lsls r2, r2, #3 - 800429e: 21ff movs r1, #255 @ 0xff - 80042a0: 4091 lsls r1, r2 - 80042a2: 000a movs r2, r1 - 80042a4: 43d2 mvns r2, r2 - 80042a6: 401a ands r2, r3 - 80042a8: 0011 movs r1, r2 + 8004296: 4a2f ldr r2, [pc, #188] @ (8004354 <__NVIC_SetPriority+0xd4>) + 8004298: 1dfb adds r3, r7, #7 + 800429a: 781b ldrb r3, [r3, #0] + 800429c: b25b sxtb r3, r3 + 800429e: 089b lsrs r3, r3, #2 + 80042a0: 33c0 adds r3, #192 @ 0xc0 + 80042a2: 009b lsls r3, r3, #2 + 80042a4: 589b ldr r3, [r3, r2] + 80042a6: 1dfa adds r2, r7, #7 + 80042a8: 7812 ldrb r2, [r2, #0] + 80042aa: 0011 movs r1, r2 + 80042ac: 2203 movs r2, #3 + 80042ae: 400a ands r2, r1 + 80042b0: 00d2 lsls r2, r2, #3 + 80042b2: 21ff movs r1, #255 @ 0xff + 80042b4: 4091 lsls r1, r2 + 80042b6: 000a movs r2, r1 + 80042b8: 43d2 mvns r2, r2 + 80042ba: 401a ands r2, r3 + 80042bc: 0011 movs r1, r2 (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); - 80042aa: 683b ldr r3, [r7, #0] - 80042ac: 019b lsls r3, r3, #6 - 80042ae: 22ff movs r2, #255 @ 0xff - 80042b0: 401a ands r2, r3 - 80042b2: 1dfb adds r3, r7, #7 - 80042b4: 781b ldrb r3, [r3, #0] - 80042b6: 0018 movs r0, r3 - 80042b8: 2303 movs r3, #3 - 80042ba: 4003 ands r3, r0 - 80042bc: 00db lsls r3, r3, #3 - 80042be: 409a lsls r2, r3 + 80042be: 683b ldr r3, [r7, #0] + 80042c0: 019b lsls r3, r3, #6 + 80042c2: 22ff movs r2, #255 @ 0xff + 80042c4: 401a ands r2, r3 + 80042c6: 1dfb adds r3, r7, #7 + 80042c8: 781b ldrb r3, [r3, #0] + 80042ca: 0018 movs r0, r3 + 80042cc: 2303 movs r3, #3 + 80042ce: 4003 ands r3, r0 + 80042d0: 00db lsls r3, r3, #3 + 80042d2: 409a lsls r2, r3 NVIC->IP[_IP_IDX(IRQn)] = ((uint32_t)(NVIC->IP[_IP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | - 80042c0: 481f ldr r0, [pc, #124] @ (8004340 <__NVIC_SetPriority+0xd4>) - 80042c2: 1dfb adds r3, r7, #7 - 80042c4: 781b ldrb r3, [r3, #0] - 80042c6: b25b sxtb r3, r3 - 80042c8: 089b lsrs r3, r3, #2 - 80042ca: 430a orrs r2, r1 - 80042cc: 33c0 adds r3, #192 @ 0xc0 - 80042ce: 009b lsls r3, r3, #2 - 80042d0: 501a str r2, [r3, r0] + 80042d4: 481f ldr r0, [pc, #124] @ (8004354 <__NVIC_SetPriority+0xd4>) + 80042d6: 1dfb adds r3, r7, #7 + 80042d8: 781b ldrb r3, [r3, #0] + 80042da: b25b sxtb r3, r3 + 80042dc: 089b lsrs r3, r3, #2 + 80042de: 430a orrs r2, r1 + 80042e0: 33c0 adds r3, #192 @ 0xc0 + 80042e2: 009b lsls r3, r3, #2 + 80042e4: 501a str r2, [r3, r0] else { SCB->SHP[_SHP_IDX(IRQn)] = ((uint32_t)(SCB->SHP[_SHP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); } } - 80042d2: e031 b.n 8004338 <__NVIC_SetPriority+0xcc> + 80042e6: e031 b.n 800434c <__NVIC_SetPriority+0xcc> SCB->SHP[_SHP_IDX(IRQn)] = ((uint32_t)(SCB->SHP[_SHP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | - 80042d4: 4a1b ldr r2, [pc, #108] @ (8004344 <__NVIC_SetPriority+0xd8>) - 80042d6: 1dfb adds r3, r7, #7 - 80042d8: 781b ldrb r3, [r3, #0] - 80042da: 0019 movs r1, r3 - 80042dc: 230f movs r3, #15 - 80042de: 400b ands r3, r1 - 80042e0: 3b08 subs r3, #8 - 80042e2: 089b lsrs r3, r3, #2 - 80042e4: 3306 adds r3, #6 - 80042e6: 009b lsls r3, r3, #2 - 80042e8: 18d3 adds r3, r2, r3 - 80042ea: 3304 adds r3, #4 - 80042ec: 681b ldr r3, [r3, #0] - 80042ee: 1dfa adds r2, r7, #7 - 80042f0: 7812 ldrb r2, [r2, #0] - 80042f2: 0011 movs r1, r2 - 80042f4: 2203 movs r2, #3 - 80042f6: 400a ands r2, r1 - 80042f8: 00d2 lsls r2, r2, #3 - 80042fa: 21ff movs r1, #255 @ 0xff - 80042fc: 4091 lsls r1, r2 - 80042fe: 000a movs r2, r1 - 8004300: 43d2 mvns r2, r2 - 8004302: 401a ands r2, r3 - 8004304: 0011 movs r1, r2 + 80042e8: 4a1b ldr r2, [pc, #108] @ (8004358 <__NVIC_SetPriority+0xd8>) + 80042ea: 1dfb adds r3, r7, #7 + 80042ec: 781b ldrb r3, [r3, #0] + 80042ee: 0019 movs r1, r3 + 80042f0: 230f movs r3, #15 + 80042f2: 400b ands r3, r1 + 80042f4: 3b08 subs r3, #8 + 80042f6: 089b lsrs r3, r3, #2 + 80042f8: 3306 adds r3, #6 + 80042fa: 009b lsls r3, r3, #2 + 80042fc: 18d3 adds r3, r2, r3 + 80042fe: 3304 adds r3, #4 + 8004300: 681b ldr r3, [r3, #0] + 8004302: 1dfa adds r2, r7, #7 + 8004304: 7812 ldrb r2, [r2, #0] + 8004306: 0011 movs r1, r2 + 8004308: 2203 movs r2, #3 + 800430a: 400a ands r2, r1 + 800430c: 00d2 lsls r2, r2, #3 + 800430e: 21ff movs r1, #255 @ 0xff + 8004310: 4091 lsls r1, r2 + 8004312: 000a movs r2, r1 + 8004314: 43d2 mvns r2, r2 + 8004316: 401a ands r2, r3 + 8004318: 0011 movs r1, r2 (((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL) << _BIT_SHIFT(IRQn))); - 8004306: 683b ldr r3, [r7, #0] - 8004308: 019b lsls r3, r3, #6 - 800430a: 22ff movs r2, #255 @ 0xff - 800430c: 401a ands r2, r3 - 800430e: 1dfb adds r3, r7, #7 - 8004310: 781b ldrb r3, [r3, #0] - 8004312: 0018 movs r0, r3 - 8004314: 2303 movs r3, #3 - 8004316: 4003 ands r3, r0 - 8004318: 00db lsls r3, r3, #3 - 800431a: 409a lsls r2, r3 + 800431a: 683b ldr r3, [r7, #0] + 800431c: 019b lsls r3, r3, #6 + 800431e: 22ff movs r2, #255 @ 0xff + 8004320: 401a ands r2, r3 + 8004322: 1dfb adds r3, r7, #7 + 8004324: 781b ldrb r3, [r3, #0] + 8004326: 0018 movs r0, r3 + 8004328: 2303 movs r3, #3 + 800432a: 4003 ands r3, r0 + 800432c: 00db lsls r3, r3, #3 + 800432e: 409a lsls r2, r3 SCB->SHP[_SHP_IDX(IRQn)] = ((uint32_t)(SCB->SHP[_SHP_IDX(IRQn)] & ~(0xFFUL << _BIT_SHIFT(IRQn))) | - 800431c: 4809 ldr r0, [pc, #36] @ (8004344 <__NVIC_SetPriority+0xd8>) - 800431e: 1dfb adds r3, r7, #7 - 8004320: 781b ldrb r3, [r3, #0] - 8004322: 001c movs r4, r3 - 8004324: 230f movs r3, #15 - 8004326: 4023 ands r3, r4 - 8004328: 3b08 subs r3, #8 - 800432a: 089b lsrs r3, r3, #2 - 800432c: 430a orrs r2, r1 - 800432e: 3306 adds r3, #6 - 8004330: 009b lsls r3, r3, #2 - 8004332: 18c3 adds r3, r0, r3 - 8004334: 3304 adds r3, #4 - 8004336: 601a str r2, [r3, #0] + 8004330: 4809 ldr r0, [pc, #36] @ (8004358 <__NVIC_SetPriority+0xd8>) + 8004332: 1dfb adds r3, r7, #7 + 8004334: 781b ldrb r3, [r3, #0] + 8004336: 001c movs r4, r3 + 8004338: 230f movs r3, #15 + 800433a: 4023 ands r3, r4 + 800433c: 3b08 subs r3, #8 + 800433e: 089b lsrs r3, r3, #2 + 8004340: 430a orrs r2, r1 + 8004342: 3306 adds r3, #6 + 8004344: 009b lsls r3, r3, #2 + 8004346: 18c3 adds r3, r0, r3 + 8004348: 3304 adds r3, #4 + 800434a: 601a str r2, [r3, #0] } - 8004338: 46c0 nop @ (mov r8, r8) - 800433a: 46bd mov sp, r7 - 800433c: b003 add sp, #12 - 800433e: bd90 pop {r4, r7, pc} - 8004340: e000e100 .word 0xe000e100 - 8004344: e000ed00 .word 0xe000ed00 + 800434c: 46c0 nop @ (mov r8, r8) + 800434e: 46bd mov sp, r7 + 8004350: b003 add sp, #12 + 8004352: bd90 pop {r4, r7, pc} + 8004354: e000e100 .word 0xe000e100 + 8004358: e000ed00 .word 0xe000ed00 -08004348 : +0800435c : \note When the variable __Vendor_SysTickConfig is set to 1, then the function SysTick_Config is not included. In this case, the file device.h must contain a vendor-specific implementation of this function. */ __STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) { - 8004348: b580 push {r7, lr} - 800434a: b082 sub sp, #8 - 800434c: af00 add r7, sp, #0 - 800434e: 6078 str r0, [r7, #4] + 800435c: b580 push {r7, lr} + 800435e: b082 sub sp, #8 + 8004360: af00 add r7, sp, #0 + 8004362: 6078 str r0, [r7, #4] if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) - 8004350: 687b ldr r3, [r7, #4] - 8004352: 1e5a subs r2, r3, #1 - 8004354: 2380 movs r3, #128 @ 0x80 - 8004356: 045b lsls r3, r3, #17 - 8004358: 429a cmp r2, r3 - 800435a: d301 bcc.n 8004360 + 8004364: 687b ldr r3, [r7, #4] + 8004366: 1e5a subs r2, r3, #1 + 8004368: 2380 movs r3, #128 @ 0x80 + 800436a: 045b lsls r3, r3, #17 + 800436c: 429a cmp r2, r3 + 800436e: d301 bcc.n 8004374 { return (1UL); /* Reload value impossible */ - 800435c: 2301 movs r3, #1 - 800435e: e010 b.n 8004382 + 8004370: 2301 movs r3, #1 + 8004372: e010 b.n 8004396 } SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ - 8004360: 4b0a ldr r3, [pc, #40] @ (800438c ) - 8004362: 687a ldr r2, [r7, #4] - 8004364: 3a01 subs r2, #1 - 8004366: 605a str r2, [r3, #4] + 8004374: 4b0a ldr r3, [pc, #40] @ (80043a0 ) + 8004376: 687a ldr r2, [r7, #4] + 8004378: 3a01 subs r2, #1 + 800437a: 605a str r2, [r3, #4] NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ - 8004368: 2301 movs r3, #1 - 800436a: 425b negs r3, r3 - 800436c: 2103 movs r1, #3 - 800436e: 0018 movs r0, r3 - 8004370: f7ff ff7c bl 800426c <__NVIC_SetPriority> + 800437c: 2301 movs r3, #1 + 800437e: 425b negs r3, r3 + 8004380: 2103 movs r1, #3 + 8004382: 0018 movs r0, r3 + 8004384: f7ff ff7c bl 8004280 <__NVIC_SetPriority> SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ - 8004374: 4b05 ldr r3, [pc, #20] @ (800438c ) - 8004376: 2200 movs r2, #0 - 8004378: 609a str r2, [r3, #8] + 8004388: 4b05 ldr r3, [pc, #20] @ (80043a0 ) + 800438a: 2200 movs r2, #0 + 800438c: 609a str r2, [r3, #8] SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - 800437a: 4b04 ldr r3, [pc, #16] @ (800438c ) - 800437c: 2207 movs r2, #7 - 800437e: 601a str r2, [r3, #0] + 800438e: 4b04 ldr r3, [pc, #16] @ (80043a0 ) + 8004390: 2207 movs r2, #7 + 8004392: 601a str r2, [r3, #0] SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ return (0UL); /* Function successful */ - 8004380: 2300 movs r3, #0 + 8004394: 2300 movs r3, #0 } - 8004382: 0018 movs r0, r3 - 8004384: 46bd mov sp, r7 - 8004386: b002 add sp, #8 - 8004388: bd80 pop {r7, pc} - 800438a: 46c0 nop @ (mov r8, r8) - 800438c: e000e010 .word 0xe000e010 + 8004396: 0018 movs r0, r3 + 8004398: 46bd mov sp, r7 + 800439a: b002 add sp, #8 + 800439c: bd80 pop {r7, pc} + 800439e: 46c0 nop @ (mov r8, r8) + 80043a0: e000e010 .word 0xe000e010 -08004390 : +080043a4 : * with stm32f0xx devices, this parameter is a dummy value and it is ignored, because * no subpriority supported in Cortex M0 based products. * @retval None */ void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority) { - 8004390: b580 push {r7, lr} - 8004392: b084 sub sp, #16 - 8004394: af00 add r7, sp, #0 - 8004396: 60b9 str r1, [r7, #8] - 8004398: 607a str r2, [r7, #4] - 800439a: 210f movs r1, #15 - 800439c: 187b adds r3, r7, r1 - 800439e: 1c02 adds r2, r0, #0 - 80043a0: 701a strb r2, [r3, #0] + 80043a4: b580 push {r7, lr} + 80043a6: b084 sub sp, #16 + 80043a8: af00 add r7, sp, #0 + 80043aa: 60b9 str r1, [r7, #8] + 80043ac: 607a str r2, [r7, #4] + 80043ae: 210f movs r1, #15 + 80043b0: 187b adds r3, r7, r1 + 80043b2: 1c02 adds r2, r0, #0 + 80043b4: 701a strb r2, [r3, #0] /* Check the parameters */ assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority)); NVIC_SetPriority(IRQn,PreemptPriority); - 80043a2: 68ba ldr r2, [r7, #8] - 80043a4: 187b adds r3, r7, r1 - 80043a6: 781b ldrb r3, [r3, #0] - 80043a8: b25b sxtb r3, r3 - 80043aa: 0011 movs r1, r2 - 80043ac: 0018 movs r0, r3 - 80043ae: f7ff ff5d bl 800426c <__NVIC_SetPriority> + 80043b6: 68ba ldr r2, [r7, #8] + 80043b8: 187b adds r3, r7, r1 + 80043ba: 781b ldrb r3, [r3, #0] + 80043bc: b25b sxtb r3, r3 + 80043be: 0011 movs r1, r2 + 80043c0: 0018 movs r0, r3 + 80043c2: f7ff ff5d bl 8004280 <__NVIC_SetPriority> /* Prevent unused argument(s) compilation warning */ UNUSED(SubPriority); } - 80043b2: 46c0 nop @ (mov r8, r8) - 80043b4: 46bd mov sp, r7 - 80043b6: b004 add sp, #16 - 80043b8: bd80 pop {r7, pc} + 80043c6: 46c0 nop @ (mov r8, r8) + 80043c8: 46bd mov sp, r7 + 80043ca: b004 add sp, #16 + 80043cc: bd80 pop {r7, pc} -080043ba : +080043ce : * @param TicksNumb Specifies the ticks Number of ticks between two interrupts. * @retval status: - 0 Function succeeded. * - 1 Function failed. */ uint32_t HAL_SYSTICK_Config(uint32_t TicksNumb) { - 80043ba: b580 push {r7, lr} - 80043bc: b082 sub sp, #8 - 80043be: af00 add r7, sp, #0 - 80043c0: 6078 str r0, [r7, #4] + 80043ce: b580 push {r7, lr} + 80043d0: b082 sub sp, #8 + 80043d2: af00 add r7, sp, #0 + 80043d4: 6078 str r0, [r7, #4] return SysTick_Config(TicksNumb); - 80043c2: 687b ldr r3, [r7, #4] - 80043c4: 0018 movs r0, r3 - 80043c6: f7ff ffbf bl 8004348 - 80043ca: 0003 movs r3, r0 + 80043d6: 687b ldr r3, [r7, #4] + 80043d8: 0018 movs r0, r3 + 80043da: f7ff ffbf bl 800435c + 80043de: 0003 movs r3, r0 } - 80043cc: 0018 movs r0, r3 - 80043ce: 46bd mov sp, r7 - 80043d0: b002 add sp, #8 - 80043d2: bd80 pop {r7, pc} + 80043e0: 0018 movs r0, r3 + 80043e2: 46bd mov sp, r7 + 80043e4: b002 add sp, #8 + 80043e6: bd80 pop {r7, pc} -080043d4 : +080043e8 : * @param GPIO_Init pointer to a GPIO_InitTypeDef structure that contains * the configuration information for the specified GPIO peripheral. * @retval None */ void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init) { - 80043d4: b580 push {r7, lr} - 80043d6: b086 sub sp, #24 - 80043d8: af00 add r7, sp, #0 - 80043da: 6078 str r0, [r7, #4] - 80043dc: 6039 str r1, [r7, #0] + 80043e8: b580 push {r7, lr} + 80043ea: b086 sub sp, #24 + 80043ec: af00 add r7, sp, #0 + 80043ee: 6078 str r0, [r7, #4] + 80043f0: 6039 str r1, [r7, #0] uint32_t position = 0x00u; - 80043de: 2300 movs r3, #0 - 80043e0: 617b str r3, [r7, #20] + 80043f2: 2300 movs r3, #0 + 80043f4: 617b str r3, [r7, #20] assert_param(IS_GPIO_ALL_INSTANCE(GPIOx)); assert_param(IS_GPIO_PIN(GPIO_Init->Pin)); assert_param(IS_GPIO_MODE(GPIO_Init->Mode)); /* Configure the port pins */ while (((GPIO_Init->Pin) >> position) != 0x00u) - 80043e2: e149 b.n 8004678 + 80043f6: e149 b.n 800468c { /* Get current io position */ iocurrent = (GPIO_Init->Pin) & (1uL << position); - 80043e4: 683b ldr r3, [r7, #0] - 80043e6: 681b ldr r3, [r3, #0] - 80043e8: 2101 movs r1, #1 - 80043ea: 697a ldr r2, [r7, #20] - 80043ec: 4091 lsls r1, r2 - 80043ee: 000a movs r2, r1 - 80043f0: 4013 ands r3, r2 - 80043f2: 60fb str r3, [r7, #12] + 80043f8: 683b ldr r3, [r7, #0] + 80043fa: 681b ldr r3, [r3, #0] + 80043fc: 2101 movs r1, #1 + 80043fe: 697a ldr r2, [r7, #20] + 8004400: 4091 lsls r1, r2 + 8004402: 000a movs r2, r1 + 8004404: 4013 ands r3, r2 + 8004406: 60fb str r3, [r7, #12] if (iocurrent != 0x00u) - 80043f4: 68fb ldr r3, [r7, #12] - 80043f6: 2b00 cmp r3, #0 - 80043f8: d100 bne.n 80043fc - 80043fa: e13a b.n 8004672 + 8004408: 68fb ldr r3, [r7, #12] + 800440a: 2b00 cmp r3, #0 + 800440c: d100 bne.n 8004410 + 800440e: e13a b.n 8004686 { /*--------------------- GPIO Mode Configuration ------------------------*/ /* In case of Output or Alternate function mode selection */ if(((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) || - 80043fc: 683b ldr r3, [r7, #0] - 80043fe: 685b ldr r3, [r3, #4] - 8004400: 2203 movs r2, #3 - 8004402: 4013 ands r3, r2 - 8004404: 2b01 cmp r3, #1 - 8004406: d005 beq.n 8004414 + 8004410: 683b ldr r3, [r7, #0] + 8004412: 685b ldr r3, [r3, #4] + 8004414: 2203 movs r2, #3 + 8004416: 4013 ands r3, r2 + 8004418: 2b01 cmp r3, #1 + 800441a: d005 beq.n 8004428 ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF)) - 8004408: 683b ldr r3, [r7, #0] - 800440a: 685b ldr r3, [r3, #4] - 800440c: 2203 movs r2, #3 - 800440e: 4013 ands r3, r2 + 800441c: 683b ldr r3, [r7, #0] + 800441e: 685b ldr r3, [r3, #4] + 8004420: 2203 movs r2, #3 + 8004422: 4013 ands r3, r2 if(((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) || - 8004410: 2b02 cmp r3, #2 - 8004412: d130 bne.n 8004476 + 8004424: 2b02 cmp r3, #2 + 8004426: d130 bne.n 800448a { /* Check the Speed parameter */ assert_param(IS_GPIO_SPEED(GPIO_Init->Speed)); /* Configure the IO Speed */ temp = GPIOx->OSPEEDR; - 8004414: 687b ldr r3, [r7, #4] - 8004416: 689b ldr r3, [r3, #8] - 8004418: 613b str r3, [r7, #16] + 8004428: 687b ldr r3, [r7, #4] + 800442a: 689b ldr r3, [r3, #8] + 800442c: 613b str r3, [r7, #16] temp &= ~(GPIO_OSPEEDER_OSPEEDR0 << (position * 2u)); - 800441a: 697b ldr r3, [r7, #20] - 800441c: 005b lsls r3, r3, #1 - 800441e: 2203 movs r2, #3 - 8004420: 409a lsls r2, r3 - 8004422: 0013 movs r3, r2 - 8004424: 43da mvns r2, r3 - 8004426: 693b ldr r3, [r7, #16] - 8004428: 4013 ands r3, r2 - 800442a: 613b str r3, [r7, #16] - temp |= (GPIO_Init->Speed << (position * 2u)); - 800442c: 683b ldr r3, [r7, #0] - 800442e: 68da ldr r2, [r3, #12] - 8004430: 697b ldr r3, [r7, #20] - 8004432: 005b lsls r3, r3, #1 + 800442e: 697b ldr r3, [r7, #20] + 8004430: 005b lsls r3, r3, #1 + 8004432: 2203 movs r2, #3 8004434: 409a lsls r2, r3 8004436: 0013 movs r3, r2 - 8004438: 693a ldr r2, [r7, #16] - 800443a: 4313 orrs r3, r2 - 800443c: 613b str r3, [r7, #16] + 8004438: 43da mvns r2, r3 + 800443a: 693b ldr r3, [r7, #16] + 800443c: 4013 ands r3, r2 + 800443e: 613b str r3, [r7, #16] + temp |= (GPIO_Init->Speed << (position * 2u)); + 8004440: 683b ldr r3, [r7, #0] + 8004442: 68da ldr r2, [r3, #12] + 8004444: 697b ldr r3, [r7, #20] + 8004446: 005b lsls r3, r3, #1 + 8004448: 409a lsls r2, r3 + 800444a: 0013 movs r3, r2 + 800444c: 693a ldr r2, [r7, #16] + 800444e: 4313 orrs r3, r2 + 8004450: 613b str r3, [r7, #16] GPIOx->OSPEEDR = temp; - 800443e: 687b ldr r3, [r7, #4] - 8004440: 693a ldr r2, [r7, #16] - 8004442: 609a str r2, [r3, #8] + 8004452: 687b ldr r3, [r7, #4] + 8004454: 693a ldr r2, [r7, #16] + 8004456: 609a str r2, [r3, #8] /* Configure the IO Output Type */ temp = GPIOx->OTYPER; - 8004444: 687b ldr r3, [r7, #4] - 8004446: 685b ldr r3, [r3, #4] - 8004448: 613b str r3, [r7, #16] + 8004458: 687b ldr r3, [r7, #4] + 800445a: 685b ldr r3, [r3, #4] + 800445c: 613b str r3, [r7, #16] temp &= ~(GPIO_OTYPER_OT_0 << position) ; - 800444a: 2201 movs r2, #1 - 800444c: 697b ldr r3, [r7, #20] - 800444e: 409a lsls r2, r3 - 8004450: 0013 movs r3, r2 - 8004452: 43da mvns r2, r3 - 8004454: 693b ldr r3, [r7, #16] - 8004456: 4013 ands r3, r2 - 8004458: 613b str r3, [r7, #16] + 800445e: 2201 movs r2, #1 + 8004460: 697b ldr r3, [r7, #20] + 8004462: 409a lsls r2, r3 + 8004464: 0013 movs r3, r2 + 8004466: 43da mvns r2, r3 + 8004468: 693b ldr r3, [r7, #16] + 800446a: 4013 ands r3, r2 + 800446c: 613b str r3, [r7, #16] temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); - 800445a: 683b ldr r3, [r7, #0] - 800445c: 685b ldr r3, [r3, #4] - 800445e: 091b lsrs r3, r3, #4 - 8004460: 2201 movs r2, #1 - 8004462: 401a ands r2, r3 - 8004464: 697b ldr r3, [r7, #20] - 8004466: 409a lsls r2, r3 - 8004468: 0013 movs r3, r2 - 800446a: 693a ldr r2, [r7, #16] - 800446c: 4313 orrs r3, r2 - 800446e: 613b str r3, [r7, #16] + 800446e: 683b ldr r3, [r7, #0] + 8004470: 685b ldr r3, [r3, #4] + 8004472: 091b lsrs r3, r3, #4 + 8004474: 2201 movs r2, #1 + 8004476: 401a ands r2, r3 + 8004478: 697b ldr r3, [r7, #20] + 800447a: 409a lsls r2, r3 + 800447c: 0013 movs r3, r2 + 800447e: 693a ldr r2, [r7, #16] + 8004480: 4313 orrs r3, r2 + 8004482: 613b str r3, [r7, #16] GPIOx->OTYPER = temp; - 8004470: 687b ldr r3, [r7, #4] - 8004472: 693a ldr r2, [r7, #16] - 8004474: 605a str r2, [r3, #4] + 8004484: 687b ldr r3, [r7, #4] + 8004486: 693a ldr r2, [r7, #16] + 8004488: 605a str r2, [r3, #4] } if((GPIO_Init->Mode & GPIO_MODE) != MODE_ANALOG) - 8004476: 683b ldr r3, [r7, #0] - 8004478: 685b ldr r3, [r3, #4] - 800447a: 2203 movs r2, #3 - 800447c: 4013 ands r3, r2 - 800447e: 2b03 cmp r3, #3 - 8004480: d017 beq.n 80044b2 + 800448a: 683b ldr r3, [r7, #0] + 800448c: 685b ldr r3, [r3, #4] + 800448e: 2203 movs r2, #3 + 8004490: 4013 ands r3, r2 + 8004492: 2b03 cmp r3, #3 + 8004494: d017 beq.n 80044c6 { /* Check the Pull parameter */ assert_param(IS_GPIO_PULL(GPIO_Init->Pull)); /* Activate the Pull-up or Pull down resistor for the current IO */ temp = GPIOx->PUPDR; - 8004482: 687b ldr r3, [r7, #4] - 8004484: 68db ldr r3, [r3, #12] - 8004486: 613b str r3, [r7, #16] + 8004496: 687b ldr r3, [r7, #4] + 8004498: 68db ldr r3, [r3, #12] + 800449a: 613b str r3, [r7, #16] temp &= ~(GPIO_PUPDR_PUPDR0 << (position * 2u)); - 8004488: 697b ldr r3, [r7, #20] - 800448a: 005b lsls r3, r3, #1 - 800448c: 2203 movs r2, #3 - 800448e: 409a lsls r2, r3 - 8004490: 0013 movs r3, r2 - 8004492: 43da mvns r2, r3 - 8004494: 693b ldr r3, [r7, #16] - 8004496: 4013 ands r3, r2 - 8004498: 613b str r3, [r7, #16] - temp |= ((GPIO_Init->Pull) << (position * 2u)); - 800449a: 683b ldr r3, [r7, #0] - 800449c: 689a ldr r2, [r3, #8] - 800449e: 697b ldr r3, [r7, #20] - 80044a0: 005b lsls r3, r3, #1 + 800449c: 697b ldr r3, [r7, #20] + 800449e: 005b lsls r3, r3, #1 + 80044a0: 2203 movs r2, #3 80044a2: 409a lsls r2, r3 80044a4: 0013 movs r3, r2 - 80044a6: 693a ldr r2, [r7, #16] - 80044a8: 4313 orrs r3, r2 - 80044aa: 613b str r3, [r7, #16] + 80044a6: 43da mvns r2, r3 + 80044a8: 693b ldr r3, [r7, #16] + 80044aa: 4013 ands r3, r2 + 80044ac: 613b str r3, [r7, #16] + temp |= ((GPIO_Init->Pull) << (position * 2u)); + 80044ae: 683b ldr r3, [r7, #0] + 80044b0: 689a ldr r2, [r3, #8] + 80044b2: 697b ldr r3, [r7, #20] + 80044b4: 005b lsls r3, r3, #1 + 80044b6: 409a lsls r2, r3 + 80044b8: 0013 movs r3, r2 + 80044ba: 693a ldr r2, [r7, #16] + 80044bc: 4313 orrs r3, r2 + 80044be: 613b str r3, [r7, #16] GPIOx->PUPDR = temp; - 80044ac: 687b ldr r3, [r7, #4] - 80044ae: 693a ldr r2, [r7, #16] - 80044b0: 60da str r2, [r3, #12] + 80044c0: 687b ldr r3, [r7, #4] + 80044c2: 693a ldr r2, [r7, #16] + 80044c4: 60da str r2, [r3, #12] } /* In case of Alternate function mode selection */ if((GPIO_Init->Mode & GPIO_MODE) == MODE_AF) - 80044b2: 683b ldr r3, [r7, #0] - 80044b4: 685b ldr r3, [r3, #4] - 80044b6: 2203 movs r2, #3 - 80044b8: 4013 ands r3, r2 - 80044ba: 2b02 cmp r3, #2 - 80044bc: d123 bne.n 8004506 + 80044c6: 683b ldr r3, [r7, #0] + 80044c8: 685b ldr r3, [r3, #4] + 80044ca: 2203 movs r2, #3 + 80044cc: 4013 ands r3, r2 + 80044ce: 2b02 cmp r3, #2 + 80044d0: d123 bne.n 800451a /* Check the Alternate function parameters */ assert_param(IS_GPIO_AF_INSTANCE(GPIOx)); assert_param(IS_GPIO_AF(GPIO_Init->Alternate)); /* Configure Alternate function mapped with the current IO */ temp = GPIOx->AFR[position >> 3u]; - 80044be: 697b ldr r3, [r7, #20] - 80044c0: 08da lsrs r2, r3, #3 - 80044c2: 687b ldr r3, [r7, #4] - 80044c4: 3208 adds r2, #8 - 80044c6: 0092 lsls r2, r2, #2 - 80044c8: 58d3 ldr r3, [r2, r3] - 80044ca: 613b str r3, [r7, #16] + 80044d2: 697b ldr r3, [r7, #20] + 80044d4: 08da lsrs r2, r3, #3 + 80044d6: 687b ldr r3, [r7, #4] + 80044d8: 3208 adds r2, #8 + 80044da: 0092 lsls r2, r2, #2 + 80044dc: 58d3 ldr r3, [r2, r3] + 80044de: 613b str r3, [r7, #16] temp &= ~(0xFu << ((position & 0x07u) * 4u)); - 80044cc: 697b ldr r3, [r7, #20] - 80044ce: 2207 movs r2, #7 - 80044d0: 4013 ands r3, r2 - 80044d2: 009b lsls r3, r3, #2 - 80044d4: 220f movs r2, #15 - 80044d6: 409a lsls r2, r3 - 80044d8: 0013 movs r3, r2 - 80044da: 43da mvns r2, r3 - 80044dc: 693b ldr r3, [r7, #16] - 80044de: 4013 ands r3, r2 - 80044e0: 613b str r3, [r7, #16] + 80044e0: 697b ldr r3, [r7, #20] + 80044e2: 2207 movs r2, #7 + 80044e4: 4013 ands r3, r2 + 80044e6: 009b lsls r3, r3, #2 + 80044e8: 220f movs r2, #15 + 80044ea: 409a lsls r2, r3 + 80044ec: 0013 movs r3, r2 + 80044ee: 43da mvns r2, r3 + 80044f0: 693b ldr r3, [r7, #16] + 80044f2: 4013 ands r3, r2 + 80044f4: 613b str r3, [r7, #16] temp |= ((GPIO_Init->Alternate) << ((position & 0x07u) * 4u)); - 80044e2: 683b ldr r3, [r7, #0] - 80044e4: 691a ldr r2, [r3, #16] - 80044e6: 697b ldr r3, [r7, #20] - 80044e8: 2107 movs r1, #7 - 80044ea: 400b ands r3, r1 - 80044ec: 009b lsls r3, r3, #2 - 80044ee: 409a lsls r2, r3 - 80044f0: 0013 movs r3, r2 - 80044f2: 693a ldr r2, [r7, #16] - 80044f4: 4313 orrs r3, r2 - 80044f6: 613b str r3, [r7, #16] + 80044f6: 683b ldr r3, [r7, #0] + 80044f8: 691a ldr r2, [r3, #16] + 80044fa: 697b ldr r3, [r7, #20] + 80044fc: 2107 movs r1, #7 + 80044fe: 400b ands r3, r1 + 8004500: 009b lsls r3, r3, #2 + 8004502: 409a lsls r2, r3 + 8004504: 0013 movs r3, r2 + 8004506: 693a ldr r2, [r7, #16] + 8004508: 4313 orrs r3, r2 + 800450a: 613b str r3, [r7, #16] GPIOx->AFR[position >> 3u] = temp; - 80044f8: 697b ldr r3, [r7, #20] - 80044fa: 08da lsrs r2, r3, #3 - 80044fc: 687b ldr r3, [r7, #4] - 80044fe: 3208 adds r2, #8 - 8004500: 0092 lsls r2, r2, #2 - 8004502: 6939 ldr r1, [r7, #16] - 8004504: 50d1 str r1, [r2, r3] + 800450c: 697b ldr r3, [r7, #20] + 800450e: 08da lsrs r2, r3, #3 + 8004510: 687b ldr r3, [r7, #4] + 8004512: 3208 adds r2, #8 + 8004514: 0092 lsls r2, r2, #2 + 8004516: 6939 ldr r1, [r7, #16] + 8004518: 50d1 str r1, [r2, r3] } /* Configure IO Direction mode (Input, Output, Alternate or Analog) */ temp = GPIOx->MODER; - 8004506: 687b ldr r3, [r7, #4] - 8004508: 681b ldr r3, [r3, #0] - 800450a: 613b str r3, [r7, #16] + 800451a: 687b ldr r3, [r7, #4] + 800451c: 681b ldr r3, [r3, #0] + 800451e: 613b str r3, [r7, #16] temp &= ~(GPIO_MODER_MODER0 << (position * 2u)); - 800450c: 697b ldr r3, [r7, #20] - 800450e: 005b lsls r3, r3, #1 - 8004510: 2203 movs r2, #3 - 8004512: 409a lsls r2, r3 - 8004514: 0013 movs r3, r2 - 8004516: 43da mvns r2, r3 - 8004518: 693b ldr r3, [r7, #16] - 800451a: 4013 ands r3, r2 - 800451c: 613b str r3, [r7, #16] + 8004520: 697b ldr r3, [r7, #20] + 8004522: 005b lsls r3, r3, #1 + 8004524: 2203 movs r2, #3 + 8004526: 409a lsls r2, r3 + 8004528: 0013 movs r3, r2 + 800452a: 43da mvns r2, r3 + 800452c: 693b ldr r3, [r7, #16] + 800452e: 4013 ands r3, r2 + 8004530: 613b str r3, [r7, #16] temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2u)); - 800451e: 683b ldr r3, [r7, #0] - 8004520: 685b ldr r3, [r3, #4] - 8004522: 2203 movs r2, #3 - 8004524: 401a ands r2, r3 - 8004526: 697b ldr r3, [r7, #20] - 8004528: 005b lsls r3, r3, #1 - 800452a: 409a lsls r2, r3 - 800452c: 0013 movs r3, r2 - 800452e: 693a ldr r2, [r7, #16] - 8004530: 4313 orrs r3, r2 - 8004532: 613b str r3, [r7, #16] + 8004532: 683b ldr r3, [r7, #0] + 8004534: 685b ldr r3, [r3, #4] + 8004536: 2203 movs r2, #3 + 8004538: 401a ands r2, r3 + 800453a: 697b ldr r3, [r7, #20] + 800453c: 005b lsls r3, r3, #1 + 800453e: 409a lsls r2, r3 + 8004540: 0013 movs r3, r2 + 8004542: 693a ldr r2, [r7, #16] + 8004544: 4313 orrs r3, r2 + 8004546: 613b str r3, [r7, #16] GPIOx->MODER = temp; - 8004534: 687b ldr r3, [r7, #4] - 8004536: 693a ldr r2, [r7, #16] - 8004538: 601a str r2, [r3, #0] + 8004548: 687b ldr r3, [r7, #4] + 800454a: 693a ldr r2, [r7, #16] + 800454c: 601a str r2, [r3, #0] /*--------------------- EXTI Mode Configuration ------------------------*/ /* Configure the External Interrupt or event for the current IO */ if((GPIO_Init->Mode & EXTI_MODE) != 0x00u) - 800453a: 683b ldr r3, [r7, #0] - 800453c: 685a ldr r2, [r3, #4] - 800453e: 23c0 movs r3, #192 @ 0xc0 - 8004540: 029b lsls r3, r3, #10 - 8004542: 4013 ands r3, r2 - 8004544: d100 bne.n 8004548 - 8004546: e094 b.n 8004672 + 800454e: 683b ldr r3, [r7, #0] + 8004550: 685a ldr r2, [r3, #4] + 8004552: 23c0 movs r3, #192 @ 0xc0 + 8004554: 029b lsls r3, r3, #10 + 8004556: 4013 ands r3, r2 + 8004558: d100 bne.n 800455c + 800455a: e094 b.n 8004686 { /* Enable SYSCFG Clock */ __HAL_RCC_SYSCFG_CLK_ENABLE(); - 8004548: 4b51 ldr r3, [pc, #324] @ (8004690 ) - 800454a: 699a ldr r2, [r3, #24] - 800454c: 4b50 ldr r3, [pc, #320] @ (8004690 ) - 800454e: 2101 movs r1, #1 - 8004550: 430a orrs r2, r1 - 8004552: 619a str r2, [r3, #24] - 8004554: 4b4e ldr r3, [pc, #312] @ (8004690 ) - 8004556: 699b ldr r3, [r3, #24] - 8004558: 2201 movs r2, #1 - 800455a: 4013 ands r3, r2 - 800455c: 60bb str r3, [r7, #8] - 800455e: 68bb ldr r3, [r7, #8] + 800455c: 4b51 ldr r3, [pc, #324] @ (80046a4 ) + 800455e: 699a ldr r2, [r3, #24] + 8004560: 4b50 ldr r3, [pc, #320] @ (80046a4 ) + 8004562: 2101 movs r1, #1 + 8004564: 430a orrs r2, r1 + 8004566: 619a str r2, [r3, #24] + 8004568: 4b4e ldr r3, [pc, #312] @ (80046a4 ) + 800456a: 699b ldr r3, [r3, #24] + 800456c: 2201 movs r2, #1 + 800456e: 4013 ands r3, r2 + 8004570: 60bb str r3, [r7, #8] + 8004572: 68bb ldr r3, [r7, #8] temp = SYSCFG->EXTICR[position >> 2u]; - 8004560: 4a4c ldr r2, [pc, #304] @ (8004694 ) - 8004562: 697b ldr r3, [r7, #20] - 8004564: 089b lsrs r3, r3, #2 - 8004566: 3302 adds r3, #2 - 8004568: 009b lsls r3, r3, #2 - 800456a: 589b ldr r3, [r3, r2] - 800456c: 613b str r3, [r7, #16] + 8004574: 4a4c ldr r2, [pc, #304] @ (80046a8 ) + 8004576: 697b ldr r3, [r7, #20] + 8004578: 089b lsrs r3, r3, #2 + 800457a: 3302 adds r3, #2 + 800457c: 009b lsls r3, r3, #2 + 800457e: 589b ldr r3, [r3, r2] + 8004580: 613b str r3, [r7, #16] temp &= ~(0x0FuL << (4u * (position & 0x03u))); - 800456e: 697b ldr r3, [r7, #20] - 8004570: 2203 movs r2, #3 - 8004572: 4013 ands r3, r2 - 8004574: 009b lsls r3, r3, #2 - 8004576: 220f movs r2, #15 - 8004578: 409a lsls r2, r3 - 800457a: 0013 movs r3, r2 - 800457c: 43da mvns r2, r3 - 800457e: 693b ldr r3, [r7, #16] - 8004580: 4013 ands r3, r2 - 8004582: 613b str r3, [r7, #16] + 8004582: 697b ldr r3, [r7, #20] + 8004584: 2203 movs r2, #3 + 8004586: 4013 ands r3, r2 + 8004588: 009b lsls r3, r3, #2 + 800458a: 220f movs r2, #15 + 800458c: 409a lsls r2, r3 + 800458e: 0013 movs r3, r2 + 8004590: 43da mvns r2, r3 + 8004592: 693b ldr r3, [r7, #16] + 8004594: 4013 ands r3, r2 + 8004596: 613b str r3, [r7, #16] temp |= (GPIO_GET_INDEX(GPIOx) << (4u * (position & 0x03u))); - 8004584: 687a ldr r2, [r7, #4] - 8004586: 2390 movs r3, #144 @ 0x90 - 8004588: 05db lsls r3, r3, #23 - 800458a: 429a cmp r2, r3 - 800458c: d00d beq.n 80045aa - 800458e: 687b ldr r3, [r7, #4] - 8004590: 4a41 ldr r2, [pc, #260] @ (8004698 ) - 8004592: 4293 cmp r3, r2 - 8004594: d007 beq.n 80045a6 - 8004596: 687b ldr r3, [r7, #4] - 8004598: 4a40 ldr r2, [pc, #256] @ (800469c ) - 800459a: 4293 cmp r3, r2 - 800459c: d101 bne.n 80045a2 - 800459e: 2302 movs r3, #2 - 80045a0: e004 b.n 80045ac - 80045a2: 2305 movs r3, #5 - 80045a4: e002 b.n 80045ac - 80045a6: 2301 movs r3, #1 - 80045a8: e000 b.n 80045ac - 80045aa: 2300 movs r3, #0 - 80045ac: 697a ldr r2, [r7, #20] - 80045ae: 2103 movs r1, #3 - 80045b0: 400a ands r2, r1 - 80045b2: 0092 lsls r2, r2, #2 - 80045b4: 4093 lsls r3, r2 - 80045b6: 693a ldr r2, [r7, #16] - 80045b8: 4313 orrs r3, r2 - 80045ba: 613b str r3, [r7, #16] + 8004598: 687a ldr r2, [r7, #4] + 800459a: 2390 movs r3, #144 @ 0x90 + 800459c: 05db lsls r3, r3, #23 + 800459e: 429a cmp r2, r3 + 80045a0: d00d beq.n 80045be + 80045a2: 687b ldr r3, [r7, #4] + 80045a4: 4a41 ldr r2, [pc, #260] @ (80046ac ) + 80045a6: 4293 cmp r3, r2 + 80045a8: d007 beq.n 80045ba + 80045aa: 687b ldr r3, [r7, #4] + 80045ac: 4a40 ldr r2, [pc, #256] @ (80046b0 ) + 80045ae: 4293 cmp r3, r2 + 80045b0: d101 bne.n 80045b6 + 80045b2: 2302 movs r3, #2 + 80045b4: e004 b.n 80045c0 + 80045b6: 2305 movs r3, #5 + 80045b8: e002 b.n 80045c0 + 80045ba: 2301 movs r3, #1 + 80045bc: e000 b.n 80045c0 + 80045be: 2300 movs r3, #0 + 80045c0: 697a ldr r2, [r7, #20] + 80045c2: 2103 movs r1, #3 + 80045c4: 400a ands r2, r1 + 80045c6: 0092 lsls r2, r2, #2 + 80045c8: 4093 lsls r3, r2 + 80045ca: 693a ldr r2, [r7, #16] + 80045cc: 4313 orrs r3, r2 + 80045ce: 613b str r3, [r7, #16] SYSCFG->EXTICR[position >> 2u] = temp; - 80045bc: 4935 ldr r1, [pc, #212] @ (8004694 ) - 80045be: 697b ldr r3, [r7, #20] - 80045c0: 089b lsrs r3, r3, #2 - 80045c2: 3302 adds r3, #2 - 80045c4: 009b lsls r3, r3, #2 - 80045c6: 693a ldr r2, [r7, #16] - 80045c8: 505a str r2, [r3, r1] + 80045d0: 4935 ldr r1, [pc, #212] @ (80046a8 ) + 80045d2: 697b ldr r3, [r7, #20] + 80045d4: 089b lsrs r3, r3, #2 + 80045d6: 3302 adds r3, #2 + 80045d8: 009b lsls r3, r3, #2 + 80045da: 693a ldr r2, [r7, #16] + 80045dc: 505a str r2, [r3, r1] /* Clear Rising Falling edge configuration */ temp = EXTI->RTSR; - 80045ca: 4b35 ldr r3, [pc, #212] @ (80046a0 ) - 80045cc: 689b ldr r3, [r3, #8] - 80045ce: 613b str r3, [r7, #16] + 80045de: 4b35 ldr r3, [pc, #212] @ (80046b4 ) + 80045e0: 689b ldr r3, [r3, #8] + 80045e2: 613b str r3, [r7, #16] temp &= ~(iocurrent); - 80045d0: 68fb ldr r3, [r7, #12] - 80045d2: 43da mvns r2, r3 - 80045d4: 693b ldr r3, [r7, #16] - 80045d6: 4013 ands r3, r2 - 80045d8: 613b str r3, [r7, #16] + 80045e4: 68fb ldr r3, [r7, #12] + 80045e6: 43da mvns r2, r3 + 80045e8: 693b ldr r3, [r7, #16] + 80045ea: 4013 ands r3, r2 + 80045ec: 613b str r3, [r7, #16] if((GPIO_Init->Mode & TRIGGER_RISING) != 0x00u) - 80045da: 683b ldr r3, [r7, #0] - 80045dc: 685a ldr r2, [r3, #4] - 80045de: 2380 movs r3, #128 @ 0x80 - 80045e0: 035b lsls r3, r3, #13 - 80045e2: 4013 ands r3, r2 - 80045e4: d003 beq.n 80045ee + 80045ee: 683b ldr r3, [r7, #0] + 80045f0: 685a ldr r2, [r3, #4] + 80045f2: 2380 movs r3, #128 @ 0x80 + 80045f4: 035b lsls r3, r3, #13 + 80045f6: 4013 ands r3, r2 + 80045f8: d003 beq.n 8004602 { temp |= iocurrent; - 80045e6: 693a ldr r2, [r7, #16] - 80045e8: 68fb ldr r3, [r7, #12] - 80045ea: 4313 orrs r3, r2 - 80045ec: 613b str r3, [r7, #16] + 80045fa: 693a ldr r2, [r7, #16] + 80045fc: 68fb ldr r3, [r7, #12] + 80045fe: 4313 orrs r3, r2 + 8004600: 613b str r3, [r7, #16] } EXTI->RTSR = temp; - 80045ee: 4b2c ldr r3, [pc, #176] @ (80046a0 ) - 80045f0: 693a ldr r2, [r7, #16] - 80045f2: 609a str r2, [r3, #8] + 8004602: 4b2c ldr r3, [pc, #176] @ (80046b4 ) + 8004604: 693a ldr r2, [r7, #16] + 8004606: 609a str r2, [r3, #8] temp = EXTI->FTSR; - 80045f4: 4b2a ldr r3, [pc, #168] @ (80046a0 ) - 80045f6: 68db ldr r3, [r3, #12] - 80045f8: 613b str r3, [r7, #16] + 8004608: 4b2a ldr r3, [pc, #168] @ (80046b4 ) + 800460a: 68db ldr r3, [r3, #12] + 800460c: 613b str r3, [r7, #16] temp &= ~(iocurrent); - 80045fa: 68fb ldr r3, [r7, #12] - 80045fc: 43da mvns r2, r3 - 80045fe: 693b ldr r3, [r7, #16] - 8004600: 4013 ands r3, r2 - 8004602: 613b str r3, [r7, #16] + 800460e: 68fb ldr r3, [r7, #12] + 8004610: 43da mvns r2, r3 + 8004612: 693b ldr r3, [r7, #16] + 8004614: 4013 ands r3, r2 + 8004616: 613b str r3, [r7, #16] if((GPIO_Init->Mode & TRIGGER_FALLING) != 0x00u) - 8004604: 683b ldr r3, [r7, #0] - 8004606: 685a ldr r2, [r3, #4] - 8004608: 2380 movs r3, #128 @ 0x80 - 800460a: 039b lsls r3, r3, #14 - 800460c: 4013 ands r3, r2 - 800460e: d003 beq.n 8004618 + 8004618: 683b ldr r3, [r7, #0] + 800461a: 685a ldr r2, [r3, #4] + 800461c: 2380 movs r3, #128 @ 0x80 + 800461e: 039b lsls r3, r3, #14 + 8004620: 4013 ands r3, r2 + 8004622: d003 beq.n 800462c { temp |= iocurrent; - 8004610: 693a ldr r2, [r7, #16] - 8004612: 68fb ldr r3, [r7, #12] - 8004614: 4313 orrs r3, r2 - 8004616: 613b str r3, [r7, #16] + 8004624: 693a ldr r2, [r7, #16] + 8004626: 68fb ldr r3, [r7, #12] + 8004628: 4313 orrs r3, r2 + 800462a: 613b str r3, [r7, #16] } EXTI->FTSR = temp; - 8004618: 4b21 ldr r3, [pc, #132] @ (80046a0 ) - 800461a: 693a ldr r2, [r7, #16] - 800461c: 60da str r2, [r3, #12] + 800462c: 4b21 ldr r3, [pc, #132] @ (80046b4 ) + 800462e: 693a ldr r2, [r7, #16] + 8004630: 60da str r2, [r3, #12] /* Clear EXTI line configuration */ temp = EXTI->EMR; - 800461e: 4b20 ldr r3, [pc, #128] @ (80046a0 ) - 8004620: 685b ldr r3, [r3, #4] - 8004622: 613b str r3, [r7, #16] + 8004632: 4b20 ldr r3, [pc, #128] @ (80046b4 ) + 8004634: 685b ldr r3, [r3, #4] + 8004636: 613b str r3, [r7, #16] temp &= ~(iocurrent); - 8004624: 68fb ldr r3, [r7, #12] - 8004626: 43da mvns r2, r3 - 8004628: 693b ldr r3, [r7, #16] - 800462a: 4013 ands r3, r2 - 800462c: 613b str r3, [r7, #16] + 8004638: 68fb ldr r3, [r7, #12] + 800463a: 43da mvns r2, r3 + 800463c: 693b ldr r3, [r7, #16] + 800463e: 4013 ands r3, r2 + 8004640: 613b str r3, [r7, #16] if((GPIO_Init->Mode & EXTI_EVT) != 0x00u) - 800462e: 683b ldr r3, [r7, #0] - 8004630: 685a ldr r2, [r3, #4] - 8004632: 2380 movs r3, #128 @ 0x80 - 8004634: 029b lsls r3, r3, #10 - 8004636: 4013 ands r3, r2 - 8004638: d003 beq.n 8004642 + 8004642: 683b ldr r3, [r7, #0] + 8004644: 685a ldr r2, [r3, #4] + 8004646: 2380 movs r3, #128 @ 0x80 + 8004648: 029b lsls r3, r3, #10 + 800464a: 4013 ands r3, r2 + 800464c: d003 beq.n 8004656 { temp |= iocurrent; - 800463a: 693a ldr r2, [r7, #16] - 800463c: 68fb ldr r3, [r7, #12] - 800463e: 4313 orrs r3, r2 - 8004640: 613b str r3, [r7, #16] + 800464e: 693a ldr r2, [r7, #16] + 8004650: 68fb ldr r3, [r7, #12] + 8004652: 4313 orrs r3, r2 + 8004654: 613b str r3, [r7, #16] } EXTI->EMR = temp; - 8004642: 4b17 ldr r3, [pc, #92] @ (80046a0 ) - 8004644: 693a ldr r2, [r7, #16] - 8004646: 605a str r2, [r3, #4] + 8004656: 4b17 ldr r3, [pc, #92] @ (80046b4 ) + 8004658: 693a ldr r2, [r7, #16] + 800465a: 605a str r2, [r3, #4] temp = EXTI->IMR; - 8004648: 4b15 ldr r3, [pc, #84] @ (80046a0 ) - 800464a: 681b ldr r3, [r3, #0] - 800464c: 613b str r3, [r7, #16] + 800465c: 4b15 ldr r3, [pc, #84] @ (80046b4 ) + 800465e: 681b ldr r3, [r3, #0] + 8004660: 613b str r3, [r7, #16] temp &= ~(iocurrent); - 800464e: 68fb ldr r3, [r7, #12] - 8004650: 43da mvns r2, r3 - 8004652: 693b ldr r3, [r7, #16] - 8004654: 4013 ands r3, r2 - 8004656: 613b str r3, [r7, #16] + 8004662: 68fb ldr r3, [r7, #12] + 8004664: 43da mvns r2, r3 + 8004666: 693b ldr r3, [r7, #16] + 8004668: 4013 ands r3, r2 + 800466a: 613b str r3, [r7, #16] if((GPIO_Init->Mode & EXTI_IT) != 0x00u) - 8004658: 683b ldr r3, [r7, #0] - 800465a: 685a ldr r2, [r3, #4] - 800465c: 2380 movs r3, #128 @ 0x80 - 800465e: 025b lsls r3, r3, #9 - 8004660: 4013 ands r3, r2 - 8004662: d003 beq.n 800466c + 800466c: 683b ldr r3, [r7, #0] + 800466e: 685a ldr r2, [r3, #4] + 8004670: 2380 movs r3, #128 @ 0x80 + 8004672: 025b lsls r3, r3, #9 + 8004674: 4013 ands r3, r2 + 8004676: d003 beq.n 8004680 { temp |= iocurrent; - 8004664: 693a ldr r2, [r7, #16] - 8004666: 68fb ldr r3, [r7, #12] - 8004668: 4313 orrs r3, r2 - 800466a: 613b str r3, [r7, #16] + 8004678: 693a ldr r2, [r7, #16] + 800467a: 68fb ldr r3, [r7, #12] + 800467c: 4313 orrs r3, r2 + 800467e: 613b str r3, [r7, #16] } EXTI->IMR = temp; - 800466c: 4b0c ldr r3, [pc, #48] @ (80046a0 ) - 800466e: 693a ldr r2, [r7, #16] - 8004670: 601a str r2, [r3, #0] + 8004680: 4b0c ldr r3, [pc, #48] @ (80046b4 ) + 8004682: 693a ldr r2, [r7, #16] + 8004684: 601a str r2, [r3, #0] } } position++; - 8004672: 697b ldr r3, [r7, #20] - 8004674: 3301 adds r3, #1 - 8004676: 617b str r3, [r7, #20] + 8004686: 697b ldr r3, [r7, #20] + 8004688: 3301 adds r3, #1 + 800468a: 617b str r3, [r7, #20] while (((GPIO_Init->Pin) >> position) != 0x00u) - 8004678: 683b ldr r3, [r7, #0] - 800467a: 681a ldr r2, [r3, #0] - 800467c: 697b ldr r3, [r7, #20] - 800467e: 40da lsrs r2, r3 - 8004680: 1e13 subs r3, r2, #0 - 8004682: d000 beq.n 8004686 - 8004684: e6ae b.n 80043e4 + 800468c: 683b ldr r3, [r7, #0] + 800468e: 681a ldr r2, [r3, #0] + 8004690: 697b ldr r3, [r7, #20] + 8004692: 40da lsrs r2, r3 + 8004694: 1e13 subs r3, r2, #0 + 8004696: d000 beq.n 800469a + 8004698: e6ae b.n 80043f8 } } - 8004686: 46c0 nop @ (mov r8, r8) - 8004688: 46c0 nop @ (mov r8, r8) - 800468a: 46bd mov sp, r7 - 800468c: b006 add sp, #24 - 800468e: bd80 pop {r7, pc} - 8004690: 40021000 .word 0x40021000 - 8004694: 40010000 .word 0x40010000 - 8004698: 48000400 .word 0x48000400 - 800469c: 48000800 .word 0x48000800 - 80046a0: 40010400 .word 0x40010400 + 800469a: 46c0 nop @ (mov r8, r8) + 800469c: 46c0 nop @ (mov r8, r8) + 800469e: 46bd mov sp, r7 + 80046a0: b006 add sp, #24 + 80046a2: bd80 pop {r7, pc} + 80046a4: 40021000 .word 0x40021000 + 80046a8: 40010000 .word 0x40010000 + 80046ac: 48000400 .word 0x48000400 + 80046b0: 48000800 .word 0x48000800 + 80046b4: 40010400 .word 0x40010400 -080046a4 : +080046b8 : * @param GPIO_Pin specifies the port bit to be written. * This parameter can be one of GPIO_PIN_x where x can be (0..15). * @retval None */ void HAL_GPIO_DeInit(GPIO_TypeDef *GPIOx, uint32_t GPIO_Pin) { - 80046a4: b580 push {r7, lr} - 80046a6: b086 sub sp, #24 - 80046a8: af00 add r7, sp, #0 - 80046aa: 6078 str r0, [r7, #4] - 80046ac: 6039 str r1, [r7, #0] + 80046b8: b580 push {r7, lr} + 80046ba: b086 sub sp, #24 + 80046bc: af00 add r7, sp, #0 + 80046be: 6078 str r0, [r7, #4] + 80046c0: 6039 str r1, [r7, #0] uint32_t position = 0x00u; - 80046ae: 2300 movs r3, #0 - 80046b0: 617b str r3, [r7, #20] + 80046c2: 2300 movs r3, #0 + 80046c4: 617b str r3, [r7, #20] /* Check the parameters */ assert_param(IS_GPIO_ALL_INSTANCE(GPIOx)); assert_param(IS_GPIO_PIN(GPIO_Pin)); /* Configure the port pins */ while ((GPIO_Pin >> position) != 0x00u) - 80046b2: e0ab b.n 800480c + 80046c6: e0ab b.n 8004820 { /* Get current io position */ iocurrent = (GPIO_Pin) & (1uL << position); - 80046b4: 2201 movs r2, #1 - 80046b6: 697b ldr r3, [r7, #20] - 80046b8: 409a lsls r2, r3 - 80046ba: 683b ldr r3, [r7, #0] - 80046bc: 4013 ands r3, r2 - 80046be: 613b str r3, [r7, #16] + 80046c8: 2201 movs r2, #1 + 80046ca: 697b ldr r3, [r7, #20] + 80046cc: 409a lsls r2, r3 + 80046ce: 683b ldr r3, [r7, #0] + 80046d0: 4013 ands r3, r2 + 80046d2: 613b str r3, [r7, #16] if (iocurrent != 0x00u) - 80046c0: 693b ldr r3, [r7, #16] - 80046c2: 2b00 cmp r3, #0 - 80046c4: d100 bne.n 80046c8 - 80046c6: e09e b.n 8004806 + 80046d4: 693b ldr r3, [r7, #16] + 80046d6: 2b00 cmp r3, #0 + 80046d8: d100 bne.n 80046dc + 80046da: e09e b.n 800481a { /*------------------------- EXTI Mode Configuration --------------------*/ /* Clear the External Interrupt or Event for the current IO */ tmp = SYSCFG->EXTICR[position >> 2u]; - 80046c8: 4a56 ldr r2, [pc, #344] @ (8004824 ) - 80046ca: 697b ldr r3, [r7, #20] - 80046cc: 089b lsrs r3, r3, #2 - 80046ce: 3302 adds r3, #2 - 80046d0: 009b lsls r3, r3, #2 - 80046d2: 589b ldr r3, [r3, r2] - 80046d4: 60fb str r3, [r7, #12] + 80046dc: 4a56 ldr r2, [pc, #344] @ (8004838 ) + 80046de: 697b ldr r3, [r7, #20] + 80046e0: 089b lsrs r3, r3, #2 + 80046e2: 3302 adds r3, #2 + 80046e4: 009b lsls r3, r3, #2 + 80046e6: 589b ldr r3, [r3, r2] + 80046e8: 60fb str r3, [r7, #12] tmp &= (0x0FuL << (4u * (position & 0x03u))); - 80046d6: 697b ldr r3, [r7, #20] - 80046d8: 2203 movs r2, #3 - 80046da: 4013 ands r3, r2 - 80046dc: 009b lsls r3, r3, #2 - 80046de: 220f movs r2, #15 - 80046e0: 409a lsls r2, r3 - 80046e2: 68fb ldr r3, [r7, #12] - 80046e4: 4013 ands r3, r2 - 80046e6: 60fb str r3, [r7, #12] + 80046ea: 697b ldr r3, [r7, #20] + 80046ec: 2203 movs r2, #3 + 80046ee: 4013 ands r3, r2 + 80046f0: 009b lsls r3, r3, #2 + 80046f2: 220f movs r2, #15 + 80046f4: 409a lsls r2, r3 + 80046f6: 68fb ldr r3, [r7, #12] + 80046f8: 4013 ands r3, r2 + 80046fa: 60fb str r3, [r7, #12] if (tmp == (GPIO_GET_INDEX(GPIOx) << (4u * (position & 0x03u)))) - 80046e8: 687a ldr r2, [r7, #4] - 80046ea: 2390 movs r3, #144 @ 0x90 - 80046ec: 05db lsls r3, r3, #23 - 80046ee: 429a cmp r2, r3 - 80046f0: d00d beq.n 800470e - 80046f2: 687b ldr r3, [r7, #4] - 80046f4: 4a4c ldr r2, [pc, #304] @ (8004828 ) - 80046f6: 4293 cmp r3, r2 - 80046f8: d007 beq.n 800470a - 80046fa: 687b ldr r3, [r7, #4] - 80046fc: 4a4b ldr r2, [pc, #300] @ (800482c ) - 80046fe: 4293 cmp r3, r2 - 8004700: d101 bne.n 8004706 - 8004702: 2302 movs r3, #2 - 8004704: e004 b.n 8004710 - 8004706: 2305 movs r3, #5 - 8004708: e002 b.n 8004710 - 800470a: 2301 movs r3, #1 - 800470c: e000 b.n 8004710 - 800470e: 2300 movs r3, #0 - 8004710: 697a ldr r2, [r7, #20] - 8004712: 2103 movs r1, #3 - 8004714: 400a ands r2, r1 - 8004716: 0092 lsls r2, r2, #2 - 8004718: 4093 lsls r3, r2 - 800471a: 68fa ldr r2, [r7, #12] - 800471c: 429a cmp r2, r3 - 800471e: d132 bne.n 8004786 + 80046fc: 687a ldr r2, [r7, #4] + 80046fe: 2390 movs r3, #144 @ 0x90 + 8004700: 05db lsls r3, r3, #23 + 8004702: 429a cmp r2, r3 + 8004704: d00d beq.n 8004722 + 8004706: 687b ldr r3, [r7, #4] + 8004708: 4a4c ldr r2, [pc, #304] @ (800483c ) + 800470a: 4293 cmp r3, r2 + 800470c: d007 beq.n 800471e + 800470e: 687b ldr r3, [r7, #4] + 8004710: 4a4b ldr r2, [pc, #300] @ (8004840 ) + 8004712: 4293 cmp r3, r2 + 8004714: d101 bne.n 800471a + 8004716: 2302 movs r3, #2 + 8004718: e004 b.n 8004724 + 800471a: 2305 movs r3, #5 + 800471c: e002 b.n 8004724 + 800471e: 2301 movs r3, #1 + 8004720: e000 b.n 8004724 + 8004722: 2300 movs r3, #0 + 8004724: 697a ldr r2, [r7, #20] + 8004726: 2103 movs r1, #3 + 8004728: 400a ands r2, r1 + 800472a: 0092 lsls r2, r2, #2 + 800472c: 4093 lsls r3, r2 + 800472e: 68fa ldr r2, [r7, #12] + 8004730: 429a cmp r2, r3 + 8004732: d132 bne.n 800479a { /* Clear EXTI line configuration */ EXTI->IMR &= ~((uint32_t)iocurrent); - 8004720: 4b43 ldr r3, [pc, #268] @ (8004830 ) - 8004722: 681a ldr r2, [r3, #0] - 8004724: 693b ldr r3, [r7, #16] - 8004726: 43d9 mvns r1, r3 - 8004728: 4b41 ldr r3, [pc, #260] @ (8004830 ) - 800472a: 400a ands r2, r1 - 800472c: 601a str r2, [r3, #0] + 8004734: 4b43 ldr r3, [pc, #268] @ (8004844 ) + 8004736: 681a ldr r2, [r3, #0] + 8004738: 693b ldr r3, [r7, #16] + 800473a: 43d9 mvns r1, r3 + 800473c: 4b41 ldr r3, [pc, #260] @ (8004844 ) + 800473e: 400a ands r2, r1 + 8004740: 601a str r2, [r3, #0] EXTI->EMR &= ~((uint32_t)iocurrent); - 800472e: 4b40 ldr r3, [pc, #256] @ (8004830 ) - 8004730: 685a ldr r2, [r3, #4] - 8004732: 693b ldr r3, [r7, #16] - 8004734: 43d9 mvns r1, r3 - 8004736: 4b3e ldr r3, [pc, #248] @ (8004830 ) - 8004738: 400a ands r2, r1 - 800473a: 605a str r2, [r3, #4] + 8004742: 4b40 ldr r3, [pc, #256] @ (8004844 ) + 8004744: 685a ldr r2, [r3, #4] + 8004746: 693b ldr r3, [r7, #16] + 8004748: 43d9 mvns r1, r3 + 800474a: 4b3e ldr r3, [pc, #248] @ (8004844 ) + 800474c: 400a ands r2, r1 + 800474e: 605a str r2, [r3, #4] /* Clear Rising Falling edge configuration */ EXTI->FTSR &= ~((uint32_t)iocurrent); - 800473c: 4b3c ldr r3, [pc, #240] @ (8004830 ) - 800473e: 68da ldr r2, [r3, #12] - 8004740: 693b ldr r3, [r7, #16] - 8004742: 43d9 mvns r1, r3 - 8004744: 4b3a ldr r3, [pc, #232] @ (8004830 ) - 8004746: 400a ands r2, r1 - 8004748: 60da str r2, [r3, #12] + 8004750: 4b3c ldr r3, [pc, #240] @ (8004844 ) + 8004752: 68da ldr r2, [r3, #12] + 8004754: 693b ldr r3, [r7, #16] + 8004756: 43d9 mvns r1, r3 + 8004758: 4b3a ldr r3, [pc, #232] @ (8004844 ) + 800475a: 400a ands r2, r1 + 800475c: 60da str r2, [r3, #12] EXTI->RTSR &= ~((uint32_t)iocurrent); - 800474a: 4b39 ldr r3, [pc, #228] @ (8004830 ) - 800474c: 689a ldr r2, [r3, #8] - 800474e: 693b ldr r3, [r7, #16] - 8004750: 43d9 mvns r1, r3 - 8004752: 4b37 ldr r3, [pc, #220] @ (8004830 ) - 8004754: 400a ands r2, r1 - 8004756: 609a str r2, [r3, #8] + 800475e: 4b39 ldr r3, [pc, #228] @ (8004844 ) + 8004760: 689a ldr r2, [r3, #8] + 8004762: 693b ldr r3, [r7, #16] + 8004764: 43d9 mvns r1, r3 + 8004766: 4b37 ldr r3, [pc, #220] @ (8004844 ) + 8004768: 400a ands r2, r1 + 800476a: 609a str r2, [r3, #8] /* Configure the External Interrupt or event for the current IO */ tmp = 0x0FuL << (4u * (position & 0x03u)); - 8004758: 697b ldr r3, [r7, #20] - 800475a: 2203 movs r2, #3 - 800475c: 4013 ands r3, r2 - 800475e: 009b lsls r3, r3, #2 - 8004760: 220f movs r2, #15 - 8004762: 409a lsls r2, r3 - 8004764: 0013 movs r3, r2 - 8004766: 60fb str r3, [r7, #12] + 800476c: 697b ldr r3, [r7, #20] + 800476e: 2203 movs r2, #3 + 8004770: 4013 ands r3, r2 + 8004772: 009b lsls r3, r3, #2 + 8004774: 220f movs r2, #15 + 8004776: 409a lsls r2, r3 + 8004778: 0013 movs r3, r2 + 800477a: 60fb str r3, [r7, #12] SYSCFG->EXTICR[position >> 2u] &= ~tmp; - 8004768: 4a2e ldr r2, [pc, #184] @ (8004824 ) - 800476a: 697b ldr r3, [r7, #20] - 800476c: 089b lsrs r3, r3, #2 - 800476e: 3302 adds r3, #2 - 8004770: 009b lsls r3, r3, #2 - 8004772: 589a ldr r2, [r3, r2] - 8004774: 68fb ldr r3, [r7, #12] - 8004776: 43d9 mvns r1, r3 - 8004778: 482a ldr r0, [pc, #168] @ (8004824 ) - 800477a: 697b ldr r3, [r7, #20] - 800477c: 089b lsrs r3, r3, #2 - 800477e: 400a ands r2, r1 - 8004780: 3302 adds r3, #2 - 8004782: 009b lsls r3, r3, #2 - 8004784: 501a str r2, [r3, r0] + 800477c: 4a2e ldr r2, [pc, #184] @ (8004838 ) + 800477e: 697b ldr r3, [r7, #20] + 8004780: 089b lsrs r3, r3, #2 + 8004782: 3302 adds r3, #2 + 8004784: 009b lsls r3, r3, #2 + 8004786: 589a ldr r2, [r3, r2] + 8004788: 68fb ldr r3, [r7, #12] + 800478a: 43d9 mvns r1, r3 + 800478c: 482a ldr r0, [pc, #168] @ (8004838 ) + 800478e: 697b ldr r3, [r7, #20] + 8004790: 089b lsrs r3, r3, #2 + 8004792: 400a ands r2, r1 + 8004794: 3302 adds r3, #2 + 8004796: 009b lsls r3, r3, #2 + 8004798: 501a str r2, [r3, r0] } /*------------------------- GPIO Mode Configuration --------------------*/ /* Configure IO Direction in Input Floating Mode */ GPIOx->MODER &= ~(GPIO_MODER_MODER0 << (position * 2u)); - 8004786: 687b ldr r3, [r7, #4] - 8004788: 681b ldr r3, [r3, #0] - 800478a: 697a ldr r2, [r7, #20] - 800478c: 0052 lsls r2, r2, #1 - 800478e: 2103 movs r1, #3 - 8004790: 4091 lsls r1, r2 - 8004792: 000a movs r2, r1 - 8004794: 43d2 mvns r2, r2 - 8004796: 401a ands r2, r3 - 8004798: 687b ldr r3, [r7, #4] - 800479a: 601a str r2, [r3, #0] + 800479a: 687b ldr r3, [r7, #4] + 800479c: 681b ldr r3, [r3, #0] + 800479e: 697a ldr r2, [r7, #20] + 80047a0: 0052 lsls r2, r2, #1 + 80047a2: 2103 movs r1, #3 + 80047a4: 4091 lsls r1, r2 + 80047a6: 000a movs r2, r1 + 80047a8: 43d2 mvns r2, r2 + 80047aa: 401a ands r2, r3 + 80047ac: 687b ldr r3, [r7, #4] + 80047ae: 601a str r2, [r3, #0] /* Configure the default Alternate Function in current IO */ GPIOx->AFR[position >> 3u] &= ~(0xFu << ((uint32_t)(position & 0x07u) * 4u)) ; - 800479c: 697b ldr r3, [r7, #20] - 800479e: 08da lsrs r2, r3, #3 - 80047a0: 687b ldr r3, [r7, #4] - 80047a2: 3208 adds r2, #8 - 80047a4: 0092 lsls r2, r2, #2 - 80047a6: 58d3 ldr r3, [r2, r3] - 80047a8: 697a ldr r2, [r7, #20] - 80047aa: 2107 movs r1, #7 - 80047ac: 400a ands r2, r1 - 80047ae: 0092 lsls r2, r2, #2 - 80047b0: 210f movs r1, #15 - 80047b2: 4091 lsls r1, r2 - 80047b4: 000a movs r2, r1 - 80047b6: 43d1 mvns r1, r2 - 80047b8: 697a ldr r2, [r7, #20] - 80047ba: 08d2 lsrs r2, r2, #3 - 80047bc: 4019 ands r1, r3 - 80047be: 687b ldr r3, [r7, #4] - 80047c0: 3208 adds r2, #8 + 80047b0: 697b ldr r3, [r7, #20] + 80047b2: 08da lsrs r2, r3, #3 + 80047b4: 687b ldr r3, [r7, #4] + 80047b6: 3208 adds r2, #8 + 80047b8: 0092 lsls r2, r2, #2 + 80047ba: 58d3 ldr r3, [r2, r3] + 80047bc: 697a ldr r2, [r7, #20] + 80047be: 2107 movs r1, #7 + 80047c0: 400a ands r2, r1 80047c2: 0092 lsls r2, r2, #2 - 80047c4: 50d1 str r1, [r2, r3] + 80047c4: 210f movs r1, #15 + 80047c6: 4091 lsls r1, r2 + 80047c8: 000a movs r2, r1 + 80047ca: 43d1 mvns r1, r2 + 80047cc: 697a ldr r2, [r7, #20] + 80047ce: 08d2 lsrs r2, r2, #3 + 80047d0: 4019 ands r1, r3 + 80047d2: 687b ldr r3, [r7, #4] + 80047d4: 3208 adds r2, #8 + 80047d6: 0092 lsls r2, r2, #2 + 80047d8: 50d1 str r1, [r2, r3] /* Deactivate the Pull-up and Pull-down resistor for the current IO */ GPIOx->PUPDR &= ~(GPIO_PUPDR_PUPDR0 << (position * 2u)); - 80047c6: 687b ldr r3, [r7, #4] - 80047c8: 68db ldr r3, [r3, #12] - 80047ca: 697a ldr r2, [r7, #20] - 80047cc: 0052 lsls r2, r2, #1 - 80047ce: 2103 movs r1, #3 - 80047d0: 4091 lsls r1, r2 - 80047d2: 000a movs r2, r1 - 80047d4: 43d2 mvns r2, r2 - 80047d6: 401a ands r2, r3 - 80047d8: 687b ldr r3, [r7, #4] - 80047da: 60da str r2, [r3, #12] - - /* Configure the default value IO Output Type */ - GPIOx->OTYPER &= ~(GPIO_OTYPER_OT_0 << position) ; - 80047dc: 687b ldr r3, [r7, #4] - 80047de: 685b ldr r3, [r3, #4] - 80047e0: 2101 movs r1, #1 - 80047e2: 697a ldr r2, [r7, #20] + 80047da: 687b ldr r3, [r7, #4] + 80047dc: 68db ldr r3, [r3, #12] + 80047de: 697a ldr r2, [r7, #20] + 80047e0: 0052 lsls r2, r2, #1 + 80047e2: 2103 movs r1, #3 80047e4: 4091 lsls r1, r2 80047e6: 000a movs r2, r1 80047e8: 43d2 mvns r2, r2 80047ea: 401a ands r2, r3 80047ec: 687b ldr r3, [r7, #4] - 80047ee: 605a str r2, [r3, #4] + 80047ee: 60da str r2, [r3, #12] + + /* Configure the default value IO Output Type */ + GPIOx->OTYPER &= ~(GPIO_OTYPER_OT_0 << position) ; + 80047f0: 687b ldr r3, [r7, #4] + 80047f2: 685b ldr r3, [r3, #4] + 80047f4: 2101 movs r1, #1 + 80047f6: 697a ldr r2, [r7, #20] + 80047f8: 4091 lsls r1, r2 + 80047fa: 000a movs r2, r1 + 80047fc: 43d2 mvns r2, r2 + 80047fe: 401a ands r2, r3 + 8004800: 687b ldr r3, [r7, #4] + 8004802: 605a str r2, [r3, #4] /* Configure the default value for IO Speed */ GPIOx->OSPEEDR &= ~(GPIO_OSPEEDER_OSPEEDR0 << (position * 2u)); - 80047f0: 687b ldr r3, [r7, #4] - 80047f2: 689b ldr r3, [r3, #8] - 80047f4: 697a ldr r2, [r7, #20] - 80047f6: 0052 lsls r2, r2, #1 - 80047f8: 2103 movs r1, #3 - 80047fa: 4091 lsls r1, r2 - 80047fc: 000a movs r2, r1 - 80047fe: 43d2 mvns r2, r2 - 8004800: 401a ands r2, r3 - 8004802: 687b ldr r3, [r7, #4] - 8004804: 609a str r2, [r3, #8] + 8004804: 687b ldr r3, [r7, #4] + 8004806: 689b ldr r3, [r3, #8] + 8004808: 697a ldr r2, [r7, #20] + 800480a: 0052 lsls r2, r2, #1 + 800480c: 2103 movs r1, #3 + 800480e: 4091 lsls r1, r2 + 8004810: 000a movs r2, r1 + 8004812: 43d2 mvns r2, r2 + 8004814: 401a ands r2, r3 + 8004816: 687b ldr r3, [r7, #4] + 8004818: 609a str r2, [r3, #8] } position++; - 8004806: 697b ldr r3, [r7, #20] - 8004808: 3301 adds r3, #1 - 800480a: 617b str r3, [r7, #20] + 800481a: 697b ldr r3, [r7, #20] + 800481c: 3301 adds r3, #1 + 800481e: 617b str r3, [r7, #20] while ((GPIO_Pin >> position) != 0x00u) - 800480c: 683a ldr r2, [r7, #0] - 800480e: 697b ldr r3, [r7, #20] - 8004810: 40da lsrs r2, r3 - 8004812: 1e13 subs r3, r2, #0 - 8004814: d000 beq.n 8004818 - 8004816: e74d b.n 80046b4 + 8004820: 683a ldr r2, [r7, #0] + 8004822: 697b ldr r3, [r7, #20] + 8004824: 40da lsrs r2, r3 + 8004826: 1e13 subs r3, r2, #0 + 8004828: d000 beq.n 800482c + 800482a: e74d b.n 80046c8 } } - 8004818: 46c0 nop @ (mov r8, r8) - 800481a: 46c0 nop @ (mov r8, r8) - 800481c: 46bd mov sp, r7 - 800481e: b006 add sp, #24 - 8004820: bd80 pop {r7, pc} - 8004822: 46c0 nop @ (mov r8, r8) - 8004824: 40010000 .word 0x40010000 - 8004828: 48000400 .word 0x48000400 - 800482c: 48000800 .word 0x48000800 - 8004830: 40010400 .word 0x40010400 + 800482c: 46c0 nop @ (mov r8, r8) + 800482e: 46c0 nop @ (mov r8, r8) + 8004830: 46bd mov sp, r7 + 8004832: b006 add sp, #24 + 8004834: bd80 pop {r7, pc} + 8004836: 46c0 nop @ (mov r8, r8) + 8004838: 40010000 .word 0x40010000 + 800483c: 48000400 .word 0x48000400 + 8004840: 48000800 .word 0x48000800 + 8004844: 40010400 .word 0x40010400 -08004834 : +08004848 : * @arg GPIO_PIN_RESET: to clear the port pin * @arg GPIO_PIN_SET: to set the port pin * @retval None */ void HAL_GPIO_WritePin(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState) { - 8004834: b580 push {r7, lr} - 8004836: b082 sub sp, #8 - 8004838: af00 add r7, sp, #0 - 800483a: 6078 str r0, [r7, #4] - 800483c: 0008 movs r0, r1 - 800483e: 0011 movs r1, r2 - 8004840: 1cbb adds r3, r7, #2 - 8004842: 1c02 adds r2, r0, #0 - 8004844: 801a strh r2, [r3, #0] - 8004846: 1c7b adds r3, r7, #1 - 8004848: 1c0a adds r2, r1, #0 - 800484a: 701a strb r2, [r3, #0] + 8004848: b580 push {r7, lr} + 800484a: b082 sub sp, #8 + 800484c: af00 add r7, sp, #0 + 800484e: 6078 str r0, [r7, #4] + 8004850: 0008 movs r0, r1 + 8004852: 0011 movs r1, r2 + 8004854: 1cbb adds r3, r7, #2 + 8004856: 1c02 adds r2, r0, #0 + 8004858: 801a strh r2, [r3, #0] + 800485a: 1c7b adds r3, r7, #1 + 800485c: 1c0a adds r2, r1, #0 + 800485e: 701a strb r2, [r3, #0] /* Check the parameters */ assert_param(IS_GPIO_PIN(GPIO_Pin)); assert_param(IS_GPIO_PIN_ACTION(PinState)); if (PinState != GPIO_PIN_RESET) - 800484c: 1c7b adds r3, r7, #1 - 800484e: 781b ldrb r3, [r3, #0] - 8004850: 2b00 cmp r3, #0 - 8004852: d004 beq.n 800485e + 8004860: 1c7b adds r3, r7, #1 + 8004862: 781b ldrb r3, [r3, #0] + 8004864: 2b00 cmp r3, #0 + 8004866: d004 beq.n 8004872 { GPIOx->BSRR = (uint32_t)GPIO_Pin; - 8004854: 1cbb adds r3, r7, #2 - 8004856: 881a ldrh r2, [r3, #0] - 8004858: 687b ldr r3, [r7, #4] - 800485a: 619a str r2, [r3, #24] + 8004868: 1cbb adds r3, r7, #2 + 800486a: 881a ldrh r2, [r3, #0] + 800486c: 687b ldr r3, [r7, #4] + 800486e: 619a str r2, [r3, #24] } else { GPIOx->BRR = (uint32_t)GPIO_Pin; } } - 800485c: e003 b.n 8004866 + 8004870: e003 b.n 800487a GPIOx->BRR = (uint32_t)GPIO_Pin; - 800485e: 1cbb adds r3, r7, #2 - 8004860: 881a ldrh r2, [r3, #0] - 8004862: 687b ldr r3, [r7, #4] - 8004864: 629a str r2, [r3, #40] @ 0x28 + 8004872: 1cbb adds r3, r7, #2 + 8004874: 881a ldrh r2, [r3, #0] + 8004876: 687b ldr r3, [r7, #4] + 8004878: 629a str r2, [r3, #40] @ 0x28 } - 8004866: 46c0 nop @ (mov r8, r8) - 8004868: 46bd mov sp, r7 - 800486a: b002 add sp, #8 - 800486c: bd80 pop {r7, pc} + 800487a: 46c0 nop @ (mov r8, r8) + 800487c: 46bd mov sp, r7 + 800487e: b002 add sp, #8 + 8004880: bd80 pop {r7, pc} -0800486e : +08004882 : * @param GPIOx where x can be (A..F) to select the GPIO peripheral for STM32F0 family * @param GPIO_Pin specifies the pin to be toggled. * @retval None */ void HAL_GPIO_TogglePin(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin) { - 800486e: b580 push {r7, lr} - 8004870: b084 sub sp, #16 - 8004872: af00 add r7, sp, #0 - 8004874: 6078 str r0, [r7, #4] - 8004876: 000a movs r2, r1 - 8004878: 1cbb adds r3, r7, #2 - 800487a: 801a strh r2, [r3, #0] + 8004882: b580 push {r7, lr} + 8004884: b084 sub sp, #16 + 8004886: af00 add r7, sp, #0 + 8004888: 6078 str r0, [r7, #4] + 800488a: 000a movs r2, r1 + 800488c: 1cbb adds r3, r7, #2 + 800488e: 801a strh r2, [r3, #0] /* Check the parameters */ assert_param(IS_GPIO_PIN(GPIO_Pin)); /* get current Output Data Register value */ odr = GPIOx->ODR; - 800487c: 687b ldr r3, [r7, #4] - 800487e: 695b ldr r3, [r3, #20] - 8004880: 60fb str r3, [r7, #12] + 8004890: 687b ldr r3, [r7, #4] + 8004892: 695b ldr r3, [r3, #20] + 8004894: 60fb str r3, [r7, #12] /* Set selected pins that were at low level, and reset ones that were high */ GPIOx->BSRR = ((odr & GPIO_Pin) << GPIO_NUMBER) | (~odr & GPIO_Pin); - 8004882: 1cbb adds r3, r7, #2 - 8004884: 881b ldrh r3, [r3, #0] - 8004886: 68fa ldr r2, [r7, #12] - 8004888: 4013 ands r3, r2 - 800488a: 041a lsls r2, r3, #16 - 800488c: 68fb ldr r3, [r7, #12] - 800488e: 43db mvns r3, r3 - 8004890: 1cb9 adds r1, r7, #2 - 8004892: 8809 ldrh r1, [r1, #0] - 8004894: 400b ands r3, r1 - 8004896: 431a orrs r2, r3 - 8004898: 687b ldr r3, [r7, #4] - 800489a: 619a str r2, [r3, #24] + 8004896: 1cbb adds r3, r7, #2 + 8004898: 881b ldrh r3, [r3, #0] + 800489a: 68fa ldr r2, [r7, #12] + 800489c: 4013 ands r3, r2 + 800489e: 041a lsls r2, r3, #16 + 80048a0: 68fb ldr r3, [r7, #12] + 80048a2: 43db mvns r3, r3 + 80048a4: 1cb9 adds r1, r7, #2 + 80048a6: 8809 ldrh r1, [r1, #0] + 80048a8: 400b ands r3, r1 + 80048aa: 431a orrs r2, r3 + 80048ac: 687b ldr r3, [r7, #4] + 80048ae: 619a str r2, [r3, #24] } - 800489c: 46c0 nop @ (mov r8, r8) - 800489e: 46bd mov sp, r7 - 80048a0: b004 add sp, #16 - 80048a2: bd80 pop {r7, pc} + 80048b0: 46c0 nop @ (mov r8, r8) + 80048b2: 46bd mov sp, r7 + 80048b4: b004 add sp, #16 + 80048b6: bd80 pop {r7, pc} -080048a4 : +080048b8 : * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Init(I2C_HandleTypeDef *hi2c) { - 80048a4: b580 push {r7, lr} - 80048a6: b082 sub sp, #8 - 80048a8: af00 add r7, sp, #0 - 80048aa: 6078 str r0, [r7, #4] + 80048b8: b580 push {r7, lr} + 80048ba: b082 sub sp, #8 + 80048bc: af00 add r7, sp, #0 + 80048be: 6078 str r0, [r7, #4] /* Check the I2C handle allocation */ if (hi2c == NULL) - 80048ac: 687b ldr r3, [r7, #4] - 80048ae: 2b00 cmp r3, #0 - 80048b0: d101 bne.n 80048b6 + 80048c0: 687b ldr r3, [r7, #4] + 80048c2: 2b00 cmp r3, #0 + 80048c4: d101 bne.n 80048ca { return HAL_ERROR; - 80048b2: 2301 movs r3, #1 - 80048b4: e08f b.n 80049d6 + 80048c6: 2301 movs r3, #1 + 80048c8: e08f b.n 80049ea assert_param(IS_I2C_OWN_ADDRESS2(hi2c->Init.OwnAddress2)); assert_param(IS_I2C_OWN_ADDRESS2_MASK(hi2c->Init.OwnAddress2Masks)); assert_param(IS_I2C_GENERAL_CALL(hi2c->Init.GeneralCallMode)); assert_param(IS_I2C_NO_STRETCH(hi2c->Init.NoStretchMode)); if (hi2c->State == HAL_I2C_STATE_RESET) - 80048b6: 687b ldr r3, [r7, #4] - 80048b8: 2241 movs r2, #65 @ 0x41 - 80048ba: 5c9b ldrb r3, [r3, r2] - 80048bc: b2db uxtb r3, r3 - 80048be: 2b00 cmp r3, #0 - 80048c0: d107 bne.n 80048d2 + 80048ca: 687b ldr r3, [r7, #4] + 80048cc: 2241 movs r2, #65 @ 0x41 + 80048ce: 5c9b ldrb r3, [r3, r2] + 80048d0: b2db uxtb r3, r3 + 80048d2: 2b00 cmp r3, #0 + 80048d4: d107 bne.n 80048e6 { /* Allocate lock resource and initialize it */ hi2c->Lock = HAL_UNLOCKED; - 80048c2: 687b ldr r3, [r7, #4] - 80048c4: 2240 movs r2, #64 @ 0x40 - 80048c6: 2100 movs r1, #0 - 80048c8: 5499 strb r1, [r3, r2] + 80048d6: 687b ldr r3, [r7, #4] + 80048d8: 2240 movs r2, #64 @ 0x40 + 80048da: 2100 movs r1, #0 + 80048dc: 5499 strb r1, [r3, r2] /* Init the low level hardware : GPIO, CLOCK, CORTEX...etc */ hi2c->MspInitCallback(hi2c); #else /* Init the low level hardware : GPIO, CLOCK, CORTEX...etc */ HAL_I2C_MspInit(hi2c); - 80048ca: 687b ldr r3, [r7, #4] - 80048cc: 0018 movs r0, r3 - 80048ce: f7fe fe79 bl 80035c4 + 80048de: 687b ldr r3, [r7, #4] + 80048e0: 0018 movs r0, r3 + 80048e2: f7fe fe79 bl 80035d8 #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } hi2c->State = HAL_I2C_STATE_BUSY; - 80048d2: 687b ldr r3, [r7, #4] - 80048d4: 2241 movs r2, #65 @ 0x41 - 80048d6: 2124 movs r1, #36 @ 0x24 - 80048d8: 5499 strb r1, [r3, r2] + 80048e6: 687b ldr r3, [r7, #4] + 80048e8: 2241 movs r2, #65 @ 0x41 + 80048ea: 2124 movs r1, #36 @ 0x24 + 80048ec: 5499 strb r1, [r3, r2] /* Disable the selected I2C peripheral */ __HAL_I2C_DISABLE(hi2c); - 80048da: 687b ldr r3, [r7, #4] - 80048dc: 681b ldr r3, [r3, #0] - 80048de: 681a ldr r2, [r3, #0] - 80048e0: 687b ldr r3, [r7, #4] - 80048e2: 681b ldr r3, [r3, #0] - 80048e4: 2101 movs r1, #1 - 80048e6: 438a bics r2, r1 - 80048e8: 601a str r2, [r3, #0] + 80048ee: 687b ldr r3, [r7, #4] + 80048f0: 681b ldr r3, [r3, #0] + 80048f2: 681a ldr r2, [r3, #0] + 80048f4: 687b ldr r3, [r7, #4] + 80048f6: 681b ldr r3, [r3, #0] + 80048f8: 2101 movs r1, #1 + 80048fa: 438a bics r2, r1 + 80048fc: 601a str r2, [r3, #0] /*---------------------------- I2Cx TIMINGR Configuration ------------------*/ /* Configure I2Cx: Frequency range */ hi2c->Instance->TIMINGR = hi2c->Init.Timing & TIMING_CLEAR_MASK; - 80048ea: 687b ldr r3, [r7, #4] - 80048ec: 685a ldr r2, [r3, #4] - 80048ee: 687b ldr r3, [r7, #4] - 80048f0: 681b ldr r3, [r3, #0] - 80048f2: 493b ldr r1, [pc, #236] @ (80049e0 ) - 80048f4: 400a ands r2, r1 - 80048f6: 611a str r2, [r3, #16] + 80048fe: 687b ldr r3, [r7, #4] + 8004900: 685a ldr r2, [r3, #4] + 8004902: 687b ldr r3, [r7, #4] + 8004904: 681b ldr r3, [r3, #0] + 8004906: 493b ldr r1, [pc, #236] @ (80049f4 ) + 8004908: 400a ands r2, r1 + 800490a: 611a str r2, [r3, #16] /*---------------------------- I2Cx OAR1 Configuration ---------------------*/ /* Disable Own Address1 before set the Own Address1 configuration */ hi2c->Instance->OAR1 &= ~I2C_OAR1_OA1EN; - 80048f8: 687b ldr r3, [r7, #4] - 80048fa: 681b ldr r3, [r3, #0] - 80048fc: 689a ldr r2, [r3, #8] - 80048fe: 687b ldr r3, [r7, #4] - 8004900: 681b ldr r3, [r3, #0] - 8004902: 4938 ldr r1, [pc, #224] @ (80049e4 ) - 8004904: 400a ands r2, r1 - 8004906: 609a str r2, [r3, #8] + 800490c: 687b ldr r3, [r7, #4] + 800490e: 681b ldr r3, [r3, #0] + 8004910: 689a ldr r2, [r3, #8] + 8004912: 687b ldr r3, [r7, #4] + 8004914: 681b ldr r3, [r3, #0] + 8004916: 4938 ldr r1, [pc, #224] @ (80049f8 ) + 8004918: 400a ands r2, r1 + 800491a: 609a str r2, [r3, #8] /* Configure I2Cx: Own Address1 and ack own address1 mode */ if (hi2c->Init.AddressingMode == I2C_ADDRESSINGMODE_7BIT) - 8004908: 687b ldr r3, [r7, #4] - 800490a: 68db ldr r3, [r3, #12] - 800490c: 2b01 cmp r3, #1 - 800490e: d108 bne.n 8004922 + 800491c: 687b ldr r3, [r7, #4] + 800491e: 68db ldr r3, [r3, #12] + 8004920: 2b01 cmp r3, #1 + 8004922: d108 bne.n 8004936 { hi2c->Instance->OAR1 = (I2C_OAR1_OA1EN | hi2c->Init.OwnAddress1); - 8004910: 687b ldr r3, [r7, #4] - 8004912: 689a ldr r2, [r3, #8] - 8004914: 687b ldr r3, [r7, #4] - 8004916: 681b ldr r3, [r3, #0] - 8004918: 2180 movs r1, #128 @ 0x80 - 800491a: 0209 lsls r1, r1, #8 - 800491c: 430a orrs r2, r1 - 800491e: 609a str r2, [r3, #8] - 8004920: e007 b.n 8004932 + 8004924: 687b ldr r3, [r7, #4] + 8004926: 689a ldr r2, [r3, #8] + 8004928: 687b ldr r3, [r7, #4] + 800492a: 681b ldr r3, [r3, #0] + 800492c: 2180 movs r1, #128 @ 0x80 + 800492e: 0209 lsls r1, r1, #8 + 8004930: 430a orrs r2, r1 + 8004932: 609a str r2, [r3, #8] + 8004934: e007 b.n 8004946 } else /* I2C_ADDRESSINGMODE_10BIT */ { hi2c->Instance->OAR1 = (I2C_OAR1_OA1EN | I2C_OAR1_OA1MODE | hi2c->Init.OwnAddress1); - 8004922: 687b ldr r3, [r7, #4] - 8004924: 689a ldr r2, [r3, #8] - 8004926: 687b ldr r3, [r7, #4] - 8004928: 681b ldr r3, [r3, #0] - 800492a: 2184 movs r1, #132 @ 0x84 - 800492c: 0209 lsls r1, r1, #8 - 800492e: 430a orrs r2, r1 - 8004930: 609a str r2, [r3, #8] + 8004936: 687b ldr r3, [r7, #4] + 8004938: 689a ldr r2, [r3, #8] + 800493a: 687b ldr r3, [r7, #4] + 800493c: 681b ldr r3, [r3, #0] + 800493e: 2184 movs r1, #132 @ 0x84 + 8004940: 0209 lsls r1, r1, #8 + 8004942: 430a orrs r2, r1 + 8004944: 609a str r2, [r3, #8] } /*---------------------------- I2Cx CR2 Configuration ----------------------*/ /* Configure I2Cx: Addressing Master mode */ if (hi2c->Init.AddressingMode == I2C_ADDRESSINGMODE_10BIT) - 8004932: 687b ldr r3, [r7, #4] - 8004934: 68db ldr r3, [r3, #12] - 8004936: 2b02 cmp r3, #2 - 8004938: d109 bne.n 800494e + 8004946: 687b ldr r3, [r7, #4] + 8004948: 68db ldr r3, [r3, #12] + 800494a: 2b02 cmp r3, #2 + 800494c: d109 bne.n 8004962 { SET_BIT(hi2c->Instance->CR2, I2C_CR2_ADD10); - 800493a: 687b ldr r3, [r7, #4] - 800493c: 681b ldr r3, [r3, #0] - 800493e: 685a ldr r2, [r3, #4] - 8004940: 687b ldr r3, [r7, #4] - 8004942: 681b ldr r3, [r3, #0] - 8004944: 2180 movs r1, #128 @ 0x80 - 8004946: 0109 lsls r1, r1, #4 - 8004948: 430a orrs r2, r1 - 800494a: 605a str r2, [r3, #4] - 800494c: e007 b.n 800495e - } - else - { - /* Clear the I2C ADD10 bit */ - CLEAR_BIT(hi2c->Instance->CR2, I2C_CR2_ADD10); 800494e: 687b ldr r3, [r7, #4] 8004950: 681b ldr r3, [r3, #0] 8004952: 685a ldr r2, [r3, #4] 8004954: 687b ldr r3, [r7, #4] 8004956: 681b ldr r3, [r3, #0] - 8004958: 4923 ldr r1, [pc, #140] @ (80049e8 ) - 800495a: 400a ands r2, r1 - 800495c: 605a str r2, [r3, #4] + 8004958: 2180 movs r1, #128 @ 0x80 + 800495a: 0109 lsls r1, r1, #4 + 800495c: 430a orrs r2, r1 + 800495e: 605a str r2, [r3, #4] + 8004960: e007 b.n 8004972 + } + else + { + /* Clear the I2C ADD10 bit */ + CLEAR_BIT(hi2c->Instance->CR2, I2C_CR2_ADD10); + 8004962: 687b ldr r3, [r7, #4] + 8004964: 681b ldr r3, [r3, #0] + 8004966: 685a ldr r2, [r3, #4] + 8004968: 687b ldr r3, [r7, #4] + 800496a: 681b ldr r3, [r3, #0] + 800496c: 4923 ldr r1, [pc, #140] @ (80049fc ) + 800496e: 400a ands r2, r1 + 8004970: 605a str r2, [r3, #4] } /* Enable the AUTOEND by default, and enable NACK (should be disable only during Slave process */ hi2c->Instance->CR2 |= (I2C_CR2_AUTOEND | I2C_CR2_NACK); - 800495e: 687b ldr r3, [r7, #4] - 8004960: 681b ldr r3, [r3, #0] - 8004962: 685a ldr r2, [r3, #4] - 8004964: 687b ldr r3, [r7, #4] - 8004966: 681b ldr r3, [r3, #0] - 8004968: 4920 ldr r1, [pc, #128] @ (80049ec ) - 800496a: 430a orrs r2, r1 - 800496c: 605a str r2, [r3, #4] + 8004972: 687b ldr r3, [r7, #4] + 8004974: 681b ldr r3, [r3, #0] + 8004976: 685a ldr r2, [r3, #4] + 8004978: 687b ldr r3, [r7, #4] + 800497a: 681b ldr r3, [r3, #0] + 800497c: 4920 ldr r1, [pc, #128] @ (8004a00 ) + 800497e: 430a orrs r2, r1 + 8004980: 605a str r2, [r3, #4] /*---------------------------- I2Cx OAR2 Configuration ---------------------*/ /* Disable Own Address2 before set the Own Address2 configuration */ hi2c->Instance->OAR2 &= ~I2C_DUALADDRESS_ENABLE; - 800496e: 687b ldr r3, [r7, #4] - 8004970: 681b ldr r3, [r3, #0] - 8004972: 68da ldr r2, [r3, #12] - 8004974: 687b ldr r3, [r7, #4] - 8004976: 681b ldr r3, [r3, #0] - 8004978: 491a ldr r1, [pc, #104] @ (80049e4 ) - 800497a: 400a ands r2, r1 - 800497c: 60da str r2, [r3, #12] + 8004982: 687b ldr r3, [r7, #4] + 8004984: 681b ldr r3, [r3, #0] + 8004986: 68da ldr r2, [r3, #12] + 8004988: 687b ldr r3, [r7, #4] + 800498a: 681b ldr r3, [r3, #0] + 800498c: 491a ldr r1, [pc, #104] @ (80049f8 ) + 800498e: 400a ands r2, r1 + 8004990: 60da str r2, [r3, #12] /* Configure I2Cx: Dual mode and Own Address2 */ hi2c->Instance->OAR2 = (hi2c->Init.DualAddressMode | hi2c->Init.OwnAddress2 | \ - 800497e: 687b ldr r3, [r7, #4] - 8004980: 691a ldr r2, [r3, #16] - 8004982: 687b ldr r3, [r7, #4] - 8004984: 695b ldr r3, [r3, #20] - 8004986: 431a orrs r2, r3 - 8004988: 0011 movs r1, r2 + 8004992: 687b ldr r3, [r7, #4] + 8004994: 691a ldr r2, [r3, #16] + 8004996: 687b ldr r3, [r7, #4] + 8004998: 695b ldr r3, [r3, #20] + 800499a: 431a orrs r2, r3 + 800499c: 0011 movs r1, r2 (hi2c->Init.OwnAddress2Masks << 8)); - 800498a: 687b ldr r3, [r7, #4] - 800498c: 699b ldr r3, [r3, #24] - 800498e: 021a lsls r2, r3, #8 + 800499e: 687b ldr r3, [r7, #4] + 80049a0: 699b ldr r3, [r3, #24] + 80049a2: 021a lsls r2, r3, #8 hi2c->Instance->OAR2 = (hi2c->Init.DualAddressMode | hi2c->Init.OwnAddress2 | \ - 8004990: 687b ldr r3, [r7, #4] - 8004992: 681b ldr r3, [r3, #0] - 8004994: 430a orrs r2, r1 - 8004996: 60da str r2, [r3, #12] + 80049a4: 687b ldr r3, [r7, #4] + 80049a6: 681b ldr r3, [r3, #0] + 80049a8: 430a orrs r2, r1 + 80049aa: 60da str r2, [r3, #12] /*---------------------------- I2Cx CR1 Configuration ----------------------*/ /* Configure I2Cx: Generalcall and NoStretch mode */ hi2c->Instance->CR1 = (hi2c->Init.GeneralCallMode | hi2c->Init.NoStretchMode); - 8004998: 687b ldr r3, [r7, #4] - 800499a: 69d9 ldr r1, [r3, #28] - 800499c: 687b ldr r3, [r7, #4] - 800499e: 6a1a ldr r2, [r3, #32] - 80049a0: 687b ldr r3, [r7, #4] - 80049a2: 681b ldr r3, [r3, #0] - 80049a4: 430a orrs r2, r1 - 80049a6: 601a str r2, [r3, #0] + 80049ac: 687b ldr r3, [r7, #4] + 80049ae: 69d9 ldr r1, [r3, #28] + 80049b0: 687b ldr r3, [r7, #4] + 80049b2: 6a1a ldr r2, [r3, #32] + 80049b4: 687b ldr r3, [r7, #4] + 80049b6: 681b ldr r3, [r3, #0] + 80049b8: 430a orrs r2, r1 + 80049ba: 601a str r2, [r3, #0] /* Enable the selected I2C peripheral */ __HAL_I2C_ENABLE(hi2c); - 80049a8: 687b ldr r3, [r7, #4] - 80049aa: 681b ldr r3, [r3, #0] - 80049ac: 681a ldr r2, [r3, #0] - 80049ae: 687b ldr r3, [r7, #4] - 80049b0: 681b ldr r3, [r3, #0] - 80049b2: 2101 movs r1, #1 - 80049b4: 430a orrs r2, r1 - 80049b6: 601a str r2, [r3, #0] + 80049bc: 687b ldr r3, [r7, #4] + 80049be: 681b ldr r3, [r3, #0] + 80049c0: 681a ldr r2, [r3, #0] + 80049c2: 687b ldr r3, [r7, #4] + 80049c4: 681b ldr r3, [r3, #0] + 80049c6: 2101 movs r1, #1 + 80049c8: 430a orrs r2, r1 + 80049ca: 601a str r2, [r3, #0] hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 80049b8: 687b ldr r3, [r7, #4] - 80049ba: 2200 movs r2, #0 - 80049bc: 645a str r2, [r3, #68] @ 0x44 - hi2c->State = HAL_I2C_STATE_READY; - 80049be: 687b ldr r3, [r7, #4] - 80049c0: 2241 movs r2, #65 @ 0x41 - 80049c2: 2120 movs r1, #32 - 80049c4: 5499 strb r1, [r3, r2] - hi2c->PreviousState = I2C_STATE_NONE; - 80049c6: 687b ldr r3, [r7, #4] - 80049c8: 2200 movs r2, #0 - 80049ca: 631a str r2, [r3, #48] @ 0x30 - hi2c->Mode = HAL_I2C_MODE_NONE; 80049cc: 687b ldr r3, [r7, #4] - 80049ce: 2242 movs r2, #66 @ 0x42 - 80049d0: 2100 movs r1, #0 - 80049d2: 5499 strb r1, [r3, r2] + 80049ce: 2200 movs r2, #0 + 80049d0: 645a str r2, [r3, #68] @ 0x44 + hi2c->State = HAL_I2C_STATE_READY; + 80049d2: 687b ldr r3, [r7, #4] + 80049d4: 2241 movs r2, #65 @ 0x41 + 80049d6: 2120 movs r1, #32 + 80049d8: 5499 strb r1, [r3, r2] + hi2c->PreviousState = I2C_STATE_NONE; + 80049da: 687b ldr r3, [r7, #4] + 80049dc: 2200 movs r2, #0 + 80049de: 631a str r2, [r3, #48] @ 0x30 + hi2c->Mode = HAL_I2C_MODE_NONE; + 80049e0: 687b ldr r3, [r7, #4] + 80049e2: 2242 movs r2, #66 @ 0x42 + 80049e4: 2100 movs r1, #0 + 80049e6: 5499 strb r1, [r3, r2] return HAL_OK; - 80049d4: 2300 movs r3, #0 + 80049e8: 2300 movs r3, #0 } - 80049d6: 0018 movs r0, r3 - 80049d8: 46bd mov sp, r7 - 80049da: b002 add sp, #8 - 80049dc: bd80 pop {r7, pc} - 80049de: 46c0 nop @ (mov r8, r8) - 80049e0: f0ffffff .word 0xf0ffffff - 80049e4: ffff7fff .word 0xffff7fff - 80049e8: fffff7ff .word 0xfffff7ff - 80049ec: 02008000 .word 0x02008000 + 80049ea: 0018 movs r0, r3 + 80049ec: 46bd mov sp, r7 + 80049ee: b002 add sp, #8 + 80049f0: bd80 pop {r7, pc} + 80049f2: 46c0 nop @ (mov r8, r8) + 80049f4: f0ffffff .word 0xf0ffffff + 80049f8: ffff7fff .word 0xffff7fff + 80049fc: fffff7ff .word 0xfffff7ff + 8004a00: 02008000 .word 0x02008000 -080049f0 : +08004a04 : * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_DeInit(I2C_HandleTypeDef *hi2c) { - 80049f0: b580 push {r7, lr} - 80049f2: b082 sub sp, #8 - 80049f4: af00 add r7, sp, #0 - 80049f6: 6078 str r0, [r7, #4] + 8004a04: b580 push {r7, lr} + 8004a06: b082 sub sp, #8 + 8004a08: af00 add r7, sp, #0 + 8004a0a: 6078 str r0, [r7, #4] /* Check the I2C handle allocation */ if (hi2c == NULL) - 80049f8: 687b ldr r3, [r7, #4] - 80049fa: 2b00 cmp r3, #0 - 80049fc: d101 bne.n 8004a02 + 8004a0c: 687b ldr r3, [r7, #4] + 8004a0e: 2b00 cmp r3, #0 + 8004a10: d101 bne.n 8004a16 { return HAL_ERROR; - 80049fe: 2301 movs r3, #1 - 8004a00: e022 b.n 8004a48 + 8004a12: 2301 movs r3, #1 + 8004a14: e022 b.n 8004a5c } /* Check the parameters */ assert_param(IS_I2C_ALL_INSTANCE(hi2c->Instance)); hi2c->State = HAL_I2C_STATE_BUSY; - 8004a02: 687b ldr r3, [r7, #4] - 8004a04: 2241 movs r2, #65 @ 0x41 - 8004a06: 2124 movs r1, #36 @ 0x24 - 8004a08: 5499 strb r1, [r3, r2] + 8004a16: 687b ldr r3, [r7, #4] + 8004a18: 2241 movs r2, #65 @ 0x41 + 8004a1a: 2124 movs r1, #36 @ 0x24 + 8004a1c: 5499 strb r1, [r3, r2] /* Disable the I2C Peripheral Clock */ __HAL_I2C_DISABLE(hi2c); - 8004a0a: 687b ldr r3, [r7, #4] - 8004a0c: 681b ldr r3, [r3, #0] - 8004a0e: 681a ldr r2, [r3, #0] - 8004a10: 687b ldr r3, [r7, #4] - 8004a12: 681b ldr r3, [r3, #0] - 8004a14: 2101 movs r1, #1 - 8004a16: 438a bics r2, r1 - 8004a18: 601a str r2, [r3, #0] + 8004a1e: 687b ldr r3, [r7, #4] + 8004a20: 681b ldr r3, [r3, #0] + 8004a22: 681a ldr r2, [r3, #0] + 8004a24: 687b ldr r3, [r7, #4] + 8004a26: 681b ldr r3, [r3, #0] + 8004a28: 2101 movs r1, #1 + 8004a2a: 438a bics r2, r1 + 8004a2c: 601a str r2, [r3, #0] /* DeInit the low level hardware: GPIO, CLOCK, NVIC */ hi2c->MspDeInitCallback(hi2c); #else /* DeInit the low level hardware: GPIO, CLOCK, NVIC */ HAL_I2C_MspDeInit(hi2c); - 8004a1a: 687b ldr r3, [r7, #4] - 8004a1c: 0018 movs r0, r3 - 8004a1e: f7fe fe1f bl 8003660 + 8004a2e: 687b ldr r3, [r7, #4] + 8004a30: 0018 movs r0, r3 + 8004a32: f7fe fe1f bl 8003674 #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 8004a22: 687b ldr r3, [r7, #4] - 8004a24: 2200 movs r2, #0 - 8004a26: 645a str r2, [r3, #68] @ 0x44 - hi2c->State = HAL_I2C_STATE_RESET; - 8004a28: 687b ldr r3, [r7, #4] - 8004a2a: 2241 movs r2, #65 @ 0x41 - 8004a2c: 2100 movs r1, #0 - 8004a2e: 5499 strb r1, [r3, r2] - hi2c->PreviousState = I2C_STATE_NONE; - 8004a30: 687b ldr r3, [r7, #4] - 8004a32: 2200 movs r2, #0 - 8004a34: 631a str r2, [r3, #48] @ 0x30 - hi2c->Mode = HAL_I2C_MODE_NONE; 8004a36: 687b ldr r3, [r7, #4] - 8004a38: 2242 movs r2, #66 @ 0x42 - 8004a3a: 2100 movs r1, #0 - 8004a3c: 5499 strb r1, [r3, r2] + 8004a38: 2200 movs r2, #0 + 8004a3a: 645a str r2, [r3, #68] @ 0x44 + hi2c->State = HAL_I2C_STATE_RESET; + 8004a3c: 687b ldr r3, [r7, #4] + 8004a3e: 2241 movs r2, #65 @ 0x41 + 8004a40: 2100 movs r1, #0 + 8004a42: 5499 strb r1, [r3, r2] + hi2c->PreviousState = I2C_STATE_NONE; + 8004a44: 687b ldr r3, [r7, #4] + 8004a46: 2200 movs r2, #0 + 8004a48: 631a str r2, [r3, #48] @ 0x30 + hi2c->Mode = HAL_I2C_MODE_NONE; + 8004a4a: 687b ldr r3, [r7, #4] + 8004a4c: 2242 movs r2, #66 @ 0x42 + 8004a4e: 2100 movs r1, #0 + 8004a50: 5499 strb r1, [r3, r2] /* Release Lock */ __HAL_UNLOCK(hi2c); - 8004a3e: 687b ldr r3, [r7, #4] - 8004a40: 2240 movs r2, #64 @ 0x40 - 8004a42: 2100 movs r1, #0 - 8004a44: 5499 strb r1, [r3, r2] + 8004a52: 687b ldr r3, [r7, #4] + 8004a54: 2240 movs r2, #64 @ 0x40 + 8004a56: 2100 movs r1, #0 + 8004a58: 5499 strb r1, [r3, r2] return HAL_OK; - 8004a46: 2300 movs r3, #0 + 8004a5a: 2300 movs r3, #0 } - 8004a48: 0018 movs r0, r3 - 8004a4a: 46bd mov sp, r7 - 8004a4c: b002 add sp, #8 - 8004a4e: bd80 pop {r7, pc} + 8004a5c: 0018 movs r0, r3 + 8004a5e: 46bd mov sp, r7 + 8004a60: b002 add sp, #8 + 8004a62: bd80 pop {r7, pc} -08004a50 : +08004a64 : * @param Timeout Timeout duration * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Mem_Write(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size, uint32_t Timeout) { - 8004a50: b590 push {r4, r7, lr} - 8004a52: b089 sub sp, #36 @ 0x24 - 8004a54: af02 add r7, sp, #8 - 8004a56: 60f8 str r0, [r7, #12] - 8004a58: 000c movs r4, r1 - 8004a5a: 0010 movs r0, r2 - 8004a5c: 0019 movs r1, r3 - 8004a5e: 230a movs r3, #10 - 8004a60: 18fb adds r3, r7, r3 - 8004a62: 1c22 adds r2, r4, #0 - 8004a64: 801a strh r2, [r3, #0] - 8004a66: 2308 movs r3, #8 - 8004a68: 18fb adds r3, r7, r3 - 8004a6a: 1c02 adds r2, r0, #0 - 8004a6c: 801a strh r2, [r3, #0] - 8004a6e: 1dbb adds r3, r7, #6 - 8004a70: 1c0a adds r2, r1, #0 - 8004a72: 801a strh r2, [r3, #0] + 8004a64: b590 push {r4, r7, lr} + 8004a66: b089 sub sp, #36 @ 0x24 + 8004a68: af02 add r7, sp, #8 + 8004a6a: 60f8 str r0, [r7, #12] + 8004a6c: 000c movs r4, r1 + 8004a6e: 0010 movs r0, r2 + 8004a70: 0019 movs r1, r3 + 8004a72: 230a movs r3, #10 + 8004a74: 18fb adds r3, r7, r3 + 8004a76: 1c22 adds r2, r4, #0 + 8004a78: 801a strh r2, [r3, #0] + 8004a7a: 2308 movs r3, #8 + 8004a7c: 18fb adds r3, r7, r3 + 8004a7e: 1c02 adds r2, r0, #0 + 8004a80: 801a strh r2, [r3, #0] + 8004a82: 1dbb adds r3, r7, #6 + 8004a84: 1c0a adds r2, r1, #0 + 8004a86: 801a strh r2, [r3, #0] uint32_t tickstart; /* Check the parameters */ assert_param(IS_I2C_MEMADD_SIZE(MemAddSize)); if (hi2c->State == HAL_I2C_STATE_READY) - 8004a74: 68fb ldr r3, [r7, #12] - 8004a76: 2241 movs r2, #65 @ 0x41 - 8004a78: 5c9b ldrb r3, [r3, r2] - 8004a7a: b2db uxtb r3, r3 - 8004a7c: 2b20 cmp r3, #32 - 8004a7e: d000 beq.n 8004a82 - 8004a80: e10c b.n 8004c9c + 8004a88: 68fb ldr r3, [r7, #12] + 8004a8a: 2241 movs r2, #65 @ 0x41 + 8004a8c: 5c9b ldrb r3, [r3, r2] + 8004a8e: b2db uxtb r3, r3 + 8004a90: 2b20 cmp r3, #32 + 8004a92: d000 beq.n 8004a96 + 8004a94: e10c b.n 8004cb0 { if ((pData == NULL) || (Size == 0U)) - 8004a82: 6abb ldr r3, [r7, #40] @ 0x28 - 8004a84: 2b00 cmp r3, #0 - 8004a86: d004 beq.n 8004a92 - 8004a88: 232c movs r3, #44 @ 0x2c - 8004a8a: 18fb adds r3, r7, r3 - 8004a8c: 881b ldrh r3, [r3, #0] - 8004a8e: 2b00 cmp r3, #0 - 8004a90: d105 bne.n 8004a9e + 8004a96: 6abb ldr r3, [r7, #40] @ 0x28 + 8004a98: 2b00 cmp r3, #0 + 8004a9a: d004 beq.n 8004aa6 + 8004a9c: 232c movs r3, #44 @ 0x2c + 8004a9e: 18fb adds r3, r7, r3 + 8004aa0: 881b ldrh r3, [r3, #0] + 8004aa2: 2b00 cmp r3, #0 + 8004aa4: d105 bne.n 8004ab2 { hi2c->ErrorCode = HAL_I2C_ERROR_INVALID_PARAM; - 8004a92: 68fb ldr r3, [r7, #12] - 8004a94: 2280 movs r2, #128 @ 0x80 - 8004a96: 0092 lsls r2, r2, #2 - 8004a98: 645a str r2, [r3, #68] @ 0x44 + 8004aa6: 68fb ldr r3, [r7, #12] + 8004aa8: 2280 movs r2, #128 @ 0x80 + 8004aaa: 0092 lsls r2, r2, #2 + 8004aac: 645a str r2, [r3, #68] @ 0x44 return HAL_ERROR; - 8004a9a: 2301 movs r3, #1 - 8004a9c: e0ff b.n 8004c9e + 8004aae: 2301 movs r3, #1 + 8004ab0: e0ff b.n 8004cb2 } /* Process Locked */ __HAL_LOCK(hi2c); - 8004a9e: 68fb ldr r3, [r7, #12] - 8004aa0: 2240 movs r2, #64 @ 0x40 - 8004aa2: 5c9b ldrb r3, [r3, r2] - 8004aa4: 2b01 cmp r3, #1 - 8004aa6: d101 bne.n 8004aac - 8004aa8: 2302 movs r3, #2 - 8004aaa: e0f8 b.n 8004c9e - 8004aac: 68fb ldr r3, [r7, #12] - 8004aae: 2240 movs r2, #64 @ 0x40 - 8004ab0: 2101 movs r1, #1 - 8004ab2: 5499 strb r1, [r3, r2] + 8004ab2: 68fb ldr r3, [r7, #12] + 8004ab4: 2240 movs r2, #64 @ 0x40 + 8004ab6: 5c9b ldrb r3, [r3, r2] + 8004ab8: 2b01 cmp r3, #1 + 8004aba: d101 bne.n 8004ac0 + 8004abc: 2302 movs r3, #2 + 8004abe: e0f8 b.n 8004cb2 + 8004ac0: 68fb ldr r3, [r7, #12] + 8004ac2: 2240 movs r2, #64 @ 0x40 + 8004ac4: 2101 movs r1, #1 + 8004ac6: 5499 strb r1, [r3, r2] /* Init tickstart for timeout management*/ tickstart = HAL_GetTick(); - 8004ab4: f7ff f996 bl 8003de4 - 8004ab8: 0003 movs r3, r0 - 8004aba: 617b str r3, [r7, #20] + 8004ac8: f7ff f996 bl 8003df8 + 8004acc: 0003 movs r3, r0 + 8004ace: 617b str r3, [r7, #20] if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY, tickstart) != HAL_OK) - 8004abc: 2380 movs r3, #128 @ 0x80 - 8004abe: 0219 lsls r1, r3, #8 - 8004ac0: 68f8 ldr r0, [r7, #12] - 8004ac2: 697b ldr r3, [r7, #20] - 8004ac4: 9300 str r3, [sp, #0] - 8004ac6: 2319 movs r3, #25 - 8004ac8: 2201 movs r2, #1 - 8004aca: f000 fb0b bl 80050e4 - 8004ace: 1e03 subs r3, r0, #0 - 8004ad0: d001 beq.n 8004ad6 + 8004ad0: 2380 movs r3, #128 @ 0x80 + 8004ad2: 0219 lsls r1, r3, #8 + 8004ad4: 68f8 ldr r0, [r7, #12] + 8004ad6: 697b ldr r3, [r7, #20] + 8004ad8: 9300 str r3, [sp, #0] + 8004ada: 2319 movs r3, #25 + 8004adc: 2201 movs r2, #1 + 8004ade: f000 fb0b bl 80050f8 + 8004ae2: 1e03 subs r3, r0, #0 + 8004ae4: d001 beq.n 8004aea { return HAL_ERROR; - 8004ad2: 2301 movs r3, #1 - 8004ad4: e0e3 b.n 8004c9e + 8004ae6: 2301 movs r3, #1 + 8004ae8: e0e3 b.n 8004cb2 } hi2c->State = HAL_I2C_STATE_BUSY_TX; - 8004ad6: 68fb ldr r3, [r7, #12] - 8004ad8: 2241 movs r2, #65 @ 0x41 - 8004ada: 2121 movs r1, #33 @ 0x21 - 8004adc: 5499 strb r1, [r3, r2] + 8004aea: 68fb ldr r3, [r7, #12] + 8004aec: 2241 movs r2, #65 @ 0x41 + 8004aee: 2121 movs r1, #33 @ 0x21 + 8004af0: 5499 strb r1, [r3, r2] hi2c->Mode = HAL_I2C_MODE_MEM; - 8004ade: 68fb ldr r3, [r7, #12] - 8004ae0: 2242 movs r2, #66 @ 0x42 - 8004ae2: 2140 movs r1, #64 @ 0x40 - 8004ae4: 5499 strb r1, [r3, r2] + 8004af2: 68fb ldr r3, [r7, #12] + 8004af4: 2242 movs r2, #66 @ 0x42 + 8004af6: 2140 movs r1, #64 @ 0x40 + 8004af8: 5499 strb r1, [r3, r2] hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 8004ae6: 68fb ldr r3, [r7, #12] - 8004ae8: 2200 movs r2, #0 - 8004aea: 645a str r2, [r3, #68] @ 0x44 + 8004afa: 68fb ldr r3, [r7, #12] + 8004afc: 2200 movs r2, #0 + 8004afe: 645a str r2, [r3, #68] @ 0x44 /* Prepare transfer parameters */ hi2c->pBuffPtr = pData; - 8004aec: 68fb ldr r3, [r7, #12] - 8004aee: 6aba ldr r2, [r7, #40] @ 0x28 - 8004af0: 625a str r2, [r3, #36] @ 0x24 + 8004b00: 68fb ldr r3, [r7, #12] + 8004b02: 6aba ldr r2, [r7, #40] @ 0x28 + 8004b04: 625a str r2, [r3, #36] @ 0x24 hi2c->XferCount = Size; - 8004af2: 68fb ldr r3, [r7, #12] - 8004af4: 222c movs r2, #44 @ 0x2c - 8004af6: 18ba adds r2, r7, r2 - 8004af8: 8812 ldrh r2, [r2, #0] - 8004afa: 855a strh r2, [r3, #42] @ 0x2a + 8004b06: 68fb ldr r3, [r7, #12] + 8004b08: 222c movs r2, #44 @ 0x2c + 8004b0a: 18ba adds r2, r7, r2 + 8004b0c: 8812 ldrh r2, [r2, #0] + 8004b0e: 855a strh r2, [r3, #42] @ 0x2a hi2c->XferISR = NULL; - 8004afc: 68fb ldr r3, [r7, #12] - 8004afe: 2200 movs r2, #0 - 8004b00: 635a str r2, [r3, #52] @ 0x34 + 8004b10: 68fb ldr r3, [r7, #12] + 8004b12: 2200 movs r2, #0 + 8004b14: 635a str r2, [r3, #52] @ 0x34 /* Send Slave Address and Memory Address */ if (I2C_RequestMemoryWrite(hi2c, DevAddress, MemAddress, MemAddSize, Timeout, tickstart) != HAL_OK) - 8004b02: 1dbb adds r3, r7, #6 - 8004b04: 881c ldrh r4, [r3, #0] - 8004b06: 2308 movs r3, #8 - 8004b08: 18fb adds r3, r7, r3 - 8004b0a: 881a ldrh r2, [r3, #0] - 8004b0c: 230a movs r3, #10 - 8004b0e: 18fb adds r3, r7, r3 - 8004b10: 8819 ldrh r1, [r3, #0] - 8004b12: 68f8 ldr r0, [r7, #12] - 8004b14: 697b ldr r3, [r7, #20] - 8004b16: 9301 str r3, [sp, #4] - 8004b18: 6b3b ldr r3, [r7, #48] @ 0x30 - 8004b1a: 9300 str r3, [sp, #0] - 8004b1c: 0023 movs r3, r4 - 8004b1e: f000 f9f9 bl 8004f14 - 8004b22: 1e03 subs r3, r0, #0 - 8004b24: d005 beq.n 8004b32 + 8004b16: 1dbb adds r3, r7, #6 + 8004b18: 881c ldrh r4, [r3, #0] + 8004b1a: 2308 movs r3, #8 + 8004b1c: 18fb adds r3, r7, r3 + 8004b1e: 881a ldrh r2, [r3, #0] + 8004b20: 230a movs r3, #10 + 8004b22: 18fb adds r3, r7, r3 + 8004b24: 8819 ldrh r1, [r3, #0] + 8004b26: 68f8 ldr r0, [r7, #12] + 8004b28: 697b ldr r3, [r7, #20] + 8004b2a: 9301 str r3, [sp, #4] + 8004b2c: 6b3b ldr r3, [r7, #48] @ 0x30 + 8004b2e: 9300 str r3, [sp, #0] + 8004b30: 0023 movs r3, r4 + 8004b32: f000 f9f9 bl 8004f28 + 8004b36: 1e03 subs r3, r0, #0 + 8004b38: d005 beq.n 8004b46 { /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 8004b26: 68fb ldr r3, [r7, #12] - 8004b28: 2240 movs r2, #64 @ 0x40 - 8004b2a: 2100 movs r1, #0 - 8004b2c: 5499 strb r1, [r3, r2] + 8004b3a: 68fb ldr r3, [r7, #12] + 8004b3c: 2240 movs r2, #64 @ 0x40 + 8004b3e: 2100 movs r1, #0 + 8004b40: 5499 strb r1, [r3, r2] return HAL_ERROR; - 8004b2e: 2301 movs r3, #1 - 8004b30: e0b5 b.n 8004c9e + 8004b42: 2301 movs r3, #1 + 8004b44: e0b5 b.n 8004cb2 } /* Set NBYTES to write and reload if hi2c->XferCount > MAX_NBYTE_SIZE */ if (hi2c->XferCount > MAX_NBYTE_SIZE) - 8004b32: 68fb ldr r3, [r7, #12] - 8004b34: 8d5b ldrh r3, [r3, #42] @ 0x2a - 8004b36: b29b uxth r3, r3 - 8004b38: 2bff cmp r3, #255 @ 0xff - 8004b3a: d911 bls.n 8004b60 + 8004b46: 68fb ldr r3, [r7, #12] + 8004b48: 8d5b ldrh r3, [r3, #42] @ 0x2a + 8004b4a: b29b uxth r3, r3 + 8004b4c: 2bff cmp r3, #255 @ 0xff + 8004b4e: d911 bls.n 8004b74 { hi2c->XferSize = MAX_NBYTE_SIZE; - 8004b3c: 68fb ldr r3, [r7, #12] - 8004b3e: 22ff movs r2, #255 @ 0xff - 8004b40: 851a strh r2, [r3, #40] @ 0x28 + 8004b50: 68fb ldr r3, [r7, #12] + 8004b52: 22ff movs r2, #255 @ 0xff + 8004b54: 851a strh r2, [r3, #40] @ 0x28 I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_RELOAD_MODE, I2C_NO_STARTSTOP); - 8004b42: 68fb ldr r3, [r7, #12] - 8004b44: 8d1b ldrh r3, [r3, #40] @ 0x28 - 8004b46: b2da uxtb r2, r3 - 8004b48: 2380 movs r3, #128 @ 0x80 - 8004b4a: 045c lsls r4, r3, #17 - 8004b4c: 230a movs r3, #10 - 8004b4e: 18fb adds r3, r7, r3 - 8004b50: 8819 ldrh r1, [r3, #0] - 8004b52: 68f8 ldr r0, [r7, #12] - 8004b54: 2300 movs r3, #0 - 8004b56: 9300 str r3, [sp, #0] - 8004b58: 0023 movs r3, r4 - 8004b5a: f000 fc9d bl 8005498 - 8004b5e: e012 b.n 8004b86 + 8004b56: 68fb ldr r3, [r7, #12] + 8004b58: 8d1b ldrh r3, [r3, #40] @ 0x28 + 8004b5a: b2da uxtb r2, r3 + 8004b5c: 2380 movs r3, #128 @ 0x80 + 8004b5e: 045c lsls r4, r3, #17 + 8004b60: 230a movs r3, #10 + 8004b62: 18fb adds r3, r7, r3 + 8004b64: 8819 ldrh r1, [r3, #0] + 8004b66: 68f8 ldr r0, [r7, #12] + 8004b68: 2300 movs r3, #0 + 8004b6a: 9300 str r3, [sp, #0] + 8004b6c: 0023 movs r3, r4 + 8004b6e: f000 fc9d bl 80054ac + 8004b72: e012 b.n 8004b9a } else { hi2c->XferSize = hi2c->XferCount; - 8004b60: 68fb ldr r3, [r7, #12] - 8004b62: 8d5b ldrh r3, [r3, #42] @ 0x2a - 8004b64: b29a uxth r2, r3 - 8004b66: 68fb ldr r3, [r7, #12] - 8004b68: 851a strh r2, [r3, #40] @ 0x28 + 8004b74: 68fb ldr r3, [r7, #12] + 8004b76: 8d5b ldrh r3, [r3, #42] @ 0x2a + 8004b78: b29a uxth r2, r3 + 8004b7a: 68fb ldr r3, [r7, #12] + 8004b7c: 851a strh r2, [r3, #40] @ 0x28 I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_AUTOEND_MODE, I2C_NO_STARTSTOP); - 8004b6a: 68fb ldr r3, [r7, #12] - 8004b6c: 8d1b ldrh r3, [r3, #40] @ 0x28 - 8004b6e: b2da uxtb r2, r3 - 8004b70: 2380 movs r3, #128 @ 0x80 - 8004b72: 049c lsls r4, r3, #18 - 8004b74: 230a movs r3, #10 - 8004b76: 18fb adds r3, r7, r3 - 8004b78: 8819 ldrh r1, [r3, #0] - 8004b7a: 68f8 ldr r0, [r7, #12] - 8004b7c: 2300 movs r3, #0 - 8004b7e: 9300 str r3, [sp, #0] - 8004b80: 0023 movs r3, r4 - 8004b82: f000 fc89 bl 8005498 + 8004b7e: 68fb ldr r3, [r7, #12] + 8004b80: 8d1b ldrh r3, [r3, #40] @ 0x28 + 8004b82: b2da uxtb r2, r3 + 8004b84: 2380 movs r3, #128 @ 0x80 + 8004b86: 049c lsls r4, r3, #18 + 8004b88: 230a movs r3, #10 + 8004b8a: 18fb adds r3, r7, r3 + 8004b8c: 8819 ldrh r1, [r3, #0] + 8004b8e: 68f8 ldr r0, [r7, #12] + 8004b90: 2300 movs r3, #0 + 8004b92: 9300 str r3, [sp, #0] + 8004b94: 0023 movs r3, r4 + 8004b96: f000 fc89 bl 80054ac } do { /* Wait until TXIS flag is set */ if (I2C_WaitOnTXISFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) - 8004b86: 697a ldr r2, [r7, #20] - 8004b88: 6b39 ldr r1, [r7, #48] @ 0x30 - 8004b8a: 68fb ldr r3, [r7, #12] - 8004b8c: 0018 movs r0, r3 - 8004b8e: f000 fb01 bl 8005194 - 8004b92: 1e03 subs r3, r0, #0 - 8004b94: d001 beq.n 8004b9a + 8004b9a: 697a ldr r2, [r7, #20] + 8004b9c: 6b39 ldr r1, [r7, #48] @ 0x30 + 8004b9e: 68fb ldr r3, [r7, #12] + 8004ba0: 0018 movs r0, r3 + 8004ba2: f000 fb01 bl 80051a8 + 8004ba6: 1e03 subs r3, r0, #0 + 8004ba8: d001 beq.n 8004bae { return HAL_ERROR; - 8004b96: 2301 movs r3, #1 - 8004b98: e081 b.n 8004c9e + 8004baa: 2301 movs r3, #1 + 8004bac: e081 b.n 8004cb2 } /* Write data to TXDR */ hi2c->Instance->TXDR = *hi2c->pBuffPtr; - 8004b9a: 68fb ldr r3, [r7, #12] - 8004b9c: 6a5b ldr r3, [r3, #36] @ 0x24 - 8004b9e: 781a ldrb r2, [r3, #0] - 8004ba0: 68fb ldr r3, [r7, #12] - 8004ba2: 681b ldr r3, [r3, #0] - 8004ba4: 629a str r2, [r3, #40] @ 0x28 + 8004bae: 68fb ldr r3, [r7, #12] + 8004bb0: 6a5b ldr r3, [r3, #36] @ 0x24 + 8004bb2: 781a ldrb r2, [r3, #0] + 8004bb4: 68fb ldr r3, [r7, #12] + 8004bb6: 681b ldr r3, [r3, #0] + 8004bb8: 629a str r2, [r3, #40] @ 0x28 /* Increment Buffer pointer */ hi2c->pBuffPtr++; - 8004ba6: 68fb ldr r3, [r7, #12] - 8004ba8: 6a5b ldr r3, [r3, #36] @ 0x24 - 8004baa: 1c5a adds r2, r3, #1 - 8004bac: 68fb ldr r3, [r7, #12] - 8004bae: 625a str r2, [r3, #36] @ 0x24 + 8004bba: 68fb ldr r3, [r7, #12] + 8004bbc: 6a5b ldr r3, [r3, #36] @ 0x24 + 8004bbe: 1c5a adds r2, r3, #1 + 8004bc0: 68fb ldr r3, [r7, #12] + 8004bc2: 625a str r2, [r3, #36] @ 0x24 hi2c->XferCount--; - 8004bb0: 68fb ldr r3, [r7, #12] - 8004bb2: 8d5b ldrh r3, [r3, #42] @ 0x2a - 8004bb4: b29b uxth r3, r3 - 8004bb6: 3b01 subs r3, #1 - 8004bb8: b29a uxth r2, r3 - 8004bba: 68fb ldr r3, [r7, #12] - 8004bbc: 855a strh r2, [r3, #42] @ 0x2a + 8004bc4: 68fb ldr r3, [r7, #12] + 8004bc6: 8d5b ldrh r3, [r3, #42] @ 0x2a + 8004bc8: b29b uxth r3, r3 + 8004bca: 3b01 subs r3, #1 + 8004bcc: b29a uxth r2, r3 + 8004bce: 68fb ldr r3, [r7, #12] + 8004bd0: 855a strh r2, [r3, #42] @ 0x2a hi2c->XferSize--; - 8004bbe: 68fb ldr r3, [r7, #12] - 8004bc0: 8d1b ldrh r3, [r3, #40] @ 0x28 - 8004bc2: 3b01 subs r3, #1 - 8004bc4: b29a uxth r2, r3 - 8004bc6: 68fb ldr r3, [r7, #12] - 8004bc8: 851a strh r2, [r3, #40] @ 0x28 + 8004bd2: 68fb ldr r3, [r7, #12] + 8004bd4: 8d1b ldrh r3, [r3, #40] @ 0x28 + 8004bd6: 3b01 subs r3, #1 + 8004bd8: b29a uxth r2, r3 + 8004bda: 68fb ldr r3, [r7, #12] + 8004bdc: 851a strh r2, [r3, #40] @ 0x28 if ((hi2c->XferCount != 0U) && (hi2c->XferSize == 0U)) - 8004bca: 68fb ldr r3, [r7, #12] - 8004bcc: 8d5b ldrh r3, [r3, #42] @ 0x2a - 8004bce: b29b uxth r3, r3 - 8004bd0: 2b00 cmp r3, #0 - 8004bd2: d03a beq.n 8004c4a - 8004bd4: 68fb ldr r3, [r7, #12] - 8004bd6: 8d1b ldrh r3, [r3, #40] @ 0x28 - 8004bd8: 2b00 cmp r3, #0 - 8004bda: d136 bne.n 8004c4a + 8004bde: 68fb ldr r3, [r7, #12] + 8004be0: 8d5b ldrh r3, [r3, #42] @ 0x2a + 8004be2: b29b uxth r3, r3 + 8004be4: 2b00 cmp r3, #0 + 8004be6: d03a beq.n 8004c5e + 8004be8: 68fb ldr r3, [r7, #12] + 8004bea: 8d1b ldrh r3, [r3, #40] @ 0x28 + 8004bec: 2b00 cmp r3, #0 + 8004bee: d136 bne.n 8004c5e { /* Wait until TCR flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_TCR, RESET, Timeout, tickstart) != HAL_OK) - 8004bdc: 6b3a ldr r2, [r7, #48] @ 0x30 - 8004bde: 68f8 ldr r0, [r7, #12] - 8004be0: 697b ldr r3, [r7, #20] - 8004be2: 9300 str r3, [sp, #0] - 8004be4: 0013 movs r3, r2 - 8004be6: 2200 movs r2, #0 - 8004be8: 2180 movs r1, #128 @ 0x80 - 8004bea: f000 fa7b bl 80050e4 - 8004bee: 1e03 subs r3, r0, #0 - 8004bf0: d001 beq.n 8004bf6 + 8004bf0: 6b3a ldr r2, [r7, #48] @ 0x30 + 8004bf2: 68f8 ldr r0, [r7, #12] + 8004bf4: 697b ldr r3, [r7, #20] + 8004bf6: 9300 str r3, [sp, #0] + 8004bf8: 0013 movs r3, r2 + 8004bfa: 2200 movs r2, #0 + 8004bfc: 2180 movs r1, #128 @ 0x80 + 8004bfe: f000 fa7b bl 80050f8 + 8004c02: 1e03 subs r3, r0, #0 + 8004c04: d001 beq.n 8004c0a { return HAL_ERROR; - 8004bf2: 2301 movs r3, #1 - 8004bf4: e053 b.n 8004c9e + 8004c06: 2301 movs r3, #1 + 8004c08: e053 b.n 8004cb2 } if (hi2c->XferCount > MAX_NBYTE_SIZE) - 8004bf6: 68fb ldr r3, [r7, #12] - 8004bf8: 8d5b ldrh r3, [r3, #42] @ 0x2a - 8004bfa: b29b uxth r3, r3 - 8004bfc: 2bff cmp r3, #255 @ 0xff - 8004bfe: d911 bls.n 8004c24 + 8004c0a: 68fb ldr r3, [r7, #12] + 8004c0c: 8d5b ldrh r3, [r3, #42] @ 0x2a + 8004c0e: b29b uxth r3, r3 + 8004c10: 2bff cmp r3, #255 @ 0xff + 8004c12: d911 bls.n 8004c38 { hi2c->XferSize = MAX_NBYTE_SIZE; - 8004c00: 68fb ldr r3, [r7, #12] - 8004c02: 22ff movs r2, #255 @ 0xff - 8004c04: 851a strh r2, [r3, #40] @ 0x28 + 8004c14: 68fb ldr r3, [r7, #12] + 8004c16: 22ff movs r2, #255 @ 0xff + 8004c18: 851a strh r2, [r3, #40] @ 0x28 I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_RELOAD_MODE, - 8004c06: 68fb ldr r3, [r7, #12] - 8004c08: 8d1b ldrh r3, [r3, #40] @ 0x28 - 8004c0a: b2da uxtb r2, r3 - 8004c0c: 2380 movs r3, #128 @ 0x80 - 8004c0e: 045c lsls r4, r3, #17 - 8004c10: 230a movs r3, #10 - 8004c12: 18fb adds r3, r7, r3 - 8004c14: 8819 ldrh r1, [r3, #0] - 8004c16: 68f8 ldr r0, [r7, #12] - 8004c18: 2300 movs r3, #0 - 8004c1a: 9300 str r3, [sp, #0] - 8004c1c: 0023 movs r3, r4 - 8004c1e: f000 fc3b bl 8005498 - 8004c22: e012 b.n 8004c4a + 8004c1a: 68fb ldr r3, [r7, #12] + 8004c1c: 8d1b ldrh r3, [r3, #40] @ 0x28 + 8004c1e: b2da uxtb r2, r3 + 8004c20: 2380 movs r3, #128 @ 0x80 + 8004c22: 045c lsls r4, r3, #17 + 8004c24: 230a movs r3, #10 + 8004c26: 18fb adds r3, r7, r3 + 8004c28: 8819 ldrh r1, [r3, #0] + 8004c2a: 68f8 ldr r0, [r7, #12] + 8004c2c: 2300 movs r3, #0 + 8004c2e: 9300 str r3, [sp, #0] + 8004c30: 0023 movs r3, r4 + 8004c32: f000 fc3b bl 80054ac + 8004c36: e012 b.n 8004c5e I2C_NO_STARTSTOP); } else { hi2c->XferSize = hi2c->XferCount; - 8004c24: 68fb ldr r3, [r7, #12] - 8004c26: 8d5b ldrh r3, [r3, #42] @ 0x2a - 8004c28: b29a uxth r2, r3 - 8004c2a: 68fb ldr r3, [r7, #12] - 8004c2c: 851a strh r2, [r3, #40] @ 0x28 + 8004c38: 68fb ldr r3, [r7, #12] + 8004c3a: 8d5b ldrh r3, [r3, #42] @ 0x2a + 8004c3c: b29a uxth r2, r3 + 8004c3e: 68fb ldr r3, [r7, #12] + 8004c40: 851a strh r2, [r3, #40] @ 0x28 I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_AUTOEND_MODE, - 8004c2e: 68fb ldr r3, [r7, #12] - 8004c30: 8d1b ldrh r3, [r3, #40] @ 0x28 - 8004c32: b2da uxtb r2, r3 - 8004c34: 2380 movs r3, #128 @ 0x80 - 8004c36: 049c lsls r4, r3, #18 - 8004c38: 230a movs r3, #10 - 8004c3a: 18fb adds r3, r7, r3 - 8004c3c: 8819 ldrh r1, [r3, #0] - 8004c3e: 68f8 ldr r0, [r7, #12] - 8004c40: 2300 movs r3, #0 - 8004c42: 9300 str r3, [sp, #0] - 8004c44: 0023 movs r3, r4 - 8004c46: f000 fc27 bl 8005498 + 8004c42: 68fb ldr r3, [r7, #12] + 8004c44: 8d1b ldrh r3, [r3, #40] @ 0x28 + 8004c46: b2da uxtb r2, r3 + 8004c48: 2380 movs r3, #128 @ 0x80 + 8004c4a: 049c lsls r4, r3, #18 + 8004c4c: 230a movs r3, #10 + 8004c4e: 18fb adds r3, r7, r3 + 8004c50: 8819 ldrh r1, [r3, #0] + 8004c52: 68f8 ldr r0, [r7, #12] + 8004c54: 2300 movs r3, #0 + 8004c56: 9300 str r3, [sp, #0] + 8004c58: 0023 movs r3, r4 + 8004c5a: f000 fc27 bl 80054ac I2C_NO_STARTSTOP); } } } while (hi2c->XferCount > 0U); - 8004c4a: 68fb ldr r3, [r7, #12] - 8004c4c: 8d5b ldrh r3, [r3, #42] @ 0x2a - 8004c4e: b29b uxth r3, r3 - 8004c50: 2b00 cmp r3, #0 - 8004c52: d198 bne.n 8004b86 + 8004c5e: 68fb ldr r3, [r7, #12] + 8004c60: 8d5b ldrh r3, [r3, #42] @ 0x2a + 8004c62: b29b uxth r3, r3 + 8004c64: 2b00 cmp r3, #0 + 8004c66: d198 bne.n 8004b9a /* No need to Check TC flag, with AUTOEND mode the stop is automatically generated */ /* Wait until STOPF flag is reset */ if (I2C_WaitOnSTOPFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) - 8004c54: 697a ldr r2, [r7, #20] - 8004c56: 6b39 ldr r1, [r7, #48] @ 0x30 - 8004c58: 68fb ldr r3, [r7, #12] - 8004c5a: 0018 movs r0, r3 - 8004c5c: f000 fae0 bl 8005220 - 8004c60: 1e03 subs r3, r0, #0 - 8004c62: d001 beq.n 8004c68 + 8004c68: 697a ldr r2, [r7, #20] + 8004c6a: 6b39 ldr r1, [r7, #48] @ 0x30 + 8004c6c: 68fb ldr r3, [r7, #12] + 8004c6e: 0018 movs r0, r3 + 8004c70: f000 fae0 bl 8005234 + 8004c74: 1e03 subs r3, r0, #0 + 8004c76: d001 beq.n 8004c7c { return HAL_ERROR; - 8004c64: 2301 movs r3, #1 - 8004c66: e01a b.n 8004c9e + 8004c78: 2301 movs r3, #1 + 8004c7a: e01a b.n 8004cb2 } /* Clear STOP Flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); - 8004c68: 68fb ldr r3, [r7, #12] - 8004c6a: 681b ldr r3, [r3, #0] - 8004c6c: 2220 movs r2, #32 - 8004c6e: 61da str r2, [r3, #28] + 8004c7c: 68fb ldr r3, [r7, #12] + 8004c7e: 681b ldr r3, [r3, #0] + 8004c80: 2220 movs r2, #32 + 8004c82: 61da str r2, [r3, #28] /* Clear Configuration Register 2 */ I2C_RESET_CR2(hi2c); - 8004c70: 68fb ldr r3, [r7, #12] - 8004c72: 681b ldr r3, [r3, #0] - 8004c74: 685a ldr r2, [r3, #4] - 8004c76: 68fb ldr r3, [r7, #12] - 8004c78: 681b ldr r3, [r3, #0] - 8004c7a: 490b ldr r1, [pc, #44] @ (8004ca8 ) - 8004c7c: 400a ands r2, r1 - 8004c7e: 605a str r2, [r3, #4] + 8004c84: 68fb ldr r3, [r7, #12] + 8004c86: 681b ldr r3, [r3, #0] + 8004c88: 685a ldr r2, [r3, #4] + 8004c8a: 68fb ldr r3, [r7, #12] + 8004c8c: 681b ldr r3, [r3, #0] + 8004c8e: 490b ldr r1, [pc, #44] @ (8004cbc ) + 8004c90: 400a ands r2, r1 + 8004c92: 605a str r2, [r3, #4] hi2c->State = HAL_I2C_STATE_READY; - 8004c80: 68fb ldr r3, [r7, #12] - 8004c82: 2241 movs r2, #65 @ 0x41 - 8004c84: 2120 movs r1, #32 - 8004c86: 5499 strb r1, [r3, r2] + 8004c94: 68fb ldr r3, [r7, #12] + 8004c96: 2241 movs r2, #65 @ 0x41 + 8004c98: 2120 movs r1, #32 + 8004c9a: 5499 strb r1, [r3, r2] hi2c->Mode = HAL_I2C_MODE_NONE; - 8004c88: 68fb ldr r3, [r7, #12] - 8004c8a: 2242 movs r2, #66 @ 0x42 - 8004c8c: 2100 movs r1, #0 - 8004c8e: 5499 strb r1, [r3, r2] + 8004c9c: 68fb ldr r3, [r7, #12] + 8004c9e: 2242 movs r2, #66 @ 0x42 + 8004ca0: 2100 movs r1, #0 + 8004ca2: 5499 strb r1, [r3, r2] /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 8004c90: 68fb ldr r3, [r7, #12] - 8004c92: 2240 movs r2, #64 @ 0x40 - 8004c94: 2100 movs r1, #0 - 8004c96: 5499 strb r1, [r3, r2] + 8004ca4: 68fb ldr r3, [r7, #12] + 8004ca6: 2240 movs r2, #64 @ 0x40 + 8004ca8: 2100 movs r1, #0 + 8004caa: 5499 strb r1, [r3, r2] return HAL_OK; - 8004c98: 2300 movs r3, #0 - 8004c9a: e000 b.n 8004c9e + 8004cac: 2300 movs r3, #0 + 8004cae: e000 b.n 8004cb2 } else { return HAL_BUSY; - 8004c9c: 2302 movs r3, #2 + 8004cb0: 2302 movs r3, #2 } } - 8004c9e: 0018 movs r0, r3 - 8004ca0: 46bd mov sp, r7 - 8004ca2: b007 add sp, #28 - 8004ca4: bd90 pop {r4, r7, pc} - 8004ca6: 46c0 nop @ (mov r8, r8) - 8004ca8: fe00e800 .word 0xfe00e800 + 8004cb2: 0018 movs r0, r3 + 8004cb4: 46bd mov sp, r7 + 8004cb6: b007 add sp, #28 + 8004cb8: bd90 pop {r4, r7, pc} + 8004cba: 46c0 nop @ (mov r8, r8) + 8004cbc: fe00e800 .word 0xfe00e800 -08004cac : +08004cc0 : * @param Timeout Timeout duration * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Mem_Read(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size, uint32_t Timeout) { - 8004cac: b590 push {r4, r7, lr} - 8004cae: b089 sub sp, #36 @ 0x24 - 8004cb0: af02 add r7, sp, #8 - 8004cb2: 60f8 str r0, [r7, #12] - 8004cb4: 000c movs r4, r1 - 8004cb6: 0010 movs r0, r2 - 8004cb8: 0019 movs r1, r3 - 8004cba: 230a movs r3, #10 - 8004cbc: 18fb adds r3, r7, r3 - 8004cbe: 1c22 adds r2, r4, #0 - 8004cc0: 801a strh r2, [r3, #0] - 8004cc2: 2308 movs r3, #8 - 8004cc4: 18fb adds r3, r7, r3 - 8004cc6: 1c02 adds r2, r0, #0 - 8004cc8: 801a strh r2, [r3, #0] - 8004cca: 1dbb adds r3, r7, #6 - 8004ccc: 1c0a adds r2, r1, #0 - 8004cce: 801a strh r2, [r3, #0] + 8004cc0: b590 push {r4, r7, lr} + 8004cc2: b089 sub sp, #36 @ 0x24 + 8004cc4: af02 add r7, sp, #8 + 8004cc6: 60f8 str r0, [r7, #12] + 8004cc8: 000c movs r4, r1 + 8004cca: 0010 movs r0, r2 + 8004ccc: 0019 movs r1, r3 + 8004cce: 230a movs r3, #10 + 8004cd0: 18fb adds r3, r7, r3 + 8004cd2: 1c22 adds r2, r4, #0 + 8004cd4: 801a strh r2, [r3, #0] + 8004cd6: 2308 movs r3, #8 + 8004cd8: 18fb adds r3, r7, r3 + 8004cda: 1c02 adds r2, r0, #0 + 8004cdc: 801a strh r2, [r3, #0] + 8004cde: 1dbb adds r3, r7, #6 + 8004ce0: 1c0a adds r2, r1, #0 + 8004ce2: 801a strh r2, [r3, #0] uint32_t tickstart; /* Check the parameters */ assert_param(IS_I2C_MEMADD_SIZE(MemAddSize)); if (hi2c->State == HAL_I2C_STATE_READY) - 8004cd0: 68fb ldr r3, [r7, #12] - 8004cd2: 2241 movs r2, #65 @ 0x41 - 8004cd4: 5c9b ldrb r3, [r3, r2] - 8004cd6: b2db uxtb r3, r3 - 8004cd8: 2b20 cmp r3, #32 - 8004cda: d000 beq.n 8004cde - 8004cdc: e110 b.n 8004f00 + 8004ce4: 68fb ldr r3, [r7, #12] + 8004ce6: 2241 movs r2, #65 @ 0x41 + 8004ce8: 5c9b ldrb r3, [r3, r2] + 8004cea: b2db uxtb r3, r3 + 8004cec: 2b20 cmp r3, #32 + 8004cee: d000 beq.n 8004cf2 + 8004cf0: e110 b.n 8004f14 { if ((pData == NULL) || (Size == 0U)) - 8004cde: 6abb ldr r3, [r7, #40] @ 0x28 - 8004ce0: 2b00 cmp r3, #0 - 8004ce2: d004 beq.n 8004cee - 8004ce4: 232c movs r3, #44 @ 0x2c - 8004ce6: 18fb adds r3, r7, r3 - 8004ce8: 881b ldrh r3, [r3, #0] - 8004cea: 2b00 cmp r3, #0 - 8004cec: d105 bne.n 8004cfa + 8004cf2: 6abb ldr r3, [r7, #40] @ 0x28 + 8004cf4: 2b00 cmp r3, #0 + 8004cf6: d004 beq.n 8004d02 + 8004cf8: 232c movs r3, #44 @ 0x2c + 8004cfa: 18fb adds r3, r7, r3 + 8004cfc: 881b ldrh r3, [r3, #0] + 8004cfe: 2b00 cmp r3, #0 + 8004d00: d105 bne.n 8004d0e { hi2c->ErrorCode = HAL_I2C_ERROR_INVALID_PARAM; - 8004cee: 68fb ldr r3, [r7, #12] - 8004cf0: 2280 movs r2, #128 @ 0x80 - 8004cf2: 0092 lsls r2, r2, #2 - 8004cf4: 645a str r2, [r3, #68] @ 0x44 + 8004d02: 68fb ldr r3, [r7, #12] + 8004d04: 2280 movs r2, #128 @ 0x80 + 8004d06: 0092 lsls r2, r2, #2 + 8004d08: 645a str r2, [r3, #68] @ 0x44 return HAL_ERROR; - 8004cf6: 2301 movs r3, #1 - 8004cf8: e103 b.n 8004f02 + 8004d0a: 2301 movs r3, #1 + 8004d0c: e103 b.n 8004f16 } /* Process Locked */ __HAL_LOCK(hi2c); - 8004cfa: 68fb ldr r3, [r7, #12] - 8004cfc: 2240 movs r2, #64 @ 0x40 - 8004cfe: 5c9b ldrb r3, [r3, r2] - 8004d00: 2b01 cmp r3, #1 - 8004d02: d101 bne.n 8004d08 - 8004d04: 2302 movs r3, #2 - 8004d06: e0fc b.n 8004f02 - 8004d08: 68fb ldr r3, [r7, #12] - 8004d0a: 2240 movs r2, #64 @ 0x40 - 8004d0c: 2101 movs r1, #1 - 8004d0e: 5499 strb r1, [r3, r2] + 8004d0e: 68fb ldr r3, [r7, #12] + 8004d10: 2240 movs r2, #64 @ 0x40 + 8004d12: 5c9b ldrb r3, [r3, r2] + 8004d14: 2b01 cmp r3, #1 + 8004d16: d101 bne.n 8004d1c + 8004d18: 2302 movs r3, #2 + 8004d1a: e0fc b.n 8004f16 + 8004d1c: 68fb ldr r3, [r7, #12] + 8004d1e: 2240 movs r2, #64 @ 0x40 + 8004d20: 2101 movs r1, #1 + 8004d22: 5499 strb r1, [r3, r2] /* Init tickstart for timeout management*/ tickstart = HAL_GetTick(); - 8004d10: f7ff f868 bl 8003de4 - 8004d14: 0003 movs r3, r0 - 8004d16: 617b str r3, [r7, #20] + 8004d24: f7ff f868 bl 8003df8 + 8004d28: 0003 movs r3, r0 + 8004d2a: 617b str r3, [r7, #20] if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY, tickstart) != HAL_OK) - 8004d18: 2380 movs r3, #128 @ 0x80 - 8004d1a: 0219 lsls r1, r3, #8 - 8004d1c: 68f8 ldr r0, [r7, #12] - 8004d1e: 697b ldr r3, [r7, #20] - 8004d20: 9300 str r3, [sp, #0] - 8004d22: 2319 movs r3, #25 - 8004d24: 2201 movs r2, #1 - 8004d26: f000 f9dd bl 80050e4 - 8004d2a: 1e03 subs r3, r0, #0 - 8004d2c: d001 beq.n 8004d32 + 8004d2c: 2380 movs r3, #128 @ 0x80 + 8004d2e: 0219 lsls r1, r3, #8 + 8004d30: 68f8 ldr r0, [r7, #12] + 8004d32: 697b ldr r3, [r7, #20] + 8004d34: 9300 str r3, [sp, #0] + 8004d36: 2319 movs r3, #25 + 8004d38: 2201 movs r2, #1 + 8004d3a: f000 f9dd bl 80050f8 + 8004d3e: 1e03 subs r3, r0, #0 + 8004d40: d001 beq.n 8004d46 { return HAL_ERROR; - 8004d2e: 2301 movs r3, #1 - 8004d30: e0e7 b.n 8004f02 + 8004d42: 2301 movs r3, #1 + 8004d44: e0e7 b.n 8004f16 } hi2c->State = HAL_I2C_STATE_BUSY_RX; - 8004d32: 68fb ldr r3, [r7, #12] - 8004d34: 2241 movs r2, #65 @ 0x41 - 8004d36: 2122 movs r1, #34 @ 0x22 - 8004d38: 5499 strb r1, [r3, r2] + 8004d46: 68fb ldr r3, [r7, #12] + 8004d48: 2241 movs r2, #65 @ 0x41 + 8004d4a: 2122 movs r1, #34 @ 0x22 + 8004d4c: 5499 strb r1, [r3, r2] hi2c->Mode = HAL_I2C_MODE_MEM; - 8004d3a: 68fb ldr r3, [r7, #12] - 8004d3c: 2242 movs r2, #66 @ 0x42 - 8004d3e: 2140 movs r1, #64 @ 0x40 - 8004d40: 5499 strb r1, [r3, r2] + 8004d4e: 68fb ldr r3, [r7, #12] + 8004d50: 2242 movs r2, #66 @ 0x42 + 8004d52: 2140 movs r1, #64 @ 0x40 + 8004d54: 5499 strb r1, [r3, r2] hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 8004d42: 68fb ldr r3, [r7, #12] - 8004d44: 2200 movs r2, #0 - 8004d46: 645a str r2, [r3, #68] @ 0x44 + 8004d56: 68fb ldr r3, [r7, #12] + 8004d58: 2200 movs r2, #0 + 8004d5a: 645a str r2, [r3, #68] @ 0x44 /* Prepare transfer parameters */ hi2c->pBuffPtr = pData; - 8004d48: 68fb ldr r3, [r7, #12] - 8004d4a: 6aba ldr r2, [r7, #40] @ 0x28 - 8004d4c: 625a str r2, [r3, #36] @ 0x24 + 8004d5c: 68fb ldr r3, [r7, #12] + 8004d5e: 6aba ldr r2, [r7, #40] @ 0x28 + 8004d60: 625a str r2, [r3, #36] @ 0x24 hi2c->XferCount = Size; - 8004d4e: 68fb ldr r3, [r7, #12] - 8004d50: 222c movs r2, #44 @ 0x2c - 8004d52: 18ba adds r2, r7, r2 - 8004d54: 8812 ldrh r2, [r2, #0] - 8004d56: 855a strh r2, [r3, #42] @ 0x2a + 8004d62: 68fb ldr r3, [r7, #12] + 8004d64: 222c movs r2, #44 @ 0x2c + 8004d66: 18ba adds r2, r7, r2 + 8004d68: 8812 ldrh r2, [r2, #0] + 8004d6a: 855a strh r2, [r3, #42] @ 0x2a hi2c->XferISR = NULL; - 8004d58: 68fb ldr r3, [r7, #12] - 8004d5a: 2200 movs r2, #0 - 8004d5c: 635a str r2, [r3, #52] @ 0x34 + 8004d6c: 68fb ldr r3, [r7, #12] + 8004d6e: 2200 movs r2, #0 + 8004d70: 635a str r2, [r3, #52] @ 0x34 /* Send Slave Address and Memory Address */ if (I2C_RequestMemoryRead(hi2c, DevAddress, MemAddress, MemAddSize, Timeout, tickstart) != HAL_OK) - 8004d5e: 1dbb adds r3, r7, #6 - 8004d60: 881c ldrh r4, [r3, #0] - 8004d62: 2308 movs r3, #8 - 8004d64: 18fb adds r3, r7, r3 - 8004d66: 881a ldrh r2, [r3, #0] - 8004d68: 230a movs r3, #10 - 8004d6a: 18fb adds r3, r7, r3 - 8004d6c: 8819 ldrh r1, [r3, #0] - 8004d6e: 68f8 ldr r0, [r7, #12] - 8004d70: 697b ldr r3, [r7, #20] - 8004d72: 9301 str r3, [sp, #4] - 8004d74: 6b3b ldr r3, [r7, #48] @ 0x30 - 8004d76: 9300 str r3, [sp, #0] - 8004d78: 0023 movs r3, r4 - 8004d7a: f000 f92f bl 8004fdc - 8004d7e: 1e03 subs r3, r0, #0 - 8004d80: d005 beq.n 8004d8e + 8004d72: 1dbb adds r3, r7, #6 + 8004d74: 881c ldrh r4, [r3, #0] + 8004d76: 2308 movs r3, #8 + 8004d78: 18fb adds r3, r7, r3 + 8004d7a: 881a ldrh r2, [r3, #0] + 8004d7c: 230a movs r3, #10 + 8004d7e: 18fb adds r3, r7, r3 + 8004d80: 8819 ldrh r1, [r3, #0] + 8004d82: 68f8 ldr r0, [r7, #12] + 8004d84: 697b ldr r3, [r7, #20] + 8004d86: 9301 str r3, [sp, #4] + 8004d88: 6b3b ldr r3, [r7, #48] @ 0x30 + 8004d8a: 9300 str r3, [sp, #0] + 8004d8c: 0023 movs r3, r4 + 8004d8e: f000 f92f bl 8004ff0 + 8004d92: 1e03 subs r3, r0, #0 + 8004d94: d005 beq.n 8004da2 { /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 8004d82: 68fb ldr r3, [r7, #12] - 8004d84: 2240 movs r2, #64 @ 0x40 - 8004d86: 2100 movs r1, #0 - 8004d88: 5499 strb r1, [r3, r2] + 8004d96: 68fb ldr r3, [r7, #12] + 8004d98: 2240 movs r2, #64 @ 0x40 + 8004d9a: 2100 movs r1, #0 + 8004d9c: 5499 strb r1, [r3, r2] return HAL_ERROR; - 8004d8a: 2301 movs r3, #1 - 8004d8c: e0b9 b.n 8004f02 + 8004d9e: 2301 movs r3, #1 + 8004da0: e0b9 b.n 8004f16 } /* Send Slave Address */ /* Set NBYTES to write and reload if hi2c->XferCount > MAX_NBYTE_SIZE and generate RESTART */ if (hi2c->XferCount > MAX_NBYTE_SIZE) - 8004d8e: 68fb ldr r3, [r7, #12] - 8004d90: 8d5b ldrh r3, [r3, #42] @ 0x2a - 8004d92: b29b uxth r3, r3 - 8004d94: 2bff cmp r3, #255 @ 0xff - 8004d96: d911 bls.n 8004dbc + 8004da2: 68fb ldr r3, [r7, #12] + 8004da4: 8d5b ldrh r3, [r3, #42] @ 0x2a + 8004da6: b29b uxth r3, r3 + 8004da8: 2bff cmp r3, #255 @ 0xff + 8004daa: d911 bls.n 8004dd0 { hi2c->XferSize = 1U; - 8004d98: 68fb ldr r3, [r7, #12] - 8004d9a: 2201 movs r2, #1 - 8004d9c: 851a strh r2, [r3, #40] @ 0x28 + 8004dac: 68fb ldr r3, [r7, #12] + 8004dae: 2201 movs r2, #1 + 8004db0: 851a strh r2, [r3, #40] @ 0x28 I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_RELOAD_MODE, - 8004d9e: 68fb ldr r3, [r7, #12] - 8004da0: 8d1b ldrh r3, [r3, #40] @ 0x28 - 8004da2: b2da uxtb r2, r3 - 8004da4: 2380 movs r3, #128 @ 0x80 - 8004da6: 045c lsls r4, r3, #17 - 8004da8: 230a movs r3, #10 - 8004daa: 18fb adds r3, r7, r3 - 8004dac: 8819 ldrh r1, [r3, #0] - 8004dae: 68f8 ldr r0, [r7, #12] - 8004db0: 4b56 ldr r3, [pc, #344] @ (8004f0c ) - 8004db2: 9300 str r3, [sp, #0] - 8004db4: 0023 movs r3, r4 - 8004db6: f000 fb6f bl 8005498 - 8004dba: e012 b.n 8004de2 + 8004db2: 68fb ldr r3, [r7, #12] + 8004db4: 8d1b ldrh r3, [r3, #40] @ 0x28 + 8004db6: b2da uxtb r2, r3 + 8004db8: 2380 movs r3, #128 @ 0x80 + 8004dba: 045c lsls r4, r3, #17 + 8004dbc: 230a movs r3, #10 + 8004dbe: 18fb adds r3, r7, r3 + 8004dc0: 8819 ldrh r1, [r3, #0] + 8004dc2: 68f8 ldr r0, [r7, #12] + 8004dc4: 4b56 ldr r3, [pc, #344] @ (8004f20 ) + 8004dc6: 9300 str r3, [sp, #0] + 8004dc8: 0023 movs r3, r4 + 8004dca: f000 fb6f bl 80054ac + 8004dce: e012 b.n 8004df6 I2C_GENERATE_START_READ); } else { hi2c->XferSize = hi2c->XferCount; - 8004dbc: 68fb ldr r3, [r7, #12] - 8004dbe: 8d5b ldrh r3, [r3, #42] @ 0x2a - 8004dc0: b29a uxth r2, r3 - 8004dc2: 68fb ldr r3, [r7, #12] - 8004dc4: 851a strh r2, [r3, #40] @ 0x28 + 8004dd0: 68fb ldr r3, [r7, #12] + 8004dd2: 8d5b ldrh r3, [r3, #42] @ 0x2a + 8004dd4: b29a uxth r2, r3 + 8004dd6: 68fb ldr r3, [r7, #12] + 8004dd8: 851a strh r2, [r3, #40] @ 0x28 I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_AUTOEND_MODE, - 8004dc6: 68fb ldr r3, [r7, #12] - 8004dc8: 8d1b ldrh r3, [r3, #40] @ 0x28 - 8004dca: b2da uxtb r2, r3 - 8004dcc: 2380 movs r3, #128 @ 0x80 - 8004dce: 049c lsls r4, r3, #18 - 8004dd0: 230a movs r3, #10 - 8004dd2: 18fb adds r3, r7, r3 - 8004dd4: 8819 ldrh r1, [r3, #0] - 8004dd6: 68f8 ldr r0, [r7, #12] - 8004dd8: 4b4c ldr r3, [pc, #304] @ (8004f0c ) - 8004dda: 9300 str r3, [sp, #0] - 8004ddc: 0023 movs r3, r4 - 8004dde: f000 fb5b bl 8005498 + 8004dda: 68fb ldr r3, [r7, #12] + 8004ddc: 8d1b ldrh r3, [r3, #40] @ 0x28 + 8004dde: b2da uxtb r2, r3 + 8004de0: 2380 movs r3, #128 @ 0x80 + 8004de2: 049c lsls r4, r3, #18 + 8004de4: 230a movs r3, #10 + 8004de6: 18fb adds r3, r7, r3 + 8004de8: 8819 ldrh r1, [r3, #0] + 8004dea: 68f8 ldr r0, [r7, #12] + 8004dec: 4b4c ldr r3, [pc, #304] @ (8004f20 ) + 8004dee: 9300 str r3, [sp, #0] + 8004df0: 0023 movs r3, r4 + 8004df2: f000 fb5b bl 80054ac } do { /* Wait until RXNE flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_RXNE, RESET, Timeout, tickstart) != HAL_OK) - 8004de2: 6b3a ldr r2, [r7, #48] @ 0x30 - 8004de4: 68f8 ldr r0, [r7, #12] - 8004de6: 697b ldr r3, [r7, #20] - 8004de8: 9300 str r3, [sp, #0] - 8004dea: 0013 movs r3, r2 - 8004dec: 2200 movs r2, #0 - 8004dee: 2104 movs r1, #4 - 8004df0: f000 f978 bl 80050e4 - 8004df4: 1e03 subs r3, r0, #0 - 8004df6: d001 beq.n 8004dfc + 8004df6: 6b3a ldr r2, [r7, #48] @ 0x30 + 8004df8: 68f8 ldr r0, [r7, #12] + 8004dfa: 697b ldr r3, [r7, #20] + 8004dfc: 9300 str r3, [sp, #0] + 8004dfe: 0013 movs r3, r2 + 8004e00: 2200 movs r2, #0 + 8004e02: 2104 movs r1, #4 + 8004e04: f000 f978 bl 80050f8 + 8004e08: 1e03 subs r3, r0, #0 + 8004e0a: d001 beq.n 8004e10 { return HAL_ERROR; - 8004df8: 2301 movs r3, #1 - 8004dfa: e082 b.n 8004f02 + 8004e0c: 2301 movs r3, #1 + 8004e0e: e082 b.n 8004f16 } /* Read data from RXDR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->RXDR; - 8004dfc: 68fb ldr r3, [r7, #12] - 8004dfe: 681b ldr r3, [r3, #0] - 8004e00: 6a5a ldr r2, [r3, #36] @ 0x24 - 8004e02: 68fb ldr r3, [r7, #12] - 8004e04: 6a5b ldr r3, [r3, #36] @ 0x24 - 8004e06: b2d2 uxtb r2, r2 - 8004e08: 701a strb r2, [r3, #0] + 8004e10: 68fb ldr r3, [r7, #12] + 8004e12: 681b ldr r3, [r3, #0] + 8004e14: 6a5a ldr r2, [r3, #36] @ 0x24 + 8004e16: 68fb ldr r3, [r7, #12] + 8004e18: 6a5b ldr r3, [r3, #36] @ 0x24 + 8004e1a: b2d2 uxtb r2, r2 + 8004e1c: 701a strb r2, [r3, #0] /* Increment Buffer pointer */ hi2c->pBuffPtr++; - 8004e0a: 68fb ldr r3, [r7, #12] - 8004e0c: 6a5b ldr r3, [r3, #36] @ 0x24 - 8004e0e: 1c5a adds r2, r3, #1 - 8004e10: 68fb ldr r3, [r7, #12] - 8004e12: 625a str r2, [r3, #36] @ 0x24 + 8004e1e: 68fb ldr r3, [r7, #12] + 8004e20: 6a5b ldr r3, [r3, #36] @ 0x24 + 8004e22: 1c5a adds r2, r3, #1 + 8004e24: 68fb ldr r3, [r7, #12] + 8004e26: 625a str r2, [r3, #36] @ 0x24 hi2c->XferSize--; - 8004e14: 68fb ldr r3, [r7, #12] - 8004e16: 8d1b ldrh r3, [r3, #40] @ 0x28 - 8004e18: 3b01 subs r3, #1 - 8004e1a: b29a uxth r2, r3 - 8004e1c: 68fb ldr r3, [r7, #12] - 8004e1e: 851a strh r2, [r3, #40] @ 0x28 + 8004e28: 68fb ldr r3, [r7, #12] + 8004e2a: 8d1b ldrh r3, [r3, #40] @ 0x28 + 8004e2c: 3b01 subs r3, #1 + 8004e2e: b29a uxth r2, r3 + 8004e30: 68fb ldr r3, [r7, #12] + 8004e32: 851a strh r2, [r3, #40] @ 0x28 hi2c->XferCount--; - 8004e20: 68fb ldr r3, [r7, #12] - 8004e22: 8d5b ldrh r3, [r3, #42] @ 0x2a - 8004e24: b29b uxth r3, r3 - 8004e26: 3b01 subs r3, #1 - 8004e28: b29a uxth r2, r3 - 8004e2a: 68fb ldr r3, [r7, #12] - 8004e2c: 855a strh r2, [r3, #42] @ 0x2a + 8004e34: 68fb ldr r3, [r7, #12] + 8004e36: 8d5b ldrh r3, [r3, #42] @ 0x2a + 8004e38: b29b uxth r3, r3 + 8004e3a: 3b01 subs r3, #1 + 8004e3c: b29a uxth r2, r3 + 8004e3e: 68fb ldr r3, [r7, #12] + 8004e40: 855a strh r2, [r3, #42] @ 0x2a if ((hi2c->XferCount != 0U) && (hi2c->XferSize == 0U)) - 8004e2e: 68fb ldr r3, [r7, #12] - 8004e30: 8d5b ldrh r3, [r3, #42] @ 0x2a - 8004e32: b29b uxth r3, r3 - 8004e34: 2b00 cmp r3, #0 - 8004e36: d03a beq.n 8004eae - 8004e38: 68fb ldr r3, [r7, #12] - 8004e3a: 8d1b ldrh r3, [r3, #40] @ 0x28 - 8004e3c: 2b00 cmp r3, #0 - 8004e3e: d136 bne.n 8004eae + 8004e42: 68fb ldr r3, [r7, #12] + 8004e44: 8d5b ldrh r3, [r3, #42] @ 0x2a + 8004e46: b29b uxth r3, r3 + 8004e48: 2b00 cmp r3, #0 + 8004e4a: d03a beq.n 8004ec2 + 8004e4c: 68fb ldr r3, [r7, #12] + 8004e4e: 8d1b ldrh r3, [r3, #40] @ 0x28 + 8004e50: 2b00 cmp r3, #0 + 8004e52: d136 bne.n 8004ec2 { /* Wait until TCR flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_TCR, RESET, Timeout, tickstart) != HAL_OK) - 8004e40: 6b3a ldr r2, [r7, #48] @ 0x30 - 8004e42: 68f8 ldr r0, [r7, #12] - 8004e44: 697b ldr r3, [r7, #20] - 8004e46: 9300 str r3, [sp, #0] - 8004e48: 0013 movs r3, r2 - 8004e4a: 2200 movs r2, #0 - 8004e4c: 2180 movs r1, #128 @ 0x80 - 8004e4e: f000 f949 bl 80050e4 - 8004e52: 1e03 subs r3, r0, #0 - 8004e54: d001 beq.n 8004e5a + 8004e54: 6b3a ldr r2, [r7, #48] @ 0x30 + 8004e56: 68f8 ldr r0, [r7, #12] + 8004e58: 697b ldr r3, [r7, #20] + 8004e5a: 9300 str r3, [sp, #0] + 8004e5c: 0013 movs r3, r2 + 8004e5e: 2200 movs r2, #0 + 8004e60: 2180 movs r1, #128 @ 0x80 + 8004e62: f000 f949 bl 80050f8 + 8004e66: 1e03 subs r3, r0, #0 + 8004e68: d001 beq.n 8004e6e { return HAL_ERROR; - 8004e56: 2301 movs r3, #1 - 8004e58: e053 b.n 8004f02 + 8004e6a: 2301 movs r3, #1 + 8004e6c: e053 b.n 8004f16 } if (hi2c->XferCount > MAX_NBYTE_SIZE) - 8004e5a: 68fb ldr r3, [r7, #12] - 8004e5c: 8d5b ldrh r3, [r3, #42] @ 0x2a - 8004e5e: b29b uxth r3, r3 - 8004e60: 2bff cmp r3, #255 @ 0xff - 8004e62: d911 bls.n 8004e88 + 8004e6e: 68fb ldr r3, [r7, #12] + 8004e70: 8d5b ldrh r3, [r3, #42] @ 0x2a + 8004e72: b29b uxth r3, r3 + 8004e74: 2bff cmp r3, #255 @ 0xff + 8004e76: d911 bls.n 8004e9c { hi2c->XferSize = 1U; - 8004e64: 68fb ldr r3, [r7, #12] - 8004e66: 2201 movs r2, #1 - 8004e68: 851a strh r2, [r3, #40] @ 0x28 + 8004e78: 68fb ldr r3, [r7, #12] + 8004e7a: 2201 movs r2, #1 + 8004e7c: 851a strh r2, [r3, #40] @ 0x28 I2C_TransferConfig(hi2c, DevAddress, (uint8_t) hi2c->XferSize, I2C_RELOAD_MODE, - 8004e6a: 68fb ldr r3, [r7, #12] - 8004e6c: 8d1b ldrh r3, [r3, #40] @ 0x28 - 8004e6e: b2da uxtb r2, r3 - 8004e70: 2380 movs r3, #128 @ 0x80 - 8004e72: 045c lsls r4, r3, #17 - 8004e74: 230a movs r3, #10 - 8004e76: 18fb adds r3, r7, r3 - 8004e78: 8819 ldrh r1, [r3, #0] - 8004e7a: 68f8 ldr r0, [r7, #12] - 8004e7c: 2300 movs r3, #0 - 8004e7e: 9300 str r3, [sp, #0] - 8004e80: 0023 movs r3, r4 - 8004e82: f000 fb09 bl 8005498 - 8004e86: e012 b.n 8004eae + 8004e7e: 68fb ldr r3, [r7, #12] + 8004e80: 8d1b ldrh r3, [r3, #40] @ 0x28 + 8004e82: b2da uxtb r2, r3 + 8004e84: 2380 movs r3, #128 @ 0x80 + 8004e86: 045c lsls r4, r3, #17 + 8004e88: 230a movs r3, #10 + 8004e8a: 18fb adds r3, r7, r3 + 8004e8c: 8819 ldrh r1, [r3, #0] + 8004e8e: 68f8 ldr r0, [r7, #12] + 8004e90: 2300 movs r3, #0 + 8004e92: 9300 str r3, [sp, #0] + 8004e94: 0023 movs r3, r4 + 8004e96: f000 fb09 bl 80054ac + 8004e9a: e012 b.n 8004ec2 I2C_NO_STARTSTOP); } else { hi2c->XferSize = hi2c->XferCount; - 8004e88: 68fb ldr r3, [r7, #12] - 8004e8a: 8d5b ldrh r3, [r3, #42] @ 0x2a - 8004e8c: b29a uxth r2, r3 - 8004e8e: 68fb ldr r3, [r7, #12] - 8004e90: 851a strh r2, [r3, #40] @ 0x28 + 8004e9c: 68fb ldr r3, [r7, #12] + 8004e9e: 8d5b ldrh r3, [r3, #42] @ 0x2a + 8004ea0: b29a uxth r2, r3 + 8004ea2: 68fb ldr r3, [r7, #12] + 8004ea4: 851a strh r2, [r3, #40] @ 0x28 I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_AUTOEND_MODE, - 8004e92: 68fb ldr r3, [r7, #12] - 8004e94: 8d1b ldrh r3, [r3, #40] @ 0x28 - 8004e96: b2da uxtb r2, r3 - 8004e98: 2380 movs r3, #128 @ 0x80 - 8004e9a: 049c lsls r4, r3, #18 - 8004e9c: 230a movs r3, #10 - 8004e9e: 18fb adds r3, r7, r3 - 8004ea0: 8819 ldrh r1, [r3, #0] - 8004ea2: 68f8 ldr r0, [r7, #12] - 8004ea4: 2300 movs r3, #0 - 8004ea6: 9300 str r3, [sp, #0] - 8004ea8: 0023 movs r3, r4 - 8004eaa: f000 faf5 bl 8005498 + 8004ea6: 68fb ldr r3, [r7, #12] + 8004ea8: 8d1b ldrh r3, [r3, #40] @ 0x28 + 8004eaa: b2da uxtb r2, r3 + 8004eac: 2380 movs r3, #128 @ 0x80 + 8004eae: 049c lsls r4, r3, #18 + 8004eb0: 230a movs r3, #10 + 8004eb2: 18fb adds r3, r7, r3 + 8004eb4: 8819 ldrh r1, [r3, #0] + 8004eb6: 68f8 ldr r0, [r7, #12] + 8004eb8: 2300 movs r3, #0 + 8004eba: 9300 str r3, [sp, #0] + 8004ebc: 0023 movs r3, r4 + 8004ebe: f000 faf5 bl 80054ac I2C_NO_STARTSTOP); } } } while (hi2c->XferCount > 0U); - 8004eae: 68fb ldr r3, [r7, #12] - 8004eb0: 8d5b ldrh r3, [r3, #42] @ 0x2a - 8004eb2: b29b uxth r3, r3 - 8004eb4: 2b00 cmp r3, #0 - 8004eb6: d194 bne.n 8004de2 + 8004ec2: 68fb ldr r3, [r7, #12] + 8004ec4: 8d5b ldrh r3, [r3, #42] @ 0x2a + 8004ec6: b29b uxth r3, r3 + 8004ec8: 2b00 cmp r3, #0 + 8004eca: d194 bne.n 8004df6 /* No need to Check TC flag, with AUTOEND mode the stop is automatically generated */ /* Wait until STOPF flag is reset */ if (I2C_WaitOnSTOPFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) - 8004eb8: 697a ldr r2, [r7, #20] - 8004eba: 6b39 ldr r1, [r7, #48] @ 0x30 - 8004ebc: 68fb ldr r3, [r7, #12] - 8004ebe: 0018 movs r0, r3 - 8004ec0: f000 f9ae bl 8005220 - 8004ec4: 1e03 subs r3, r0, #0 - 8004ec6: d001 beq.n 8004ecc + 8004ecc: 697a ldr r2, [r7, #20] + 8004ece: 6b39 ldr r1, [r7, #48] @ 0x30 + 8004ed0: 68fb ldr r3, [r7, #12] + 8004ed2: 0018 movs r0, r3 + 8004ed4: f000 f9ae bl 8005234 + 8004ed8: 1e03 subs r3, r0, #0 + 8004eda: d001 beq.n 8004ee0 { return HAL_ERROR; - 8004ec8: 2301 movs r3, #1 - 8004eca: e01a b.n 8004f02 + 8004edc: 2301 movs r3, #1 + 8004ede: e01a b.n 8004f16 } /* Clear STOP Flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); - 8004ecc: 68fb ldr r3, [r7, #12] - 8004ece: 681b ldr r3, [r3, #0] - 8004ed0: 2220 movs r2, #32 - 8004ed2: 61da str r2, [r3, #28] + 8004ee0: 68fb ldr r3, [r7, #12] + 8004ee2: 681b ldr r3, [r3, #0] + 8004ee4: 2220 movs r2, #32 + 8004ee6: 61da str r2, [r3, #28] /* Clear Configuration Register 2 */ I2C_RESET_CR2(hi2c); - 8004ed4: 68fb ldr r3, [r7, #12] - 8004ed6: 681b ldr r3, [r3, #0] - 8004ed8: 685a ldr r2, [r3, #4] - 8004eda: 68fb ldr r3, [r7, #12] - 8004edc: 681b ldr r3, [r3, #0] - 8004ede: 490c ldr r1, [pc, #48] @ (8004f10 ) - 8004ee0: 400a ands r2, r1 - 8004ee2: 605a str r2, [r3, #4] + 8004ee8: 68fb ldr r3, [r7, #12] + 8004eea: 681b ldr r3, [r3, #0] + 8004eec: 685a ldr r2, [r3, #4] + 8004eee: 68fb ldr r3, [r7, #12] + 8004ef0: 681b ldr r3, [r3, #0] + 8004ef2: 490c ldr r1, [pc, #48] @ (8004f24 ) + 8004ef4: 400a ands r2, r1 + 8004ef6: 605a str r2, [r3, #4] hi2c->State = HAL_I2C_STATE_READY; - 8004ee4: 68fb ldr r3, [r7, #12] - 8004ee6: 2241 movs r2, #65 @ 0x41 - 8004ee8: 2120 movs r1, #32 - 8004eea: 5499 strb r1, [r3, r2] + 8004ef8: 68fb ldr r3, [r7, #12] + 8004efa: 2241 movs r2, #65 @ 0x41 + 8004efc: 2120 movs r1, #32 + 8004efe: 5499 strb r1, [r3, r2] hi2c->Mode = HAL_I2C_MODE_NONE; - 8004eec: 68fb ldr r3, [r7, #12] - 8004eee: 2242 movs r2, #66 @ 0x42 - 8004ef0: 2100 movs r1, #0 - 8004ef2: 5499 strb r1, [r3, r2] + 8004f00: 68fb ldr r3, [r7, #12] + 8004f02: 2242 movs r2, #66 @ 0x42 + 8004f04: 2100 movs r1, #0 + 8004f06: 5499 strb r1, [r3, r2] /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 8004ef4: 68fb ldr r3, [r7, #12] - 8004ef6: 2240 movs r2, #64 @ 0x40 - 8004ef8: 2100 movs r1, #0 - 8004efa: 5499 strb r1, [r3, r2] + 8004f08: 68fb ldr r3, [r7, #12] + 8004f0a: 2240 movs r2, #64 @ 0x40 + 8004f0c: 2100 movs r1, #0 + 8004f0e: 5499 strb r1, [r3, r2] return HAL_OK; - 8004efc: 2300 movs r3, #0 - 8004efe: e000 b.n 8004f02 + 8004f10: 2300 movs r3, #0 + 8004f12: e000 b.n 8004f16 } else { return HAL_BUSY; - 8004f00: 2302 movs r3, #2 + 8004f14: 2302 movs r3, #2 } } - 8004f02: 0018 movs r0, r3 - 8004f04: 46bd mov sp, r7 - 8004f06: b007 add sp, #28 - 8004f08: bd90 pop {r4, r7, pc} - 8004f0a: 46c0 nop @ (mov r8, r8) - 8004f0c: 80002400 .word 0x80002400 - 8004f10: fe00e800 .word 0xfe00e800 + 8004f16: 0018 movs r0, r3 + 8004f18: 46bd mov sp, r7 + 8004f1a: b007 add sp, #28 + 8004f1c: bd90 pop {r4, r7, pc} + 8004f1e: 46c0 nop @ (mov r8, r8) + 8004f20: 80002400 .word 0x80002400 + 8004f24: fe00e800 .word 0xfe00e800 -08004f14 : +08004f28 : * @retval HAL status */ static HAL_StatusTypeDef I2C_RequestMemoryWrite(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint32_t Timeout, uint32_t Tickstart) { - 8004f14: b5b0 push {r4, r5, r7, lr} - 8004f16: b086 sub sp, #24 - 8004f18: af02 add r7, sp, #8 - 8004f1a: 60f8 str r0, [r7, #12] - 8004f1c: 000c movs r4, r1 - 8004f1e: 0010 movs r0, r2 - 8004f20: 0019 movs r1, r3 - 8004f22: 250a movs r5, #10 - 8004f24: 197b adds r3, r7, r5 - 8004f26: 1c22 adds r2, r4, #0 - 8004f28: 801a strh r2, [r3, #0] - 8004f2a: 2308 movs r3, #8 - 8004f2c: 18fb adds r3, r7, r3 - 8004f2e: 1c02 adds r2, r0, #0 - 8004f30: 801a strh r2, [r3, #0] - 8004f32: 1dbb adds r3, r7, #6 - 8004f34: 1c0a adds r2, r1, #0 - 8004f36: 801a strh r2, [r3, #0] + 8004f28: b5b0 push {r4, r5, r7, lr} + 8004f2a: b086 sub sp, #24 + 8004f2c: af02 add r7, sp, #8 + 8004f2e: 60f8 str r0, [r7, #12] + 8004f30: 000c movs r4, r1 + 8004f32: 0010 movs r0, r2 + 8004f34: 0019 movs r1, r3 + 8004f36: 250a movs r5, #10 + 8004f38: 197b adds r3, r7, r5 + 8004f3a: 1c22 adds r2, r4, #0 + 8004f3c: 801a strh r2, [r3, #0] + 8004f3e: 2308 movs r3, #8 + 8004f40: 18fb adds r3, r7, r3 + 8004f42: 1c02 adds r2, r0, #0 + 8004f44: 801a strh r2, [r3, #0] + 8004f46: 1dbb adds r3, r7, #6 + 8004f48: 1c0a adds r2, r1, #0 + 8004f4a: 801a strh r2, [r3, #0] I2C_TransferConfig(hi2c, DevAddress, (uint8_t)MemAddSize, I2C_RELOAD_MODE, I2C_GENERATE_START_WRITE); - 8004f38: 1dbb adds r3, r7, #6 - 8004f3a: 881b ldrh r3, [r3, #0] - 8004f3c: b2da uxtb r2, r3 - 8004f3e: 2380 movs r3, #128 @ 0x80 - 8004f40: 045c lsls r4, r3, #17 - 8004f42: 197b adds r3, r7, r5 - 8004f44: 8819 ldrh r1, [r3, #0] - 8004f46: 68f8 ldr r0, [r7, #12] - 8004f48: 4b23 ldr r3, [pc, #140] @ (8004fd8 ) - 8004f4a: 9300 str r3, [sp, #0] - 8004f4c: 0023 movs r3, r4 - 8004f4e: f000 faa3 bl 8005498 + 8004f4c: 1dbb adds r3, r7, #6 + 8004f4e: 881b ldrh r3, [r3, #0] + 8004f50: b2da uxtb r2, r3 + 8004f52: 2380 movs r3, #128 @ 0x80 + 8004f54: 045c lsls r4, r3, #17 + 8004f56: 197b adds r3, r7, r5 + 8004f58: 8819 ldrh r1, [r3, #0] + 8004f5a: 68f8 ldr r0, [r7, #12] + 8004f5c: 4b23 ldr r3, [pc, #140] @ (8004fec ) + 8004f5e: 9300 str r3, [sp, #0] + 8004f60: 0023 movs r3, r4 + 8004f62: f000 faa3 bl 80054ac /* Wait until TXIS flag is set */ if (I2C_WaitOnTXISFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) - 8004f52: 6a7a ldr r2, [r7, #36] @ 0x24 - 8004f54: 6a39 ldr r1, [r7, #32] - 8004f56: 68fb ldr r3, [r7, #12] - 8004f58: 0018 movs r0, r3 - 8004f5a: f000 f91b bl 8005194 - 8004f5e: 1e03 subs r3, r0, #0 - 8004f60: d001 beq.n 8004f66 + 8004f66: 6a7a ldr r2, [r7, #36] @ 0x24 + 8004f68: 6a39 ldr r1, [r7, #32] + 8004f6a: 68fb ldr r3, [r7, #12] + 8004f6c: 0018 movs r0, r3 + 8004f6e: f000 f91b bl 80051a8 + 8004f72: 1e03 subs r3, r0, #0 + 8004f74: d001 beq.n 8004f7a { return HAL_ERROR; - 8004f62: 2301 movs r3, #1 - 8004f64: e033 b.n 8004fce + 8004f76: 2301 movs r3, #1 + 8004f78: e033 b.n 8004fe2 } /* If Memory address size is 8Bit */ if (MemAddSize == I2C_MEMADD_SIZE_8BIT) - 8004f66: 1dbb adds r3, r7, #6 - 8004f68: 881b ldrh r3, [r3, #0] - 8004f6a: 2b01 cmp r3, #1 - 8004f6c: d107 bne.n 8004f7e + 8004f7a: 1dbb adds r3, r7, #6 + 8004f7c: 881b ldrh r3, [r3, #0] + 8004f7e: 2b01 cmp r3, #1 + 8004f80: d107 bne.n 8004f92 { /* Send Memory Address */ hi2c->Instance->TXDR = I2C_MEM_ADD_LSB(MemAddress); - 8004f6e: 2308 movs r3, #8 - 8004f70: 18fb adds r3, r7, r3 - 8004f72: 881b ldrh r3, [r3, #0] - 8004f74: b2da uxtb r2, r3 - 8004f76: 68fb ldr r3, [r7, #12] - 8004f78: 681b ldr r3, [r3, #0] - 8004f7a: 629a str r2, [r3, #40] @ 0x28 - 8004f7c: e019 b.n 8004fb2 + 8004f82: 2308 movs r3, #8 + 8004f84: 18fb adds r3, r7, r3 + 8004f86: 881b ldrh r3, [r3, #0] + 8004f88: b2da uxtb r2, r3 + 8004f8a: 68fb ldr r3, [r7, #12] + 8004f8c: 681b ldr r3, [r3, #0] + 8004f8e: 629a str r2, [r3, #40] @ 0x28 + 8004f90: e019 b.n 8004fc6 } /* If Memory address size is 16Bit */ else { /* Send MSB of Memory Address */ hi2c->Instance->TXDR = I2C_MEM_ADD_MSB(MemAddress); - 8004f7e: 2308 movs r3, #8 - 8004f80: 18fb adds r3, r7, r3 - 8004f82: 881b ldrh r3, [r3, #0] - 8004f84: 0a1b lsrs r3, r3, #8 - 8004f86: b29b uxth r3, r3 - 8004f88: b2da uxtb r2, r3 - 8004f8a: 68fb ldr r3, [r7, #12] - 8004f8c: 681b ldr r3, [r3, #0] - 8004f8e: 629a str r2, [r3, #40] @ 0x28 + 8004f92: 2308 movs r3, #8 + 8004f94: 18fb adds r3, r7, r3 + 8004f96: 881b ldrh r3, [r3, #0] + 8004f98: 0a1b lsrs r3, r3, #8 + 8004f9a: b29b uxth r3, r3 + 8004f9c: b2da uxtb r2, r3 + 8004f9e: 68fb ldr r3, [r7, #12] + 8004fa0: 681b ldr r3, [r3, #0] + 8004fa2: 629a str r2, [r3, #40] @ 0x28 /* Wait until TXIS flag is set */ if (I2C_WaitOnTXISFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) - 8004f90: 6a7a ldr r2, [r7, #36] @ 0x24 - 8004f92: 6a39 ldr r1, [r7, #32] - 8004f94: 68fb ldr r3, [r7, #12] - 8004f96: 0018 movs r0, r3 - 8004f98: f000 f8fc bl 8005194 - 8004f9c: 1e03 subs r3, r0, #0 - 8004f9e: d001 beq.n 8004fa4 + 8004fa4: 6a7a ldr r2, [r7, #36] @ 0x24 + 8004fa6: 6a39 ldr r1, [r7, #32] + 8004fa8: 68fb ldr r3, [r7, #12] + 8004faa: 0018 movs r0, r3 + 8004fac: f000 f8fc bl 80051a8 + 8004fb0: 1e03 subs r3, r0, #0 + 8004fb2: d001 beq.n 8004fb8 { return HAL_ERROR; - 8004fa0: 2301 movs r3, #1 - 8004fa2: e014 b.n 8004fce + 8004fb4: 2301 movs r3, #1 + 8004fb6: e014 b.n 8004fe2 } /* Send LSB of Memory Address */ hi2c->Instance->TXDR = I2C_MEM_ADD_LSB(MemAddress); - 8004fa4: 2308 movs r3, #8 - 8004fa6: 18fb adds r3, r7, r3 - 8004fa8: 881b ldrh r3, [r3, #0] - 8004faa: b2da uxtb r2, r3 - 8004fac: 68fb ldr r3, [r7, #12] - 8004fae: 681b ldr r3, [r3, #0] - 8004fb0: 629a str r2, [r3, #40] @ 0x28 + 8004fb8: 2308 movs r3, #8 + 8004fba: 18fb adds r3, r7, r3 + 8004fbc: 881b ldrh r3, [r3, #0] + 8004fbe: b2da uxtb r2, r3 + 8004fc0: 68fb ldr r3, [r7, #12] + 8004fc2: 681b ldr r3, [r3, #0] + 8004fc4: 629a str r2, [r3, #40] @ 0x28 } /* Wait until TCR flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_TCR, RESET, Timeout, Tickstart) != HAL_OK) - 8004fb2: 6a3a ldr r2, [r7, #32] - 8004fb4: 68f8 ldr r0, [r7, #12] - 8004fb6: 6a7b ldr r3, [r7, #36] @ 0x24 - 8004fb8: 9300 str r3, [sp, #0] - 8004fba: 0013 movs r3, r2 - 8004fbc: 2200 movs r2, #0 - 8004fbe: 2180 movs r1, #128 @ 0x80 - 8004fc0: f000 f890 bl 80050e4 - 8004fc4: 1e03 subs r3, r0, #0 - 8004fc6: d001 beq.n 8004fcc + 8004fc6: 6a3a ldr r2, [r7, #32] + 8004fc8: 68f8 ldr r0, [r7, #12] + 8004fca: 6a7b ldr r3, [r7, #36] @ 0x24 + 8004fcc: 9300 str r3, [sp, #0] + 8004fce: 0013 movs r3, r2 + 8004fd0: 2200 movs r2, #0 + 8004fd2: 2180 movs r1, #128 @ 0x80 + 8004fd4: f000 f890 bl 80050f8 + 8004fd8: 1e03 subs r3, r0, #0 + 8004fda: d001 beq.n 8004fe0 { return HAL_ERROR; - 8004fc8: 2301 movs r3, #1 - 8004fca: e000 b.n 8004fce + 8004fdc: 2301 movs r3, #1 + 8004fde: e000 b.n 8004fe2 } return HAL_OK; - 8004fcc: 2300 movs r3, #0 + 8004fe0: 2300 movs r3, #0 } - 8004fce: 0018 movs r0, r3 - 8004fd0: 46bd mov sp, r7 - 8004fd2: b004 add sp, #16 - 8004fd4: bdb0 pop {r4, r5, r7, pc} - 8004fd6: 46c0 nop @ (mov r8, r8) - 8004fd8: 80002000 .word 0x80002000 + 8004fe2: 0018 movs r0, r3 + 8004fe4: 46bd mov sp, r7 + 8004fe6: b004 add sp, #16 + 8004fe8: bdb0 pop {r4, r5, r7, pc} + 8004fea: 46c0 nop @ (mov r8, r8) + 8004fec: 80002000 .word 0x80002000 -08004fdc : +08004ff0 : * @retval HAL status */ static HAL_StatusTypeDef I2C_RequestMemoryRead(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint32_t Timeout, uint32_t Tickstart) { - 8004fdc: b5b0 push {r4, r5, r7, lr} - 8004fde: b086 sub sp, #24 - 8004fe0: af02 add r7, sp, #8 - 8004fe2: 60f8 str r0, [r7, #12] - 8004fe4: 000c movs r4, r1 - 8004fe6: 0010 movs r0, r2 - 8004fe8: 0019 movs r1, r3 - 8004fea: 250a movs r5, #10 - 8004fec: 197b adds r3, r7, r5 - 8004fee: 1c22 adds r2, r4, #0 - 8004ff0: 801a strh r2, [r3, #0] - 8004ff2: 2308 movs r3, #8 - 8004ff4: 18fb adds r3, r7, r3 - 8004ff6: 1c02 adds r2, r0, #0 - 8004ff8: 801a strh r2, [r3, #0] - 8004ffa: 1dbb adds r3, r7, #6 - 8004ffc: 1c0a adds r2, r1, #0 - 8004ffe: 801a strh r2, [r3, #0] + 8004ff0: b5b0 push {r4, r5, r7, lr} + 8004ff2: b086 sub sp, #24 + 8004ff4: af02 add r7, sp, #8 + 8004ff6: 60f8 str r0, [r7, #12] + 8004ff8: 000c movs r4, r1 + 8004ffa: 0010 movs r0, r2 + 8004ffc: 0019 movs r1, r3 + 8004ffe: 250a movs r5, #10 + 8005000: 197b adds r3, r7, r5 + 8005002: 1c22 adds r2, r4, #0 + 8005004: 801a strh r2, [r3, #0] + 8005006: 2308 movs r3, #8 + 8005008: 18fb adds r3, r7, r3 + 800500a: 1c02 adds r2, r0, #0 + 800500c: 801a strh r2, [r3, #0] + 800500e: 1dbb adds r3, r7, #6 + 8005010: 1c0a adds r2, r1, #0 + 8005012: 801a strh r2, [r3, #0] I2C_TransferConfig(hi2c, DevAddress, (uint8_t)MemAddSize, I2C_SOFTEND_MODE, I2C_GENERATE_START_WRITE); - 8005000: 1dbb adds r3, r7, #6 - 8005002: 881b ldrh r3, [r3, #0] - 8005004: b2da uxtb r2, r3 - 8005006: 197b adds r3, r7, r5 - 8005008: 8819 ldrh r1, [r3, #0] - 800500a: 68f8 ldr r0, [r7, #12] - 800500c: 4b23 ldr r3, [pc, #140] @ (800509c ) - 800500e: 9300 str r3, [sp, #0] - 8005010: 2300 movs r3, #0 - 8005012: f000 fa41 bl 8005498 + 8005014: 1dbb adds r3, r7, #6 + 8005016: 881b ldrh r3, [r3, #0] + 8005018: b2da uxtb r2, r3 + 800501a: 197b adds r3, r7, r5 + 800501c: 8819 ldrh r1, [r3, #0] + 800501e: 68f8 ldr r0, [r7, #12] + 8005020: 4b23 ldr r3, [pc, #140] @ (80050b0 ) + 8005022: 9300 str r3, [sp, #0] + 8005024: 2300 movs r3, #0 + 8005026: f000 fa41 bl 80054ac /* Wait until TXIS flag is set */ if (I2C_WaitOnTXISFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) - 8005016: 6a7a ldr r2, [r7, #36] @ 0x24 - 8005018: 6a39 ldr r1, [r7, #32] - 800501a: 68fb ldr r3, [r7, #12] - 800501c: 0018 movs r0, r3 - 800501e: f000 f8b9 bl 8005194 - 8005022: 1e03 subs r3, r0, #0 - 8005024: d001 beq.n 800502a + 800502a: 6a7a ldr r2, [r7, #36] @ 0x24 + 800502c: 6a39 ldr r1, [r7, #32] + 800502e: 68fb ldr r3, [r7, #12] + 8005030: 0018 movs r0, r3 + 8005032: f000 f8b9 bl 80051a8 + 8005036: 1e03 subs r3, r0, #0 + 8005038: d001 beq.n 800503e { return HAL_ERROR; - 8005026: 2301 movs r3, #1 - 8005028: e033 b.n 8005092 + 800503a: 2301 movs r3, #1 + 800503c: e033 b.n 80050a6 } /* If Memory address size is 8Bit */ if (MemAddSize == I2C_MEMADD_SIZE_8BIT) - 800502a: 1dbb adds r3, r7, #6 - 800502c: 881b ldrh r3, [r3, #0] - 800502e: 2b01 cmp r3, #1 - 8005030: d107 bne.n 8005042 + 800503e: 1dbb adds r3, r7, #6 + 8005040: 881b ldrh r3, [r3, #0] + 8005042: 2b01 cmp r3, #1 + 8005044: d107 bne.n 8005056 { /* Send Memory Address */ hi2c->Instance->TXDR = I2C_MEM_ADD_LSB(MemAddress); - 8005032: 2308 movs r3, #8 - 8005034: 18fb adds r3, r7, r3 - 8005036: 881b ldrh r3, [r3, #0] - 8005038: b2da uxtb r2, r3 - 800503a: 68fb ldr r3, [r7, #12] - 800503c: 681b ldr r3, [r3, #0] - 800503e: 629a str r2, [r3, #40] @ 0x28 - 8005040: e019 b.n 8005076 + 8005046: 2308 movs r3, #8 + 8005048: 18fb adds r3, r7, r3 + 800504a: 881b ldrh r3, [r3, #0] + 800504c: b2da uxtb r2, r3 + 800504e: 68fb ldr r3, [r7, #12] + 8005050: 681b ldr r3, [r3, #0] + 8005052: 629a str r2, [r3, #40] @ 0x28 + 8005054: e019 b.n 800508a } /* If Memory address size is 16Bit */ else { /* Send MSB of Memory Address */ hi2c->Instance->TXDR = I2C_MEM_ADD_MSB(MemAddress); - 8005042: 2308 movs r3, #8 - 8005044: 18fb adds r3, r7, r3 - 8005046: 881b ldrh r3, [r3, #0] - 8005048: 0a1b lsrs r3, r3, #8 - 800504a: b29b uxth r3, r3 - 800504c: b2da uxtb r2, r3 - 800504e: 68fb ldr r3, [r7, #12] - 8005050: 681b ldr r3, [r3, #0] - 8005052: 629a str r2, [r3, #40] @ 0x28 + 8005056: 2308 movs r3, #8 + 8005058: 18fb adds r3, r7, r3 + 800505a: 881b ldrh r3, [r3, #0] + 800505c: 0a1b lsrs r3, r3, #8 + 800505e: b29b uxth r3, r3 + 8005060: b2da uxtb r2, r3 + 8005062: 68fb ldr r3, [r7, #12] + 8005064: 681b ldr r3, [r3, #0] + 8005066: 629a str r2, [r3, #40] @ 0x28 /* Wait until TXIS flag is set */ if (I2C_WaitOnTXISFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) - 8005054: 6a7a ldr r2, [r7, #36] @ 0x24 - 8005056: 6a39 ldr r1, [r7, #32] - 8005058: 68fb ldr r3, [r7, #12] - 800505a: 0018 movs r0, r3 - 800505c: f000 f89a bl 8005194 - 8005060: 1e03 subs r3, r0, #0 - 8005062: d001 beq.n 8005068 + 8005068: 6a7a ldr r2, [r7, #36] @ 0x24 + 800506a: 6a39 ldr r1, [r7, #32] + 800506c: 68fb ldr r3, [r7, #12] + 800506e: 0018 movs r0, r3 + 8005070: f000 f89a bl 80051a8 + 8005074: 1e03 subs r3, r0, #0 + 8005076: d001 beq.n 800507c { return HAL_ERROR; - 8005064: 2301 movs r3, #1 - 8005066: e014 b.n 8005092 + 8005078: 2301 movs r3, #1 + 800507a: e014 b.n 80050a6 } /* Send LSB of Memory Address */ hi2c->Instance->TXDR = I2C_MEM_ADD_LSB(MemAddress); - 8005068: 2308 movs r3, #8 - 800506a: 18fb adds r3, r7, r3 - 800506c: 881b ldrh r3, [r3, #0] - 800506e: b2da uxtb r2, r3 - 8005070: 68fb ldr r3, [r7, #12] - 8005072: 681b ldr r3, [r3, #0] - 8005074: 629a str r2, [r3, #40] @ 0x28 + 800507c: 2308 movs r3, #8 + 800507e: 18fb adds r3, r7, r3 + 8005080: 881b ldrh r3, [r3, #0] + 8005082: b2da uxtb r2, r3 + 8005084: 68fb ldr r3, [r7, #12] + 8005086: 681b ldr r3, [r3, #0] + 8005088: 629a str r2, [r3, #40] @ 0x28 } /* Wait until TC flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_TC, RESET, Timeout, Tickstart) != HAL_OK) - 8005076: 6a3a ldr r2, [r7, #32] - 8005078: 68f8 ldr r0, [r7, #12] - 800507a: 6a7b ldr r3, [r7, #36] @ 0x24 - 800507c: 9300 str r3, [sp, #0] - 800507e: 0013 movs r3, r2 - 8005080: 2200 movs r2, #0 - 8005082: 2140 movs r1, #64 @ 0x40 - 8005084: f000 f82e bl 80050e4 - 8005088: 1e03 subs r3, r0, #0 - 800508a: d001 beq.n 8005090 + 800508a: 6a3a ldr r2, [r7, #32] + 800508c: 68f8 ldr r0, [r7, #12] + 800508e: 6a7b ldr r3, [r7, #36] @ 0x24 + 8005090: 9300 str r3, [sp, #0] + 8005092: 0013 movs r3, r2 + 8005094: 2200 movs r2, #0 + 8005096: 2140 movs r1, #64 @ 0x40 + 8005098: f000 f82e bl 80050f8 + 800509c: 1e03 subs r3, r0, #0 + 800509e: d001 beq.n 80050a4 { return HAL_ERROR; - 800508c: 2301 movs r3, #1 - 800508e: e000 b.n 8005092 + 80050a0: 2301 movs r3, #1 + 80050a2: e000 b.n 80050a6 } return HAL_OK; - 8005090: 2300 movs r3, #0 + 80050a4: 2300 movs r3, #0 } - 8005092: 0018 movs r0, r3 - 8005094: 46bd mov sp, r7 - 8005096: b004 add sp, #16 - 8005098: bdb0 pop {r4, r5, r7, pc} - 800509a: 46c0 nop @ (mov r8, r8) - 800509c: 80002000 .word 0x80002000 + 80050a6: 0018 movs r0, r3 + 80050a8: 46bd mov sp, r7 + 80050aa: b004 add sp, #16 + 80050ac: bdb0 pop {r4, r5, r7, pc} + 80050ae: 46c0 nop @ (mov r8, r8) + 80050b0: 80002000 .word 0x80002000 -080050a0 : +080050b4 : * @brief I2C Tx data register flush process. * @param hi2c I2C handle. * @retval None */ static void I2C_Flush_TXDR(I2C_HandleTypeDef *hi2c) { - 80050a0: b580 push {r7, lr} - 80050a2: b082 sub sp, #8 - 80050a4: af00 add r7, sp, #0 - 80050a6: 6078 str r0, [r7, #4] + 80050b4: b580 push {r7, lr} + 80050b6: b082 sub sp, #8 + 80050b8: af00 add r7, sp, #0 + 80050ba: 6078 str r0, [r7, #4] /* If a pending TXIS flag is set */ /* Write a dummy data in TXDR to clear it */ if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_TXIS) != RESET) - 80050a8: 687b ldr r3, [r7, #4] - 80050aa: 681b ldr r3, [r3, #0] - 80050ac: 699b ldr r3, [r3, #24] - 80050ae: 2202 movs r2, #2 - 80050b0: 4013 ands r3, r2 - 80050b2: 2b02 cmp r3, #2 - 80050b4: d103 bne.n 80050be + 80050bc: 687b ldr r3, [r7, #4] + 80050be: 681b ldr r3, [r3, #0] + 80050c0: 699b ldr r3, [r3, #24] + 80050c2: 2202 movs r2, #2 + 80050c4: 4013 ands r3, r2 + 80050c6: 2b02 cmp r3, #2 + 80050c8: d103 bne.n 80050d2 { hi2c->Instance->TXDR = 0x00U; - 80050b6: 687b ldr r3, [r7, #4] - 80050b8: 681b ldr r3, [r3, #0] - 80050ba: 2200 movs r2, #0 - 80050bc: 629a str r2, [r3, #40] @ 0x28 + 80050ca: 687b ldr r3, [r7, #4] + 80050cc: 681b ldr r3, [r3, #0] + 80050ce: 2200 movs r2, #0 + 80050d0: 629a str r2, [r3, #40] @ 0x28 } /* Flush TX register if not empty */ if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_TXE) == RESET) - 80050be: 687b ldr r3, [r7, #4] - 80050c0: 681b ldr r3, [r3, #0] - 80050c2: 699b ldr r3, [r3, #24] - 80050c4: 2201 movs r2, #1 - 80050c6: 4013 ands r3, r2 - 80050c8: 2b01 cmp r3, #1 - 80050ca: d007 beq.n 80050dc - { - __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_TXE); - 80050cc: 687b ldr r3, [r7, #4] - 80050ce: 681b ldr r3, [r3, #0] - 80050d0: 699a ldr r2, [r3, #24] 80050d2: 687b ldr r3, [r7, #4] 80050d4: 681b ldr r3, [r3, #0] - 80050d6: 2101 movs r1, #1 - 80050d8: 430a orrs r2, r1 - 80050da: 619a str r2, [r3, #24] + 80050d6: 699b ldr r3, [r3, #24] + 80050d8: 2201 movs r2, #1 + 80050da: 4013 ands r3, r2 + 80050dc: 2b01 cmp r3, #1 + 80050de: d007 beq.n 80050f0 + { + __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_TXE); + 80050e0: 687b ldr r3, [r7, #4] + 80050e2: 681b ldr r3, [r3, #0] + 80050e4: 699a ldr r2, [r3, #24] + 80050e6: 687b ldr r3, [r7, #4] + 80050e8: 681b ldr r3, [r3, #0] + 80050ea: 2101 movs r1, #1 + 80050ec: 430a orrs r2, r1 + 80050ee: 619a str r2, [r3, #24] } } - 80050dc: 46c0 nop @ (mov r8, r8) - 80050de: 46bd mov sp, r7 - 80050e0: b002 add sp, #8 - 80050e2: bd80 pop {r7, pc} + 80050f0: 46c0 nop @ (mov r8, r8) + 80050f2: 46bd mov sp, r7 + 80050f4: b002 add sp, #8 + 80050f6: bd80 pop {r7, pc} -080050e4 : +080050f8 : * @param Tickstart Tick start value * @retval HAL status */ static HAL_StatusTypeDef I2C_WaitOnFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Flag, FlagStatus Status, uint32_t Timeout, uint32_t Tickstart) { - 80050e4: b580 push {r7, lr} - 80050e6: b084 sub sp, #16 - 80050e8: af00 add r7, sp, #0 - 80050ea: 60f8 str r0, [r7, #12] - 80050ec: 60b9 str r1, [r7, #8] - 80050ee: 603b str r3, [r7, #0] - 80050f0: 1dfb adds r3, r7, #7 - 80050f2: 701a strb r2, [r3, #0] + 80050f8: b580 push {r7, lr} + 80050fa: b084 sub sp, #16 + 80050fc: af00 add r7, sp, #0 + 80050fe: 60f8 str r0, [r7, #12] + 8005100: 60b9 str r1, [r7, #8] + 8005102: 603b str r3, [r7, #0] + 8005104: 1dfb adds r3, r7, #7 + 8005106: 701a strb r2, [r3, #0] while (__HAL_I2C_GET_FLAG(hi2c, Flag) == Status) - 80050f4: e03a b.n 800516c + 8005108: e03a b.n 8005180 { /* Check if an error is detected */ if (I2C_IsErrorOccurred(hi2c, Timeout, Tickstart) != HAL_OK) - 80050f6: 69ba ldr r2, [r7, #24] - 80050f8: 6839 ldr r1, [r7, #0] - 80050fa: 68fb ldr r3, [r7, #12] - 80050fc: 0018 movs r0, r3 - 80050fe: f000 f8d3 bl 80052a8 - 8005102: 1e03 subs r3, r0, #0 - 8005104: d001 beq.n 800510a + 800510a: 69ba ldr r2, [r7, #24] + 800510c: 6839 ldr r1, [r7, #0] + 800510e: 68fb ldr r3, [r7, #12] + 8005110: 0018 movs r0, r3 + 8005112: f000 f8d3 bl 80052bc + 8005116: 1e03 subs r3, r0, #0 + 8005118: d001 beq.n 800511e { return HAL_ERROR; - 8005106: 2301 movs r3, #1 - 8005108: e040 b.n 800518c + 800511a: 2301 movs r3, #1 + 800511c: e040 b.n 80051a0 } /* Check for the Timeout */ if (Timeout != HAL_MAX_DELAY) - 800510a: 683b ldr r3, [r7, #0] - 800510c: 3301 adds r3, #1 - 800510e: d02d beq.n 800516c + 800511e: 683b ldr r3, [r7, #0] + 8005120: 3301 adds r3, #1 + 8005122: d02d beq.n 8005180 { if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) - 8005110: f7fe fe68 bl 8003de4 - 8005114: 0002 movs r2, r0 - 8005116: 69bb ldr r3, [r7, #24] - 8005118: 1ad3 subs r3, r2, r3 - 800511a: 683a ldr r2, [r7, #0] - 800511c: 429a cmp r2, r3 - 800511e: d302 bcc.n 8005126 - 8005120: 683b ldr r3, [r7, #0] - 8005122: 2b00 cmp r3, #0 - 8005124: d122 bne.n 800516c + 8005124: f7fe fe68 bl 8003df8 + 8005128: 0002 movs r2, r0 + 800512a: 69bb ldr r3, [r7, #24] + 800512c: 1ad3 subs r3, r2, r3 + 800512e: 683a ldr r2, [r7, #0] + 8005130: 429a cmp r2, r3 + 8005132: d302 bcc.n 800513a + 8005134: 683b ldr r3, [r7, #0] + 8005136: 2b00 cmp r3, #0 + 8005138: d122 bne.n 8005180 { if ((__HAL_I2C_GET_FLAG(hi2c, Flag) == Status)) - 8005126: 68fb ldr r3, [r7, #12] - 8005128: 681b ldr r3, [r3, #0] - 800512a: 699b ldr r3, [r3, #24] - 800512c: 68ba ldr r2, [r7, #8] - 800512e: 4013 ands r3, r2 - 8005130: 68ba ldr r2, [r7, #8] - 8005132: 1ad3 subs r3, r2, r3 - 8005134: 425a negs r2, r3 - 8005136: 4153 adcs r3, r2 - 8005138: b2db uxtb r3, r3 - 800513a: 001a movs r2, r3 - 800513c: 1dfb adds r3, r7, #7 - 800513e: 781b ldrb r3, [r3, #0] - 8005140: 429a cmp r2, r3 - 8005142: d113 bne.n 800516c + 800513a: 68fb ldr r3, [r7, #12] + 800513c: 681b ldr r3, [r3, #0] + 800513e: 699b ldr r3, [r3, #24] + 8005140: 68ba ldr r2, [r7, #8] + 8005142: 4013 ands r3, r2 + 8005144: 68ba ldr r2, [r7, #8] + 8005146: 1ad3 subs r3, r2, r3 + 8005148: 425a negs r2, r3 + 800514a: 4153 adcs r3, r2 + 800514c: b2db uxtb r3, r3 + 800514e: 001a movs r2, r3 + 8005150: 1dfb adds r3, r7, #7 + 8005152: 781b ldrb r3, [r3, #0] + 8005154: 429a cmp r2, r3 + 8005156: d113 bne.n 8005180 { hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; - 8005144: 68fb ldr r3, [r7, #12] - 8005146: 6c5b ldr r3, [r3, #68] @ 0x44 - 8005148: 2220 movs r2, #32 - 800514a: 431a orrs r2, r3 - 800514c: 68fb ldr r3, [r7, #12] - 800514e: 645a str r2, [r3, #68] @ 0x44 - hi2c->State = HAL_I2C_STATE_READY; - 8005150: 68fb ldr r3, [r7, #12] - 8005152: 2241 movs r2, #65 @ 0x41 - 8005154: 2120 movs r1, #32 - 8005156: 5499 strb r1, [r3, r2] - hi2c->Mode = HAL_I2C_MODE_NONE; 8005158: 68fb ldr r3, [r7, #12] - 800515a: 2242 movs r2, #66 @ 0x42 - 800515c: 2100 movs r1, #0 - 800515e: 5499 strb r1, [r3, r2] + 800515a: 6c5b ldr r3, [r3, #68] @ 0x44 + 800515c: 2220 movs r2, #32 + 800515e: 431a orrs r2, r3 + 8005160: 68fb ldr r3, [r7, #12] + 8005162: 645a str r2, [r3, #68] @ 0x44 + hi2c->State = HAL_I2C_STATE_READY; + 8005164: 68fb ldr r3, [r7, #12] + 8005166: 2241 movs r2, #65 @ 0x41 + 8005168: 2120 movs r1, #32 + 800516a: 5499 strb r1, [r3, r2] + hi2c->Mode = HAL_I2C_MODE_NONE; + 800516c: 68fb ldr r3, [r7, #12] + 800516e: 2242 movs r2, #66 @ 0x42 + 8005170: 2100 movs r1, #0 + 8005172: 5499 strb r1, [r3, r2] /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 8005160: 68fb ldr r3, [r7, #12] - 8005162: 2240 movs r2, #64 @ 0x40 - 8005164: 2100 movs r1, #0 - 8005166: 5499 strb r1, [r3, r2] + 8005174: 68fb ldr r3, [r7, #12] + 8005176: 2240 movs r2, #64 @ 0x40 + 8005178: 2100 movs r1, #0 + 800517a: 5499 strb r1, [r3, r2] return HAL_ERROR; - 8005168: 2301 movs r3, #1 - 800516a: e00f b.n 800518c + 800517c: 2301 movs r3, #1 + 800517e: e00f b.n 80051a0 while (__HAL_I2C_GET_FLAG(hi2c, Flag) == Status) - 800516c: 68fb ldr r3, [r7, #12] - 800516e: 681b ldr r3, [r3, #0] - 8005170: 699b ldr r3, [r3, #24] - 8005172: 68ba ldr r2, [r7, #8] - 8005174: 4013 ands r3, r2 - 8005176: 68ba ldr r2, [r7, #8] - 8005178: 1ad3 subs r3, r2, r3 - 800517a: 425a negs r2, r3 - 800517c: 4153 adcs r3, r2 - 800517e: b2db uxtb r3, r3 - 8005180: 001a movs r2, r3 - 8005182: 1dfb adds r3, r7, #7 - 8005184: 781b ldrb r3, [r3, #0] - 8005186: 429a cmp r2, r3 - 8005188: d0b5 beq.n 80050f6 + 8005180: 68fb ldr r3, [r7, #12] + 8005182: 681b ldr r3, [r3, #0] + 8005184: 699b ldr r3, [r3, #24] + 8005186: 68ba ldr r2, [r7, #8] + 8005188: 4013 ands r3, r2 + 800518a: 68ba ldr r2, [r7, #8] + 800518c: 1ad3 subs r3, r2, r3 + 800518e: 425a negs r2, r3 + 8005190: 4153 adcs r3, r2 + 8005192: b2db uxtb r3, r3 + 8005194: 001a movs r2, r3 + 8005196: 1dfb adds r3, r7, #7 + 8005198: 781b ldrb r3, [r3, #0] + 800519a: 429a cmp r2, r3 + 800519c: d0b5 beq.n 800510a } } } } return HAL_OK; - 800518a: 2300 movs r3, #0 + 800519e: 2300 movs r3, #0 } - 800518c: 0018 movs r0, r3 - 800518e: 46bd mov sp, r7 - 8005190: b004 add sp, #16 - 8005192: bd80 pop {r7, pc} + 80051a0: 0018 movs r0, r3 + 80051a2: 46bd mov sp, r7 + 80051a4: b004 add sp, #16 + 80051a6: bd80 pop {r7, pc} -08005194 : +080051a8 : * @param Tickstart Tick start value * @retval HAL status */ static HAL_StatusTypeDef I2C_WaitOnTXISFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart) { - 8005194: b580 push {r7, lr} - 8005196: b084 sub sp, #16 - 8005198: af00 add r7, sp, #0 - 800519a: 60f8 str r0, [r7, #12] - 800519c: 60b9 str r1, [r7, #8] - 800519e: 607a str r2, [r7, #4] + 80051a8: b580 push {r7, lr} + 80051aa: b084 sub sp, #16 + 80051ac: af00 add r7, sp, #0 + 80051ae: 60f8 str r0, [r7, #12] + 80051b0: 60b9 str r1, [r7, #8] + 80051b2: 607a str r2, [r7, #4] while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_TXIS) == RESET) - 80051a0: e032 b.n 8005208 + 80051b4: e032 b.n 800521c { /* Check if an error is detected */ if (I2C_IsErrorOccurred(hi2c, Timeout, Tickstart) != HAL_OK) - 80051a2: 687a ldr r2, [r7, #4] - 80051a4: 68b9 ldr r1, [r7, #8] - 80051a6: 68fb ldr r3, [r7, #12] - 80051a8: 0018 movs r0, r3 - 80051aa: f000 f87d bl 80052a8 - 80051ae: 1e03 subs r3, r0, #0 - 80051b0: d001 beq.n 80051b6 + 80051b6: 687a ldr r2, [r7, #4] + 80051b8: 68b9 ldr r1, [r7, #8] + 80051ba: 68fb ldr r3, [r7, #12] + 80051bc: 0018 movs r0, r3 + 80051be: f000 f87d bl 80052bc + 80051c2: 1e03 subs r3, r0, #0 + 80051c4: d001 beq.n 80051ca { return HAL_ERROR; - 80051b2: 2301 movs r3, #1 - 80051b4: e030 b.n 8005218 + 80051c6: 2301 movs r3, #1 + 80051c8: e030 b.n 800522c } /* Check for the Timeout */ if (Timeout != HAL_MAX_DELAY) - 80051b6: 68bb ldr r3, [r7, #8] - 80051b8: 3301 adds r3, #1 - 80051ba: d025 beq.n 8005208 + 80051ca: 68bb ldr r3, [r7, #8] + 80051cc: 3301 adds r3, #1 + 80051ce: d025 beq.n 800521c { if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) - 80051bc: f7fe fe12 bl 8003de4 - 80051c0: 0002 movs r2, r0 - 80051c2: 687b ldr r3, [r7, #4] - 80051c4: 1ad3 subs r3, r2, r3 - 80051c6: 68ba ldr r2, [r7, #8] - 80051c8: 429a cmp r2, r3 - 80051ca: d302 bcc.n 80051d2 - 80051cc: 68bb ldr r3, [r7, #8] - 80051ce: 2b00 cmp r3, #0 - 80051d0: d11a bne.n 8005208 + 80051d0: f7fe fe12 bl 8003df8 + 80051d4: 0002 movs r2, r0 + 80051d6: 687b ldr r3, [r7, #4] + 80051d8: 1ad3 subs r3, r2, r3 + 80051da: 68ba ldr r2, [r7, #8] + 80051dc: 429a cmp r2, r3 + 80051de: d302 bcc.n 80051e6 + 80051e0: 68bb ldr r3, [r7, #8] + 80051e2: 2b00 cmp r3, #0 + 80051e4: d11a bne.n 800521c { if ((__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_TXIS) == RESET)) - 80051d2: 68fb ldr r3, [r7, #12] - 80051d4: 681b ldr r3, [r3, #0] - 80051d6: 699b ldr r3, [r3, #24] - 80051d8: 2202 movs r2, #2 - 80051da: 4013 ands r3, r2 - 80051dc: 2b02 cmp r3, #2 - 80051de: d013 beq.n 8005208 + 80051e6: 68fb ldr r3, [r7, #12] + 80051e8: 681b ldr r3, [r3, #0] + 80051ea: 699b ldr r3, [r3, #24] + 80051ec: 2202 movs r2, #2 + 80051ee: 4013 ands r3, r2 + 80051f0: 2b02 cmp r3, #2 + 80051f2: d013 beq.n 800521c { hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; - 80051e0: 68fb ldr r3, [r7, #12] - 80051e2: 6c5b ldr r3, [r3, #68] @ 0x44 - 80051e4: 2220 movs r2, #32 - 80051e6: 431a orrs r2, r3 - 80051e8: 68fb ldr r3, [r7, #12] - 80051ea: 645a str r2, [r3, #68] @ 0x44 - hi2c->State = HAL_I2C_STATE_READY; - 80051ec: 68fb ldr r3, [r7, #12] - 80051ee: 2241 movs r2, #65 @ 0x41 - 80051f0: 2120 movs r1, #32 - 80051f2: 5499 strb r1, [r3, r2] - hi2c->Mode = HAL_I2C_MODE_NONE; 80051f4: 68fb ldr r3, [r7, #12] - 80051f6: 2242 movs r2, #66 @ 0x42 - 80051f8: 2100 movs r1, #0 - 80051fa: 5499 strb r1, [r3, r2] + 80051f6: 6c5b ldr r3, [r3, #68] @ 0x44 + 80051f8: 2220 movs r2, #32 + 80051fa: 431a orrs r2, r3 + 80051fc: 68fb ldr r3, [r7, #12] + 80051fe: 645a str r2, [r3, #68] @ 0x44 + hi2c->State = HAL_I2C_STATE_READY; + 8005200: 68fb ldr r3, [r7, #12] + 8005202: 2241 movs r2, #65 @ 0x41 + 8005204: 2120 movs r1, #32 + 8005206: 5499 strb r1, [r3, r2] + hi2c->Mode = HAL_I2C_MODE_NONE; + 8005208: 68fb ldr r3, [r7, #12] + 800520a: 2242 movs r2, #66 @ 0x42 + 800520c: 2100 movs r1, #0 + 800520e: 5499 strb r1, [r3, r2] /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 80051fc: 68fb ldr r3, [r7, #12] - 80051fe: 2240 movs r2, #64 @ 0x40 - 8005200: 2100 movs r1, #0 - 8005202: 5499 strb r1, [r3, r2] + 8005210: 68fb ldr r3, [r7, #12] + 8005212: 2240 movs r2, #64 @ 0x40 + 8005214: 2100 movs r1, #0 + 8005216: 5499 strb r1, [r3, r2] return HAL_ERROR; - 8005204: 2301 movs r3, #1 - 8005206: e007 b.n 8005218 + 8005218: 2301 movs r3, #1 + 800521a: e007 b.n 800522c while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_TXIS) == RESET) - 8005208: 68fb ldr r3, [r7, #12] - 800520a: 681b ldr r3, [r3, #0] - 800520c: 699b ldr r3, [r3, #24] - 800520e: 2202 movs r2, #2 - 8005210: 4013 ands r3, r2 - 8005212: 2b02 cmp r3, #2 - 8005214: d1c5 bne.n 80051a2 + 800521c: 68fb ldr r3, [r7, #12] + 800521e: 681b ldr r3, [r3, #0] + 8005220: 699b ldr r3, [r3, #24] + 8005222: 2202 movs r2, #2 + 8005224: 4013 ands r3, r2 + 8005226: 2b02 cmp r3, #2 + 8005228: d1c5 bne.n 80051b6 } } } } return HAL_OK; - 8005216: 2300 movs r3, #0 + 800522a: 2300 movs r3, #0 } - 8005218: 0018 movs r0, r3 - 800521a: 46bd mov sp, r7 - 800521c: b004 add sp, #16 - 800521e: bd80 pop {r7, pc} + 800522c: 0018 movs r0, r3 + 800522e: 46bd mov sp, r7 + 8005230: b004 add sp, #16 + 8005232: bd80 pop {r7, pc} -08005220 : +08005234 : * @param Tickstart Tick start value * @retval HAL status */ static HAL_StatusTypeDef I2C_WaitOnSTOPFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart) { - 8005220: b580 push {r7, lr} - 8005222: b084 sub sp, #16 - 8005224: af00 add r7, sp, #0 - 8005226: 60f8 str r0, [r7, #12] - 8005228: 60b9 str r1, [r7, #8] - 800522a: 607a str r2, [r7, #4] + 8005234: b580 push {r7, lr} + 8005236: b084 sub sp, #16 + 8005238: af00 add r7, sp, #0 + 800523a: 60f8 str r0, [r7, #12] + 800523c: 60b9 str r1, [r7, #8] + 800523e: 607a str r2, [r7, #4] while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF) == RESET) - 800522c: e02f b.n 800528e + 8005240: e02f b.n 80052a2 { /* Check if an error is detected */ if (I2C_IsErrorOccurred(hi2c, Timeout, Tickstart) != HAL_OK) - 800522e: 687a ldr r2, [r7, #4] - 8005230: 68b9 ldr r1, [r7, #8] - 8005232: 68fb ldr r3, [r7, #12] - 8005234: 0018 movs r0, r3 - 8005236: f000 f837 bl 80052a8 - 800523a: 1e03 subs r3, r0, #0 - 800523c: d001 beq.n 8005242 + 8005242: 687a ldr r2, [r7, #4] + 8005244: 68b9 ldr r1, [r7, #8] + 8005246: 68fb ldr r3, [r7, #12] + 8005248: 0018 movs r0, r3 + 800524a: f000 f837 bl 80052bc + 800524e: 1e03 subs r3, r0, #0 + 8005250: d001 beq.n 8005256 { return HAL_ERROR; - 800523e: 2301 movs r3, #1 - 8005240: e02d b.n 800529e + 8005252: 2301 movs r3, #1 + 8005254: e02d b.n 80052b2 } /* Check for the Timeout */ if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) - 8005242: f7fe fdcf bl 8003de4 - 8005246: 0002 movs r2, r0 - 8005248: 687b ldr r3, [r7, #4] - 800524a: 1ad3 subs r3, r2, r3 - 800524c: 68ba ldr r2, [r7, #8] - 800524e: 429a cmp r2, r3 - 8005250: d302 bcc.n 8005258 - 8005252: 68bb ldr r3, [r7, #8] - 8005254: 2b00 cmp r3, #0 - 8005256: d11a bne.n 800528e + 8005256: f7fe fdcf bl 8003df8 + 800525a: 0002 movs r2, r0 + 800525c: 687b ldr r3, [r7, #4] + 800525e: 1ad3 subs r3, r2, r3 + 8005260: 68ba ldr r2, [r7, #8] + 8005262: 429a cmp r2, r3 + 8005264: d302 bcc.n 800526c + 8005266: 68bb ldr r3, [r7, #8] + 8005268: 2b00 cmp r3, #0 + 800526a: d11a bne.n 80052a2 { if ((__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF) == RESET)) - 8005258: 68fb ldr r3, [r7, #12] - 800525a: 681b ldr r3, [r3, #0] - 800525c: 699b ldr r3, [r3, #24] - 800525e: 2220 movs r2, #32 - 8005260: 4013 ands r3, r2 - 8005262: 2b20 cmp r3, #32 - 8005264: d013 beq.n 800528e + 800526c: 68fb ldr r3, [r7, #12] + 800526e: 681b ldr r3, [r3, #0] + 8005270: 699b ldr r3, [r3, #24] + 8005272: 2220 movs r2, #32 + 8005274: 4013 ands r3, r2 + 8005276: 2b20 cmp r3, #32 + 8005278: d013 beq.n 80052a2 { hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; - 8005266: 68fb ldr r3, [r7, #12] - 8005268: 6c5b ldr r3, [r3, #68] @ 0x44 - 800526a: 2220 movs r2, #32 - 800526c: 431a orrs r2, r3 - 800526e: 68fb ldr r3, [r7, #12] - 8005270: 645a str r2, [r3, #68] @ 0x44 - hi2c->State = HAL_I2C_STATE_READY; - 8005272: 68fb ldr r3, [r7, #12] - 8005274: 2241 movs r2, #65 @ 0x41 - 8005276: 2120 movs r1, #32 - 8005278: 5499 strb r1, [r3, r2] - hi2c->Mode = HAL_I2C_MODE_NONE; 800527a: 68fb ldr r3, [r7, #12] - 800527c: 2242 movs r2, #66 @ 0x42 - 800527e: 2100 movs r1, #0 - 8005280: 5499 strb r1, [r3, r2] + 800527c: 6c5b ldr r3, [r3, #68] @ 0x44 + 800527e: 2220 movs r2, #32 + 8005280: 431a orrs r2, r3 + 8005282: 68fb ldr r3, [r7, #12] + 8005284: 645a str r2, [r3, #68] @ 0x44 + hi2c->State = HAL_I2C_STATE_READY; + 8005286: 68fb ldr r3, [r7, #12] + 8005288: 2241 movs r2, #65 @ 0x41 + 800528a: 2120 movs r1, #32 + 800528c: 5499 strb r1, [r3, r2] + hi2c->Mode = HAL_I2C_MODE_NONE; + 800528e: 68fb ldr r3, [r7, #12] + 8005290: 2242 movs r2, #66 @ 0x42 + 8005292: 2100 movs r1, #0 + 8005294: 5499 strb r1, [r3, r2] /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 8005282: 68fb ldr r3, [r7, #12] - 8005284: 2240 movs r2, #64 @ 0x40 - 8005286: 2100 movs r1, #0 - 8005288: 5499 strb r1, [r3, r2] + 8005296: 68fb ldr r3, [r7, #12] + 8005298: 2240 movs r2, #64 @ 0x40 + 800529a: 2100 movs r1, #0 + 800529c: 5499 strb r1, [r3, r2] return HAL_ERROR; - 800528a: 2301 movs r3, #1 - 800528c: e007 b.n 800529e + 800529e: 2301 movs r3, #1 + 80052a0: e007 b.n 80052b2 while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF) == RESET) - 800528e: 68fb ldr r3, [r7, #12] - 8005290: 681b ldr r3, [r3, #0] - 8005292: 699b ldr r3, [r3, #24] - 8005294: 2220 movs r2, #32 - 8005296: 4013 ands r3, r2 - 8005298: 2b20 cmp r3, #32 - 800529a: d1c8 bne.n 800522e + 80052a2: 68fb ldr r3, [r7, #12] + 80052a4: 681b ldr r3, [r3, #0] + 80052a6: 699b ldr r3, [r3, #24] + 80052a8: 2220 movs r2, #32 + 80052aa: 4013 ands r3, r2 + 80052ac: 2b20 cmp r3, #32 + 80052ae: d1c8 bne.n 8005242 } } } return HAL_OK; - 800529c: 2300 movs r3, #0 + 80052b0: 2300 movs r3, #0 } - 800529e: 0018 movs r0, r3 - 80052a0: 46bd mov sp, r7 - 80052a2: b004 add sp, #16 - 80052a4: bd80 pop {r7, pc} + 80052b2: 0018 movs r0, r3 + 80052b4: 46bd mov sp, r7 + 80052b6: b004 add sp, #16 + 80052b8: bd80 pop {r7, pc} ... -080052a8 : +080052bc : * @param Timeout Timeout duration * @param Tickstart Tick start value * @retval HAL status */ static HAL_StatusTypeDef I2C_IsErrorOccurred(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart) { - 80052a8: b580 push {r7, lr} - 80052aa: b08a sub sp, #40 @ 0x28 - 80052ac: af00 add r7, sp, #0 - 80052ae: 60f8 str r0, [r7, #12] - 80052b0: 60b9 str r1, [r7, #8] - 80052b2: 607a str r2, [r7, #4] + 80052bc: b580 push {r7, lr} + 80052be: b08a sub sp, #40 @ 0x28 + 80052c0: af00 add r7, sp, #0 + 80052c2: 60f8 str r0, [r7, #12] + 80052c4: 60b9 str r1, [r7, #8] + 80052c6: 607a str r2, [r7, #4] HAL_StatusTypeDef status = HAL_OK; - 80052b4: 2327 movs r3, #39 @ 0x27 - 80052b6: 18fb adds r3, r7, r3 - 80052b8: 2200 movs r2, #0 - 80052ba: 701a strb r2, [r3, #0] + 80052c8: 2327 movs r3, #39 @ 0x27 + 80052ca: 18fb adds r3, r7, r3 + 80052cc: 2200 movs r2, #0 + 80052ce: 701a strb r2, [r3, #0] uint32_t itflag = hi2c->Instance->ISR; - 80052bc: 68fb ldr r3, [r7, #12] - 80052be: 681b ldr r3, [r3, #0] - 80052c0: 699b ldr r3, [r3, #24] - 80052c2: 61bb str r3, [r7, #24] + 80052d0: 68fb ldr r3, [r7, #12] + 80052d2: 681b ldr r3, [r3, #0] + 80052d4: 699b ldr r3, [r3, #24] + 80052d6: 61bb str r3, [r7, #24] uint32_t error_code = 0; - 80052c4: 2300 movs r3, #0 - 80052c6: 623b str r3, [r7, #32] + 80052d8: 2300 movs r3, #0 + 80052da: 623b str r3, [r7, #32] uint32_t tickstart = Tickstart; - 80052c8: 687b ldr r3, [r7, #4] - 80052ca: 61fb str r3, [r7, #28] + 80052dc: 687b ldr r3, [r7, #4] + 80052de: 61fb str r3, [r7, #28] uint32_t tmp1; HAL_I2C_ModeTypeDef tmp2; if (HAL_IS_BIT_SET(itflag, I2C_FLAG_AF)) - 80052cc: 69bb ldr r3, [r7, #24] - 80052ce: 2210 movs r2, #16 - 80052d0: 4013 ands r3, r2 - 80052d2: d100 bne.n 80052d6 - 80052d4: e079 b.n 80053ca + 80052e0: 69bb ldr r3, [r7, #24] + 80052e2: 2210 movs r2, #16 + 80052e4: 4013 ands r3, r2 + 80052e6: d100 bne.n 80052ea + 80052e8: e079 b.n 80053de { /* Clear NACKF Flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); - 80052d6: 68fb ldr r3, [r7, #12] - 80052d8: 681b ldr r3, [r3, #0] - 80052da: 2210 movs r2, #16 - 80052dc: 61da str r2, [r3, #28] + 80052ea: 68fb ldr r3, [r7, #12] + 80052ec: 681b ldr r3, [r3, #0] + 80052ee: 2210 movs r2, #16 + 80052f0: 61da str r2, [r3, #28] /* Wait until STOP Flag is set or timeout occurred */ /* AutoEnd should be initiate after AF */ while ((__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF) == RESET) && (status == HAL_OK)) - 80052de: e057 b.n 8005390 - 80052e0: 2227 movs r2, #39 @ 0x27 - 80052e2: 18bb adds r3, r7, r2 - 80052e4: 18ba adds r2, r7, r2 - 80052e6: 7812 ldrb r2, [r2, #0] - 80052e8: 701a strb r2, [r3, #0] + 80052f2: e057 b.n 80053a4 + 80052f4: 2227 movs r2, #39 @ 0x27 + 80052f6: 18bb adds r3, r7, r2 + 80052f8: 18ba adds r2, r7, r2 + 80052fa: 7812 ldrb r2, [r2, #0] + 80052fc: 701a strb r2, [r3, #0] { /* Check for the Timeout */ if (Timeout != HAL_MAX_DELAY) - 80052ea: 68bb ldr r3, [r7, #8] - 80052ec: 3301 adds r3, #1 - 80052ee: d04f beq.n 8005390 + 80052fe: 68bb ldr r3, [r7, #8] + 8005300: 3301 adds r3, #1 + 8005302: d04f beq.n 80053a4 { if (((HAL_GetTick() - tickstart) > Timeout) || (Timeout == 0U)) - 80052f0: f7fe fd78 bl 8003de4 - 80052f4: 0002 movs r2, r0 - 80052f6: 69fb ldr r3, [r7, #28] - 80052f8: 1ad3 subs r3, r2, r3 - 80052fa: 68ba ldr r2, [r7, #8] - 80052fc: 429a cmp r2, r3 - 80052fe: d302 bcc.n 8005306 - 8005300: 68bb ldr r3, [r7, #8] - 8005302: 2b00 cmp r3, #0 - 8005304: d144 bne.n 8005390 + 8005304: f7fe fd78 bl 8003df8 + 8005308: 0002 movs r2, r0 + 800530a: 69fb ldr r3, [r7, #28] + 800530c: 1ad3 subs r3, r2, r3 + 800530e: 68ba ldr r2, [r7, #8] + 8005310: 429a cmp r2, r3 + 8005312: d302 bcc.n 800531a + 8005314: 68bb ldr r3, [r7, #8] + 8005316: 2b00 cmp r3, #0 + 8005318: d144 bne.n 80053a4 { tmp1 = (uint32_t)(hi2c->Instance->CR2 & I2C_CR2_STOP); - 8005306: 68fb ldr r3, [r7, #12] - 8005308: 681b ldr r3, [r3, #0] - 800530a: 685a ldr r2, [r3, #4] - 800530c: 2380 movs r3, #128 @ 0x80 - 800530e: 01db lsls r3, r3, #7 - 8005310: 4013 ands r3, r2 - 8005312: 617b str r3, [r7, #20] + 800531a: 68fb ldr r3, [r7, #12] + 800531c: 681b ldr r3, [r3, #0] + 800531e: 685a ldr r2, [r3, #4] + 8005320: 2380 movs r3, #128 @ 0x80 + 8005322: 01db lsls r3, r3, #7 + 8005324: 4013 ands r3, r2 + 8005326: 617b str r3, [r7, #20] tmp2 = hi2c->Mode; - 8005314: 2013 movs r0, #19 - 8005316: 183b adds r3, r7, r0 - 8005318: 68fa ldr r2, [r7, #12] - 800531a: 2142 movs r1, #66 @ 0x42 - 800531c: 5c52 ldrb r2, [r2, r1] - 800531e: 701a strb r2, [r3, #0] + 8005328: 2013 movs r0, #19 + 800532a: 183b adds r3, r7, r0 + 800532c: 68fa ldr r2, [r7, #12] + 800532e: 2142 movs r1, #66 @ 0x42 + 8005330: 5c52 ldrb r2, [r2, r1] + 8005332: 701a strb r2, [r3, #0] /* In case of I2C still busy, try to regenerate a STOP manually */ if ((__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BUSY) != RESET) && \ - 8005320: 68fb ldr r3, [r7, #12] - 8005322: 681b ldr r3, [r3, #0] - 8005324: 699a ldr r2, [r3, #24] - 8005326: 2380 movs r3, #128 @ 0x80 - 8005328: 021b lsls r3, r3, #8 - 800532a: 401a ands r2, r3 - 800532c: 2380 movs r3, #128 @ 0x80 - 800532e: 021b lsls r3, r3, #8 - 8005330: 429a cmp r2, r3 - 8005332: d126 bne.n 8005382 - 8005334: 697a ldr r2, [r7, #20] - 8005336: 2380 movs r3, #128 @ 0x80 - 8005338: 01db lsls r3, r3, #7 - 800533a: 429a cmp r2, r3 - 800533c: d021 beq.n 8005382 + 8005334: 68fb ldr r3, [r7, #12] + 8005336: 681b ldr r3, [r3, #0] + 8005338: 699a ldr r2, [r3, #24] + 800533a: 2380 movs r3, #128 @ 0x80 + 800533c: 021b lsls r3, r3, #8 + 800533e: 401a ands r2, r3 + 8005340: 2380 movs r3, #128 @ 0x80 + 8005342: 021b lsls r3, r3, #8 + 8005344: 429a cmp r2, r3 + 8005346: d126 bne.n 8005396 + 8005348: 697a ldr r2, [r7, #20] + 800534a: 2380 movs r3, #128 @ 0x80 + 800534c: 01db lsls r3, r3, #7 + 800534e: 429a cmp r2, r3 + 8005350: d021 beq.n 8005396 (tmp1 != I2C_CR2_STOP) && \ - 800533e: 183b adds r3, r7, r0 - 8005340: 781b ldrb r3, [r3, #0] - 8005342: 2b20 cmp r3, #32 - 8005344: d01d beq.n 8005382 + 8005352: 183b adds r3, r7, r0 + 8005354: 781b ldrb r3, [r3, #0] + 8005356: 2b20 cmp r3, #32 + 8005358: d01d beq.n 8005396 (tmp2 != HAL_I2C_MODE_SLAVE)) { /* Generate Stop */ hi2c->Instance->CR2 |= I2C_CR2_STOP; - 8005346: 68fb ldr r3, [r7, #12] - 8005348: 681b ldr r3, [r3, #0] - 800534a: 685a ldr r2, [r3, #4] - 800534c: 68fb ldr r3, [r7, #12] - 800534e: 681b ldr r3, [r3, #0] - 8005350: 2180 movs r1, #128 @ 0x80 - 8005352: 01c9 lsls r1, r1, #7 - 8005354: 430a orrs r2, r1 - 8005356: 605a str r2, [r3, #4] + 800535a: 68fb ldr r3, [r7, #12] + 800535c: 681b ldr r3, [r3, #0] + 800535e: 685a ldr r2, [r3, #4] + 8005360: 68fb ldr r3, [r7, #12] + 8005362: 681b ldr r3, [r3, #0] + 8005364: 2180 movs r1, #128 @ 0x80 + 8005366: 01c9 lsls r1, r1, #7 + 8005368: 430a orrs r2, r1 + 800536a: 605a str r2, [r3, #4] /* Update Tick with new reference */ tickstart = HAL_GetTick(); - 8005358: f7fe fd44 bl 8003de4 - 800535c: 0003 movs r3, r0 - 800535e: 61fb str r3, [r7, #28] + 800536c: f7fe fd44 bl 8003df8 + 8005370: 0003 movs r3, r0 + 8005372: 61fb str r3, [r7, #28] } while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF) == RESET) - 8005360: e00f b.n 8005382 + 8005374: e00f b.n 8005396 { /* Check for the Timeout */ if ((HAL_GetTick() - tickstart) > I2C_TIMEOUT_STOPF) - 8005362: f7fe fd3f bl 8003de4 - 8005366: 0002 movs r2, r0 - 8005368: 69fb ldr r3, [r7, #28] - 800536a: 1ad3 subs r3, r2, r3 - 800536c: 2b19 cmp r3, #25 - 800536e: d908 bls.n 8005382 + 8005376: f7fe fd3f bl 8003df8 + 800537a: 0002 movs r2, r0 + 800537c: 69fb ldr r3, [r7, #28] + 800537e: 1ad3 subs r3, r2, r3 + 8005380: 2b19 cmp r3, #25 + 8005382: d908 bls.n 8005396 { error_code |= HAL_I2C_ERROR_TIMEOUT; - 8005370: 6a3b ldr r3, [r7, #32] - 8005372: 2220 movs r2, #32 - 8005374: 4313 orrs r3, r2 - 8005376: 623b str r3, [r7, #32] + 8005384: 6a3b ldr r3, [r7, #32] + 8005386: 2220 movs r2, #32 + 8005388: 4313 orrs r3, r2 + 800538a: 623b str r3, [r7, #32] status = HAL_ERROR; - 8005378: 2327 movs r3, #39 @ 0x27 - 800537a: 18fb adds r3, r7, r3 - 800537c: 2201 movs r2, #1 - 800537e: 701a strb r2, [r3, #0] + 800538c: 2327 movs r3, #39 @ 0x27 + 800538e: 18fb adds r3, r7, r3 + 8005390: 2201 movs r2, #1 + 8005392: 701a strb r2, [r3, #0] break; - 8005380: e006 b.n 8005390 + 8005394: e006 b.n 80053a4 while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF) == RESET) - 8005382: 68fb ldr r3, [r7, #12] - 8005384: 681b ldr r3, [r3, #0] - 8005386: 699b ldr r3, [r3, #24] - 8005388: 2220 movs r2, #32 - 800538a: 4013 ands r3, r2 - 800538c: 2b20 cmp r3, #32 - 800538e: d1e8 bne.n 8005362 + 8005396: 68fb ldr r3, [r7, #12] + 8005398: 681b ldr r3, [r3, #0] + 800539a: 699b ldr r3, [r3, #24] + 800539c: 2220 movs r2, #32 + 800539e: 4013 ands r3, r2 + 80053a0: 2b20 cmp r3, #32 + 80053a2: d1e8 bne.n 8005376 while ((__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF) == RESET) && (status == HAL_OK)) - 8005390: 68fb ldr r3, [r7, #12] - 8005392: 681b ldr r3, [r3, #0] - 8005394: 699b ldr r3, [r3, #24] - 8005396: 2220 movs r2, #32 - 8005398: 4013 ands r3, r2 - 800539a: 2b20 cmp r3, #32 - 800539c: d004 beq.n 80053a8 - 800539e: 2327 movs r3, #39 @ 0x27 - 80053a0: 18fb adds r3, r7, r3 - 80053a2: 781b ldrb r3, [r3, #0] - 80053a4: 2b00 cmp r3, #0 - 80053a6: d09b beq.n 80052e0 + 80053a4: 68fb ldr r3, [r7, #12] + 80053a6: 681b ldr r3, [r3, #0] + 80053a8: 699b ldr r3, [r3, #24] + 80053aa: 2220 movs r2, #32 + 80053ac: 4013 ands r3, r2 + 80053ae: 2b20 cmp r3, #32 + 80053b0: d004 beq.n 80053bc + 80053b2: 2327 movs r3, #39 @ 0x27 + 80053b4: 18fb adds r3, r7, r3 + 80053b6: 781b ldrb r3, [r3, #0] + 80053b8: 2b00 cmp r3, #0 + 80053ba: d09b beq.n 80052f4 } } } /* In case STOP Flag is detected, clear it */ if (status == HAL_OK) - 80053a8: 2327 movs r3, #39 @ 0x27 - 80053aa: 18fb adds r3, r7, r3 - 80053ac: 781b ldrb r3, [r3, #0] - 80053ae: 2b00 cmp r3, #0 - 80053b0: d103 bne.n 80053ba + 80053bc: 2327 movs r3, #39 @ 0x27 + 80053be: 18fb adds r3, r7, r3 + 80053c0: 781b ldrb r3, [r3, #0] + 80053c2: 2b00 cmp r3, #0 + 80053c4: d103 bne.n 80053ce { /* Clear STOP Flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); - 80053b2: 68fb ldr r3, [r7, #12] - 80053b4: 681b ldr r3, [r3, #0] - 80053b6: 2220 movs r2, #32 - 80053b8: 61da str r2, [r3, #28] + 80053c6: 68fb ldr r3, [r7, #12] + 80053c8: 681b ldr r3, [r3, #0] + 80053ca: 2220 movs r2, #32 + 80053cc: 61da str r2, [r3, #28] } error_code |= HAL_I2C_ERROR_AF; - 80053ba: 6a3b ldr r3, [r7, #32] - 80053bc: 2204 movs r2, #4 - 80053be: 4313 orrs r3, r2 - 80053c0: 623b str r3, [r7, #32] + 80053ce: 6a3b ldr r3, [r7, #32] + 80053d0: 2204 movs r2, #4 + 80053d2: 4313 orrs r3, r2 + 80053d4: 623b str r3, [r7, #32] status = HAL_ERROR; - 80053c2: 2327 movs r3, #39 @ 0x27 - 80053c4: 18fb adds r3, r7, r3 - 80053c6: 2201 movs r2, #1 - 80053c8: 701a strb r2, [r3, #0] + 80053d6: 2327 movs r3, #39 @ 0x27 + 80053d8: 18fb adds r3, r7, r3 + 80053da: 2201 movs r2, #1 + 80053dc: 701a strb r2, [r3, #0] } /* Refresh Content of Status register */ itflag = hi2c->Instance->ISR; - 80053ca: 68fb ldr r3, [r7, #12] - 80053cc: 681b ldr r3, [r3, #0] - 80053ce: 699b ldr r3, [r3, #24] - 80053d0: 61bb str r3, [r7, #24] + 80053de: 68fb ldr r3, [r7, #12] + 80053e0: 681b ldr r3, [r3, #0] + 80053e2: 699b ldr r3, [r3, #24] + 80053e4: 61bb str r3, [r7, #24] /* Then verify if an additional errors occurs */ /* Check if a Bus error occurred */ if (HAL_IS_BIT_SET(itflag, I2C_FLAG_BERR)) - 80053d2: 69ba ldr r2, [r7, #24] - 80053d4: 2380 movs r3, #128 @ 0x80 - 80053d6: 005b lsls r3, r3, #1 - 80053d8: 4013 ands r3, r2 - 80053da: d00c beq.n 80053f6 + 80053e6: 69ba ldr r2, [r7, #24] + 80053e8: 2380 movs r3, #128 @ 0x80 + 80053ea: 005b lsls r3, r3, #1 + 80053ec: 4013 ands r3, r2 + 80053ee: d00c beq.n 800540a { error_code |= HAL_I2C_ERROR_BERR; - 80053dc: 6a3b ldr r3, [r7, #32] - 80053de: 2201 movs r2, #1 - 80053e0: 4313 orrs r3, r2 - 80053e2: 623b str r3, [r7, #32] + 80053f0: 6a3b ldr r3, [r7, #32] + 80053f2: 2201 movs r2, #1 + 80053f4: 4313 orrs r3, r2 + 80053f6: 623b str r3, [r7, #32] /* Clear BERR flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_BERR); - 80053e4: 68fb ldr r3, [r7, #12] - 80053e6: 681b ldr r3, [r3, #0] - 80053e8: 2280 movs r2, #128 @ 0x80 - 80053ea: 0052 lsls r2, r2, #1 - 80053ec: 61da str r2, [r3, #28] + 80053f8: 68fb ldr r3, [r7, #12] + 80053fa: 681b ldr r3, [r3, #0] + 80053fc: 2280 movs r2, #128 @ 0x80 + 80053fe: 0052 lsls r2, r2, #1 + 8005400: 61da str r2, [r3, #28] status = HAL_ERROR; - 80053ee: 2327 movs r3, #39 @ 0x27 - 80053f0: 18fb adds r3, r7, r3 - 80053f2: 2201 movs r2, #1 - 80053f4: 701a strb r2, [r3, #0] + 8005402: 2327 movs r3, #39 @ 0x27 + 8005404: 18fb adds r3, r7, r3 + 8005406: 2201 movs r2, #1 + 8005408: 701a strb r2, [r3, #0] } /* Check if an Over-Run/Under-Run error occurred */ if (HAL_IS_BIT_SET(itflag, I2C_FLAG_OVR)) - 80053f6: 69ba ldr r2, [r7, #24] - 80053f8: 2380 movs r3, #128 @ 0x80 - 80053fa: 00db lsls r3, r3, #3 - 80053fc: 4013 ands r3, r2 - 80053fe: d00c beq.n 800541a + 800540a: 69ba ldr r2, [r7, #24] + 800540c: 2380 movs r3, #128 @ 0x80 + 800540e: 00db lsls r3, r3, #3 + 8005410: 4013 ands r3, r2 + 8005412: d00c beq.n 800542e { error_code |= HAL_I2C_ERROR_OVR; - 8005400: 6a3b ldr r3, [r7, #32] - 8005402: 2208 movs r2, #8 - 8005404: 4313 orrs r3, r2 - 8005406: 623b str r3, [r7, #32] + 8005414: 6a3b ldr r3, [r7, #32] + 8005416: 2208 movs r2, #8 + 8005418: 4313 orrs r3, r2 + 800541a: 623b str r3, [r7, #32] /* Clear OVR flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_OVR); - 8005408: 68fb ldr r3, [r7, #12] - 800540a: 681b ldr r3, [r3, #0] - 800540c: 2280 movs r2, #128 @ 0x80 - 800540e: 00d2 lsls r2, r2, #3 - 8005410: 61da str r2, [r3, #28] + 800541c: 68fb ldr r3, [r7, #12] + 800541e: 681b ldr r3, [r3, #0] + 8005420: 2280 movs r2, #128 @ 0x80 + 8005422: 00d2 lsls r2, r2, #3 + 8005424: 61da str r2, [r3, #28] status = HAL_ERROR; - 8005412: 2327 movs r3, #39 @ 0x27 - 8005414: 18fb adds r3, r7, r3 - 8005416: 2201 movs r2, #1 - 8005418: 701a strb r2, [r3, #0] + 8005426: 2327 movs r3, #39 @ 0x27 + 8005428: 18fb adds r3, r7, r3 + 800542a: 2201 movs r2, #1 + 800542c: 701a strb r2, [r3, #0] } /* Check if an Arbitration Loss error occurred */ if (HAL_IS_BIT_SET(itflag, I2C_FLAG_ARLO)) - 800541a: 69ba ldr r2, [r7, #24] - 800541c: 2380 movs r3, #128 @ 0x80 - 800541e: 009b lsls r3, r3, #2 - 8005420: 4013 ands r3, r2 - 8005422: d00c beq.n 800543e + 800542e: 69ba ldr r2, [r7, #24] + 8005430: 2380 movs r3, #128 @ 0x80 + 8005432: 009b lsls r3, r3, #2 + 8005434: 4013 ands r3, r2 + 8005436: d00c beq.n 8005452 { error_code |= HAL_I2C_ERROR_ARLO; - 8005424: 6a3b ldr r3, [r7, #32] - 8005426: 2202 movs r2, #2 - 8005428: 4313 orrs r3, r2 - 800542a: 623b str r3, [r7, #32] + 8005438: 6a3b ldr r3, [r7, #32] + 800543a: 2202 movs r2, #2 + 800543c: 4313 orrs r3, r2 + 800543e: 623b str r3, [r7, #32] /* Clear ARLO flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_ARLO); - 800542c: 68fb ldr r3, [r7, #12] - 800542e: 681b ldr r3, [r3, #0] - 8005430: 2280 movs r2, #128 @ 0x80 - 8005432: 0092 lsls r2, r2, #2 - 8005434: 61da str r2, [r3, #28] + 8005440: 68fb ldr r3, [r7, #12] + 8005442: 681b ldr r3, [r3, #0] + 8005444: 2280 movs r2, #128 @ 0x80 + 8005446: 0092 lsls r2, r2, #2 + 8005448: 61da str r2, [r3, #28] status = HAL_ERROR; - 8005436: 2327 movs r3, #39 @ 0x27 - 8005438: 18fb adds r3, r7, r3 - 800543a: 2201 movs r2, #1 - 800543c: 701a strb r2, [r3, #0] + 800544a: 2327 movs r3, #39 @ 0x27 + 800544c: 18fb adds r3, r7, r3 + 800544e: 2201 movs r2, #1 + 8005450: 701a strb r2, [r3, #0] } if (status != HAL_OK) - 800543e: 2327 movs r3, #39 @ 0x27 - 8005440: 18fb adds r3, r7, r3 - 8005442: 781b ldrb r3, [r3, #0] - 8005444: 2b00 cmp r3, #0 - 8005446: d01d beq.n 8005484 + 8005452: 2327 movs r3, #39 @ 0x27 + 8005454: 18fb adds r3, r7, r3 + 8005456: 781b ldrb r3, [r3, #0] + 8005458: 2b00 cmp r3, #0 + 800545a: d01d beq.n 8005498 { /* Flush TX register */ I2C_Flush_TXDR(hi2c); - 8005448: 68fb ldr r3, [r7, #12] - 800544a: 0018 movs r0, r3 - 800544c: f7ff fe28 bl 80050a0 + 800545c: 68fb ldr r3, [r7, #12] + 800545e: 0018 movs r0, r3 + 8005460: f7ff fe28 bl 80050b4 /* Clear Configuration Register 2 */ I2C_RESET_CR2(hi2c); - 8005450: 68fb ldr r3, [r7, #12] - 8005452: 681b ldr r3, [r3, #0] - 8005454: 685a ldr r2, [r3, #4] - 8005456: 68fb ldr r3, [r7, #12] - 8005458: 681b ldr r3, [r3, #0] - 800545a: 490e ldr r1, [pc, #56] @ (8005494 ) - 800545c: 400a ands r2, r1 - 800545e: 605a str r2, [r3, #4] + 8005464: 68fb ldr r3, [r7, #12] + 8005466: 681b ldr r3, [r3, #0] + 8005468: 685a ldr r2, [r3, #4] + 800546a: 68fb ldr r3, [r7, #12] + 800546c: 681b ldr r3, [r3, #0] + 800546e: 490e ldr r1, [pc, #56] @ (80054a8 ) + 8005470: 400a ands r2, r1 + 8005472: 605a str r2, [r3, #4] hi2c->ErrorCode |= error_code; - 8005460: 68fb ldr r3, [r7, #12] - 8005462: 6c5a ldr r2, [r3, #68] @ 0x44 - 8005464: 6a3b ldr r3, [r7, #32] - 8005466: 431a orrs r2, r3 - 8005468: 68fb ldr r3, [r7, #12] - 800546a: 645a str r2, [r3, #68] @ 0x44 - hi2c->State = HAL_I2C_STATE_READY; - 800546c: 68fb ldr r3, [r7, #12] - 800546e: 2241 movs r2, #65 @ 0x41 - 8005470: 2120 movs r1, #32 - 8005472: 5499 strb r1, [r3, r2] - hi2c->Mode = HAL_I2C_MODE_NONE; 8005474: 68fb ldr r3, [r7, #12] - 8005476: 2242 movs r2, #66 @ 0x42 - 8005478: 2100 movs r1, #0 - 800547a: 5499 strb r1, [r3, r2] + 8005476: 6c5a ldr r2, [r3, #68] @ 0x44 + 8005478: 6a3b ldr r3, [r7, #32] + 800547a: 431a orrs r2, r3 + 800547c: 68fb ldr r3, [r7, #12] + 800547e: 645a str r2, [r3, #68] @ 0x44 + hi2c->State = HAL_I2C_STATE_READY; + 8005480: 68fb ldr r3, [r7, #12] + 8005482: 2241 movs r2, #65 @ 0x41 + 8005484: 2120 movs r1, #32 + 8005486: 5499 strb r1, [r3, r2] + hi2c->Mode = HAL_I2C_MODE_NONE; + 8005488: 68fb ldr r3, [r7, #12] + 800548a: 2242 movs r2, #66 @ 0x42 + 800548c: 2100 movs r1, #0 + 800548e: 5499 strb r1, [r3, r2] /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 800547c: 68fb ldr r3, [r7, #12] - 800547e: 2240 movs r2, #64 @ 0x40 - 8005480: 2100 movs r1, #0 - 8005482: 5499 strb r1, [r3, r2] + 8005490: 68fb ldr r3, [r7, #12] + 8005492: 2240 movs r2, #64 @ 0x40 + 8005494: 2100 movs r1, #0 + 8005496: 5499 strb r1, [r3, r2] } return status; - 8005484: 2327 movs r3, #39 @ 0x27 - 8005486: 18fb adds r3, r7, r3 - 8005488: 781b ldrb r3, [r3, #0] + 8005498: 2327 movs r3, #39 @ 0x27 + 800549a: 18fb adds r3, r7, r3 + 800549c: 781b ldrb r3, [r3, #0] } - 800548a: 0018 movs r0, r3 - 800548c: 46bd mov sp, r7 - 800548e: b00a add sp, #40 @ 0x28 - 8005490: bd80 pop {r7, pc} - 8005492: 46c0 nop @ (mov r8, r8) - 8005494: fe00e800 .word 0xfe00e800 + 800549e: 0018 movs r0, r3 + 80054a0: 46bd mov sp, r7 + 80054a2: b00a add sp, #40 @ 0x28 + 80054a4: bd80 pop {r7, pc} + 80054a6: 46c0 nop @ (mov r8, r8) + 80054a8: fe00e800 .word 0xfe00e800 -08005498 : +080054ac : * @arg @ref I2C_GENERATE_START_WRITE Generate Restart for write request. * @retval None */ static void I2C_TransferConfig(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t Size, uint32_t Mode, uint32_t Request) { - 8005498: b590 push {r4, r7, lr} - 800549a: b087 sub sp, #28 - 800549c: af00 add r7, sp, #0 - 800549e: 60f8 str r0, [r7, #12] - 80054a0: 0008 movs r0, r1 - 80054a2: 0011 movs r1, r2 - 80054a4: 607b str r3, [r7, #4] - 80054a6: 240a movs r4, #10 - 80054a8: 193b adds r3, r7, r4 - 80054aa: 1c02 adds r2, r0, #0 - 80054ac: 801a strh r2, [r3, #0] - 80054ae: 2009 movs r0, #9 - 80054b0: 183b adds r3, r7, r0 - 80054b2: 1c0a adds r2, r1, #0 - 80054b4: 701a strb r2, [r3, #0] + 80054ac: b590 push {r4, r7, lr} + 80054ae: b087 sub sp, #28 + 80054b0: af00 add r7, sp, #0 + 80054b2: 60f8 str r0, [r7, #12] + 80054b4: 0008 movs r0, r1 + 80054b6: 0011 movs r1, r2 + 80054b8: 607b str r3, [r7, #4] + 80054ba: 240a movs r4, #10 + 80054bc: 193b adds r3, r7, r4 + 80054be: 1c02 adds r2, r0, #0 + 80054c0: 801a strh r2, [r3, #0] + 80054c2: 2009 movs r0, #9 + 80054c4: 183b adds r3, r7, r0 + 80054c6: 1c0a adds r2, r1, #0 + 80054c8: 701a strb r2, [r3, #0] assert_param(IS_I2C_ALL_INSTANCE(hi2c->Instance)); assert_param(IS_TRANSFER_MODE(Mode)); assert_param(IS_TRANSFER_REQUEST(Request)); /* Declaration of tmp to prevent undefined behavior of volatile usage */ uint32_t tmp = ((uint32_t)(((uint32_t)DevAddress & I2C_CR2_SADD) | \ - 80054b6: 193b adds r3, r7, r4 - 80054b8: 881b ldrh r3, [r3, #0] - 80054ba: 059b lsls r3, r3, #22 - 80054bc: 0d9a lsrs r2, r3, #22 + 80054ca: 193b adds r3, r7, r4 + 80054cc: 881b ldrh r3, [r3, #0] + 80054ce: 059b lsls r3, r3, #22 + 80054d0: 0d9a lsrs r2, r3, #22 (((uint32_t)Size << I2C_CR2_NBYTES_Pos) & I2C_CR2_NBYTES) | \ - 80054be: 183b adds r3, r7, r0 - 80054c0: 781b ldrb r3, [r3, #0] - 80054c2: 0419 lsls r1, r3, #16 - 80054c4: 23ff movs r3, #255 @ 0xff - 80054c6: 041b lsls r3, r3, #16 - 80054c8: 400b ands r3, r1 + 80054d2: 183b adds r3, r7, r0 + 80054d4: 781b ldrb r3, [r3, #0] + 80054d6: 0419 lsls r1, r3, #16 + 80054d8: 23ff movs r3, #255 @ 0xff + 80054da: 041b lsls r3, r3, #16 + 80054dc: 400b ands r3, r1 uint32_t tmp = ((uint32_t)(((uint32_t)DevAddress & I2C_CR2_SADD) | \ - 80054ca: 431a orrs r2, r3 + 80054de: 431a orrs r2, r3 (((uint32_t)Size << I2C_CR2_NBYTES_Pos) & I2C_CR2_NBYTES) | \ - 80054cc: 687b ldr r3, [r7, #4] - 80054ce: 431a orrs r2, r3 + 80054e0: 687b ldr r3, [r7, #4] + 80054e2: 431a orrs r2, r3 uint32_t tmp = ((uint32_t)(((uint32_t)DevAddress & I2C_CR2_SADD) | \ - 80054d0: 6abb ldr r3, [r7, #40] @ 0x28 - 80054d2: 4313 orrs r3, r2 - 80054d4: 005b lsls r3, r3, #1 - 80054d6: 085b lsrs r3, r3, #1 - 80054d8: 617b str r3, [r7, #20] + 80054e4: 6abb ldr r3, [r7, #40] @ 0x28 + 80054e6: 4313 orrs r3, r2 + 80054e8: 005b lsls r3, r3, #1 + 80054ea: 085b lsrs r3, r3, #1 + 80054ec: 617b str r3, [r7, #20] (uint32_t)Mode | (uint32_t)Request) & (~0x80000000U)); /* update CR2 register */ MODIFY_REG(hi2c->Instance->CR2, \ - 80054da: 68fb ldr r3, [r7, #12] - 80054dc: 681b ldr r3, [r3, #0] - 80054de: 685b ldr r3, [r3, #4] - 80054e0: 6aba ldr r2, [r7, #40] @ 0x28 - 80054e2: 0d51 lsrs r1, r2, #21 - 80054e4: 2280 movs r2, #128 @ 0x80 - 80054e6: 00d2 lsls r2, r2, #3 - 80054e8: 400a ands r2, r1 - 80054ea: 4907 ldr r1, [pc, #28] @ (8005508 ) - 80054ec: 430a orrs r2, r1 - 80054ee: 43d2 mvns r2, r2 - 80054f0: 401a ands r2, r3 - 80054f2: 0011 movs r1, r2 - 80054f4: 68fb ldr r3, [r7, #12] - 80054f6: 681b ldr r3, [r3, #0] - 80054f8: 697a ldr r2, [r7, #20] - 80054fa: 430a orrs r2, r1 - 80054fc: 605a str r2, [r3, #4] + 80054ee: 68fb ldr r3, [r7, #12] + 80054f0: 681b ldr r3, [r3, #0] + 80054f2: 685b ldr r3, [r3, #4] + 80054f4: 6aba ldr r2, [r7, #40] @ 0x28 + 80054f6: 0d51 lsrs r1, r2, #21 + 80054f8: 2280 movs r2, #128 @ 0x80 + 80054fa: 00d2 lsls r2, r2, #3 + 80054fc: 400a ands r2, r1 + 80054fe: 4907 ldr r1, [pc, #28] @ (800551c ) + 8005500: 430a orrs r2, r1 + 8005502: 43d2 mvns r2, r2 + 8005504: 401a ands r2, r3 + 8005506: 0011 movs r1, r2 + 8005508: 68fb ldr r3, [r7, #12] + 800550a: 681b ldr r3, [r3, #0] + 800550c: 697a ldr r2, [r7, #20] + 800550e: 430a orrs r2, r1 + 8005510: 605a str r2, [r3, #4] ((I2C_CR2_SADD | I2C_CR2_NBYTES | I2C_CR2_RELOAD | I2C_CR2_AUTOEND | \ (I2C_CR2_RD_WRN & (uint32_t)(Request >> (31U - I2C_CR2_RD_WRN_Pos))) | \ I2C_CR2_START | I2C_CR2_STOP)), tmp); } - 80054fe: 46c0 nop @ (mov r8, r8) - 8005500: 46bd mov sp, r7 - 8005502: b007 add sp, #28 - 8005504: bd90 pop {r4, r7, pc} - 8005506: 46c0 nop @ (mov r8, r8) - 8005508: 03ff63ff .word 0x03ff63ff + 8005512: 46c0 nop @ (mov r8, r8) + 8005514: 46bd mov sp, r7 + 8005516: b007 add sp, #28 + 8005518: bd90 pop {r4, r7, pc} + 800551a: 46c0 nop @ (mov r8, r8) + 800551c: 03ff63ff .word 0x03ff63ff -0800550c : +08005520 : * the configuration information for the specified I2Cx peripheral. * @param AnalogFilter New state of the Analog filter. * @retval HAL status */ HAL_StatusTypeDef HAL_I2CEx_ConfigAnalogFilter(I2C_HandleTypeDef *hi2c, uint32_t AnalogFilter) { - 800550c: b580 push {r7, lr} - 800550e: b082 sub sp, #8 - 8005510: af00 add r7, sp, #0 - 8005512: 6078 str r0, [r7, #4] - 8005514: 6039 str r1, [r7, #0] + 8005520: b580 push {r7, lr} + 8005522: b082 sub sp, #8 + 8005524: af00 add r7, sp, #0 + 8005526: 6078 str r0, [r7, #4] + 8005528: 6039 str r1, [r7, #0] /* Check the parameters */ assert_param(IS_I2C_ALL_INSTANCE(hi2c->Instance)); assert_param(IS_I2C_ANALOG_FILTER(AnalogFilter)); if (hi2c->State == HAL_I2C_STATE_READY) - 8005516: 687b ldr r3, [r7, #4] - 8005518: 2241 movs r2, #65 @ 0x41 - 800551a: 5c9b ldrb r3, [r3, r2] - 800551c: b2db uxtb r3, r3 - 800551e: 2b20 cmp r3, #32 - 8005520: d138 bne.n 8005594 + 800552a: 687b ldr r3, [r7, #4] + 800552c: 2241 movs r2, #65 @ 0x41 + 800552e: 5c9b ldrb r3, [r3, r2] + 8005530: b2db uxtb r3, r3 + 8005532: 2b20 cmp r3, #32 + 8005534: d138 bne.n 80055a8 { /* Process Locked */ __HAL_LOCK(hi2c); - 8005522: 687b ldr r3, [r7, #4] - 8005524: 2240 movs r2, #64 @ 0x40 - 8005526: 5c9b ldrb r3, [r3, r2] - 8005528: 2b01 cmp r3, #1 - 800552a: d101 bne.n 8005530 - 800552c: 2302 movs r3, #2 - 800552e: e032 b.n 8005596 - 8005530: 687b ldr r3, [r7, #4] - 8005532: 2240 movs r2, #64 @ 0x40 - 8005534: 2101 movs r1, #1 - 8005536: 5499 strb r1, [r3, r2] + 8005536: 687b ldr r3, [r7, #4] + 8005538: 2240 movs r2, #64 @ 0x40 + 800553a: 5c9b ldrb r3, [r3, r2] + 800553c: 2b01 cmp r3, #1 + 800553e: d101 bne.n 8005544 + 8005540: 2302 movs r3, #2 + 8005542: e032 b.n 80055aa + 8005544: 687b ldr r3, [r7, #4] + 8005546: 2240 movs r2, #64 @ 0x40 + 8005548: 2101 movs r1, #1 + 800554a: 5499 strb r1, [r3, r2] hi2c->State = HAL_I2C_STATE_BUSY; - 8005538: 687b ldr r3, [r7, #4] - 800553a: 2241 movs r2, #65 @ 0x41 - 800553c: 2124 movs r1, #36 @ 0x24 - 800553e: 5499 strb r1, [r3, r2] + 800554c: 687b ldr r3, [r7, #4] + 800554e: 2241 movs r2, #65 @ 0x41 + 8005550: 2124 movs r1, #36 @ 0x24 + 8005552: 5499 strb r1, [r3, r2] /* Disable the selected I2C peripheral */ __HAL_I2C_DISABLE(hi2c); - 8005540: 687b ldr r3, [r7, #4] - 8005542: 681b ldr r3, [r3, #0] - 8005544: 681a ldr r2, [r3, #0] - 8005546: 687b ldr r3, [r7, #4] - 8005548: 681b ldr r3, [r3, #0] - 800554a: 2101 movs r1, #1 - 800554c: 438a bics r2, r1 - 800554e: 601a str r2, [r3, #0] + 8005554: 687b ldr r3, [r7, #4] + 8005556: 681b ldr r3, [r3, #0] + 8005558: 681a ldr r2, [r3, #0] + 800555a: 687b ldr r3, [r7, #4] + 800555c: 681b ldr r3, [r3, #0] + 800555e: 2101 movs r1, #1 + 8005560: 438a bics r2, r1 + 8005562: 601a str r2, [r3, #0] /* Reset I2Cx ANOFF bit */ hi2c->Instance->CR1 &= ~(I2C_CR1_ANFOFF); - 8005550: 687b ldr r3, [r7, #4] - 8005552: 681b ldr r3, [r3, #0] - 8005554: 681a ldr r2, [r3, #0] - 8005556: 687b ldr r3, [r7, #4] - 8005558: 681b ldr r3, [r3, #0] - 800555a: 4911 ldr r1, [pc, #68] @ (80055a0 ) - 800555c: 400a ands r2, r1 - 800555e: 601a str r2, [r3, #0] + 8005564: 687b ldr r3, [r7, #4] + 8005566: 681b ldr r3, [r3, #0] + 8005568: 681a ldr r2, [r3, #0] + 800556a: 687b ldr r3, [r7, #4] + 800556c: 681b ldr r3, [r3, #0] + 800556e: 4911 ldr r1, [pc, #68] @ (80055b4 ) + 8005570: 400a ands r2, r1 + 8005572: 601a str r2, [r3, #0] /* Set analog filter bit*/ hi2c->Instance->CR1 |= AnalogFilter; - 8005560: 687b ldr r3, [r7, #4] - 8005562: 681b ldr r3, [r3, #0] - 8005564: 6819 ldr r1, [r3, #0] - 8005566: 687b ldr r3, [r7, #4] - 8005568: 681b ldr r3, [r3, #0] - 800556a: 683a ldr r2, [r7, #0] - 800556c: 430a orrs r2, r1 - 800556e: 601a str r2, [r3, #0] + 8005574: 687b ldr r3, [r7, #4] + 8005576: 681b ldr r3, [r3, #0] + 8005578: 6819 ldr r1, [r3, #0] + 800557a: 687b ldr r3, [r7, #4] + 800557c: 681b ldr r3, [r3, #0] + 800557e: 683a ldr r2, [r7, #0] + 8005580: 430a orrs r2, r1 + 8005582: 601a str r2, [r3, #0] __HAL_I2C_ENABLE(hi2c); - 8005570: 687b ldr r3, [r7, #4] - 8005572: 681b ldr r3, [r3, #0] - 8005574: 681a ldr r2, [r3, #0] - 8005576: 687b ldr r3, [r7, #4] - 8005578: 681b ldr r3, [r3, #0] - 800557a: 2101 movs r1, #1 - 800557c: 430a orrs r2, r1 - 800557e: 601a str r2, [r3, #0] + 8005584: 687b ldr r3, [r7, #4] + 8005586: 681b ldr r3, [r3, #0] + 8005588: 681a ldr r2, [r3, #0] + 800558a: 687b ldr r3, [r7, #4] + 800558c: 681b ldr r3, [r3, #0] + 800558e: 2101 movs r1, #1 + 8005590: 430a orrs r2, r1 + 8005592: 601a str r2, [r3, #0] hi2c->State = HAL_I2C_STATE_READY; - 8005580: 687b ldr r3, [r7, #4] - 8005582: 2241 movs r2, #65 @ 0x41 - 8005584: 2120 movs r1, #32 - 8005586: 5499 strb r1, [r3, r2] + 8005594: 687b ldr r3, [r7, #4] + 8005596: 2241 movs r2, #65 @ 0x41 + 8005598: 2120 movs r1, #32 + 800559a: 5499 strb r1, [r3, r2] /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 8005588: 687b ldr r3, [r7, #4] - 800558a: 2240 movs r2, #64 @ 0x40 - 800558c: 2100 movs r1, #0 - 800558e: 5499 strb r1, [r3, r2] + 800559c: 687b ldr r3, [r7, #4] + 800559e: 2240 movs r2, #64 @ 0x40 + 80055a0: 2100 movs r1, #0 + 80055a2: 5499 strb r1, [r3, r2] return HAL_OK; - 8005590: 2300 movs r3, #0 - 8005592: e000 b.n 8005596 + 80055a4: 2300 movs r3, #0 + 80055a6: e000 b.n 80055aa } else { return HAL_BUSY; - 8005594: 2302 movs r3, #2 + 80055a8: 2302 movs r3, #2 } } - 8005596: 0018 movs r0, r3 - 8005598: 46bd mov sp, r7 - 800559a: b002 add sp, #8 - 800559c: bd80 pop {r7, pc} - 800559e: 46c0 nop @ (mov r8, r8) - 80055a0: ffffefff .word 0xffffefff + 80055aa: 0018 movs r0, r3 + 80055ac: 46bd mov sp, r7 + 80055ae: b002 add sp, #8 + 80055b0: bd80 pop {r7, pc} + 80055b2: 46c0 nop @ (mov r8, r8) + 80055b4: ffffefff .word 0xffffefff -080055a4 : +080055b8 : * the configuration information for the specified I2Cx peripheral. * @param DigitalFilter Coefficient of digital noise filter between Min_Data=0x00 and Max_Data=0x0F. * @retval HAL status */ HAL_StatusTypeDef HAL_I2CEx_ConfigDigitalFilter(I2C_HandleTypeDef *hi2c, uint32_t DigitalFilter) { - 80055a4: b580 push {r7, lr} - 80055a6: b084 sub sp, #16 - 80055a8: af00 add r7, sp, #0 - 80055aa: 6078 str r0, [r7, #4] - 80055ac: 6039 str r1, [r7, #0] + 80055b8: b580 push {r7, lr} + 80055ba: b084 sub sp, #16 + 80055bc: af00 add r7, sp, #0 + 80055be: 6078 str r0, [r7, #4] + 80055c0: 6039 str r1, [r7, #0] /* Check the parameters */ assert_param(IS_I2C_ALL_INSTANCE(hi2c->Instance)); assert_param(IS_I2C_DIGITAL_FILTER(DigitalFilter)); if (hi2c->State == HAL_I2C_STATE_READY) - 80055ae: 687b ldr r3, [r7, #4] - 80055b0: 2241 movs r2, #65 @ 0x41 - 80055b2: 5c9b ldrb r3, [r3, r2] - 80055b4: b2db uxtb r3, r3 - 80055b6: 2b20 cmp r3, #32 - 80055b8: d139 bne.n 800562e + 80055c2: 687b ldr r3, [r7, #4] + 80055c4: 2241 movs r2, #65 @ 0x41 + 80055c6: 5c9b ldrb r3, [r3, r2] + 80055c8: b2db uxtb r3, r3 + 80055ca: 2b20 cmp r3, #32 + 80055cc: d139 bne.n 8005642 { /* Process Locked */ __HAL_LOCK(hi2c); - 80055ba: 687b ldr r3, [r7, #4] - 80055bc: 2240 movs r2, #64 @ 0x40 - 80055be: 5c9b ldrb r3, [r3, r2] - 80055c0: 2b01 cmp r3, #1 - 80055c2: d101 bne.n 80055c8 - 80055c4: 2302 movs r3, #2 - 80055c6: e033 b.n 8005630 - 80055c8: 687b ldr r3, [r7, #4] - 80055ca: 2240 movs r2, #64 @ 0x40 - 80055cc: 2101 movs r1, #1 - 80055ce: 5499 strb r1, [r3, r2] + 80055ce: 687b ldr r3, [r7, #4] + 80055d0: 2240 movs r2, #64 @ 0x40 + 80055d2: 5c9b ldrb r3, [r3, r2] + 80055d4: 2b01 cmp r3, #1 + 80055d6: d101 bne.n 80055dc + 80055d8: 2302 movs r3, #2 + 80055da: e033 b.n 8005644 + 80055dc: 687b ldr r3, [r7, #4] + 80055de: 2240 movs r2, #64 @ 0x40 + 80055e0: 2101 movs r1, #1 + 80055e2: 5499 strb r1, [r3, r2] hi2c->State = HAL_I2C_STATE_BUSY; - 80055d0: 687b ldr r3, [r7, #4] - 80055d2: 2241 movs r2, #65 @ 0x41 - 80055d4: 2124 movs r1, #36 @ 0x24 - 80055d6: 5499 strb r1, [r3, r2] + 80055e4: 687b ldr r3, [r7, #4] + 80055e6: 2241 movs r2, #65 @ 0x41 + 80055e8: 2124 movs r1, #36 @ 0x24 + 80055ea: 5499 strb r1, [r3, r2] /* Disable the selected I2C peripheral */ __HAL_I2C_DISABLE(hi2c); - 80055d8: 687b ldr r3, [r7, #4] - 80055da: 681b ldr r3, [r3, #0] - 80055dc: 681a ldr r2, [r3, #0] - 80055de: 687b ldr r3, [r7, #4] - 80055e0: 681b ldr r3, [r3, #0] - 80055e2: 2101 movs r1, #1 - 80055e4: 438a bics r2, r1 - 80055e6: 601a str r2, [r3, #0] + 80055ec: 687b ldr r3, [r7, #4] + 80055ee: 681b ldr r3, [r3, #0] + 80055f0: 681a ldr r2, [r3, #0] + 80055f2: 687b ldr r3, [r7, #4] + 80055f4: 681b ldr r3, [r3, #0] + 80055f6: 2101 movs r1, #1 + 80055f8: 438a bics r2, r1 + 80055fa: 601a str r2, [r3, #0] /* Get the old register value */ tmpreg = hi2c->Instance->CR1; - 80055e8: 687b ldr r3, [r7, #4] - 80055ea: 681b ldr r3, [r3, #0] - 80055ec: 681b ldr r3, [r3, #0] - 80055ee: 60fb str r3, [r7, #12] + 80055fc: 687b ldr r3, [r7, #4] + 80055fe: 681b ldr r3, [r3, #0] + 8005600: 681b ldr r3, [r3, #0] + 8005602: 60fb str r3, [r7, #12] /* Reset I2Cx DNF bits [11:8] */ tmpreg &= ~(I2C_CR1_DNF); - 80055f0: 68fb ldr r3, [r7, #12] - 80055f2: 4a11 ldr r2, [pc, #68] @ (8005638 ) - 80055f4: 4013 ands r3, r2 - 80055f6: 60fb str r3, [r7, #12] + 8005604: 68fb ldr r3, [r7, #12] + 8005606: 4a11 ldr r2, [pc, #68] @ (800564c ) + 8005608: 4013 ands r3, r2 + 800560a: 60fb str r3, [r7, #12] /* Set I2Cx DNF coefficient */ tmpreg |= DigitalFilter << 8U; - 80055f8: 683b ldr r3, [r7, #0] - 80055fa: 021b lsls r3, r3, #8 - 80055fc: 68fa ldr r2, [r7, #12] - 80055fe: 4313 orrs r3, r2 - 8005600: 60fb str r3, [r7, #12] + 800560c: 683b ldr r3, [r7, #0] + 800560e: 021b lsls r3, r3, #8 + 8005610: 68fa ldr r2, [r7, #12] + 8005612: 4313 orrs r3, r2 + 8005614: 60fb str r3, [r7, #12] /* Store the new register value */ hi2c->Instance->CR1 = tmpreg; - 8005602: 687b ldr r3, [r7, #4] - 8005604: 681b ldr r3, [r3, #0] - 8005606: 68fa ldr r2, [r7, #12] - 8005608: 601a str r2, [r3, #0] + 8005616: 687b ldr r3, [r7, #4] + 8005618: 681b ldr r3, [r3, #0] + 800561a: 68fa ldr r2, [r7, #12] + 800561c: 601a str r2, [r3, #0] __HAL_I2C_ENABLE(hi2c); - 800560a: 687b ldr r3, [r7, #4] - 800560c: 681b ldr r3, [r3, #0] - 800560e: 681a ldr r2, [r3, #0] - 8005610: 687b ldr r3, [r7, #4] - 8005612: 681b ldr r3, [r3, #0] - 8005614: 2101 movs r1, #1 - 8005616: 430a orrs r2, r1 - 8005618: 601a str r2, [r3, #0] + 800561e: 687b ldr r3, [r7, #4] + 8005620: 681b ldr r3, [r3, #0] + 8005622: 681a ldr r2, [r3, #0] + 8005624: 687b ldr r3, [r7, #4] + 8005626: 681b ldr r3, [r3, #0] + 8005628: 2101 movs r1, #1 + 800562a: 430a orrs r2, r1 + 800562c: 601a str r2, [r3, #0] hi2c->State = HAL_I2C_STATE_READY; - 800561a: 687b ldr r3, [r7, #4] - 800561c: 2241 movs r2, #65 @ 0x41 - 800561e: 2120 movs r1, #32 - 8005620: 5499 strb r1, [r3, r2] + 800562e: 687b ldr r3, [r7, #4] + 8005630: 2241 movs r2, #65 @ 0x41 + 8005632: 2120 movs r1, #32 + 8005634: 5499 strb r1, [r3, r2] /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 8005622: 687b ldr r3, [r7, #4] - 8005624: 2240 movs r2, #64 @ 0x40 - 8005626: 2100 movs r1, #0 - 8005628: 5499 strb r1, [r3, r2] + 8005636: 687b ldr r3, [r7, #4] + 8005638: 2240 movs r2, #64 @ 0x40 + 800563a: 2100 movs r1, #0 + 800563c: 5499 strb r1, [r3, r2] return HAL_OK; - 800562a: 2300 movs r3, #0 - 800562c: e000 b.n 8005630 + 800563e: 2300 movs r3, #0 + 8005640: e000 b.n 8005644 } else { return HAL_BUSY; - 800562e: 2302 movs r3, #2 + 8005642: 2302 movs r3, #2 } } - 8005630: 0018 movs r0, r3 - 8005632: 46bd mov sp, r7 - 8005634: b004 add sp, #16 - 8005636: bd80 pop {r7, pc} - 8005638: fffff0ff .word 0xfffff0ff + 8005644: 0018 movs r0, r3 + 8005646: 46bd mov sp, r7 + 8005648: b004 add sp, #16 + 800564a: bd80 pop {r7, pc} + 800564c: fffff0ff .word 0xfffff0ff -0800563c : +08005650 : * supported by this macro. User should request a transition to HSE Off * first and then HSE On or HSE Bypass. * @retval HAL status */ HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct) { - 800563c: b580 push {r7, lr} - 800563e: b088 sub sp, #32 - 8005640: af00 add r7, sp, #0 - 8005642: 6078 str r0, [r7, #4] + 8005650: b580 push {r7, lr} + 8005652: b088 sub sp, #32 + 8005654: af00 add r7, sp, #0 + 8005656: 6078 str r0, [r7, #4] uint32_t tickstart; uint32_t pll_config; uint32_t pll_config2; /* Check Null pointer */ if(RCC_OscInitStruct == NULL) - 8005644: 687b ldr r3, [r7, #4] - 8005646: 2b00 cmp r3, #0 - 8005648: d102 bne.n 8005650 + 8005658: 687b ldr r3, [r7, #4] + 800565a: 2b00 cmp r3, #0 + 800565c: d102 bne.n 8005664 { return HAL_ERROR; - 800564a: 2301 movs r3, #1 - 800564c: f000 fb76 bl 8005d3c + 800565e: 2301 movs r3, #1 + 8005660: f000 fb76 bl 8005d50 /* Check the parameters */ assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); /*------------------------------- HSE Configuration ------------------------*/ if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) - 8005650: 687b ldr r3, [r7, #4] - 8005652: 681b ldr r3, [r3, #0] - 8005654: 2201 movs r2, #1 - 8005656: 4013 ands r3, r2 - 8005658: d100 bne.n 800565c - 800565a: e08e b.n 800577a + 8005664: 687b ldr r3, [r7, #4] + 8005666: 681b ldr r3, [r3, #0] + 8005668: 2201 movs r2, #1 + 800566a: 4013 ands r3, r2 + 800566c: d100 bne.n 8005670 + 800566e: e08e b.n 800578e { /* Check the parameters */ assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState)); /* When the HSE is used as system clock or clock source for PLL in these cases it is not allowed to be disabled */ if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSE) - 800565c: 4bc5 ldr r3, [pc, #788] @ (8005974 ) - 800565e: 685b ldr r3, [r3, #4] - 8005660: 220c movs r2, #12 - 8005662: 4013 ands r3, r2 - 8005664: 2b04 cmp r3, #4 - 8005666: d00e beq.n 8005686 + 8005670: 4bc5 ldr r3, [pc, #788] @ (8005988 ) + 8005672: 685b ldr r3, [r3, #4] + 8005674: 220c movs r2, #12 + 8005676: 4013 ands r3, r2 + 8005678: 2b04 cmp r3, #4 + 800567a: d00e beq.n 800569a || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSE))) - 8005668: 4bc2 ldr r3, [pc, #776] @ (8005974 ) - 800566a: 685b ldr r3, [r3, #4] - 800566c: 220c movs r2, #12 - 800566e: 4013 ands r3, r2 - 8005670: 2b08 cmp r3, #8 - 8005672: d117 bne.n 80056a4 - 8005674: 4bbf ldr r3, [pc, #764] @ (8005974 ) - 8005676: 685a ldr r2, [r3, #4] - 8005678: 23c0 movs r3, #192 @ 0xc0 - 800567a: 025b lsls r3, r3, #9 - 800567c: 401a ands r2, r3 - 800567e: 2380 movs r3, #128 @ 0x80 - 8005680: 025b lsls r3, r3, #9 - 8005682: 429a cmp r2, r3 - 8005684: d10e bne.n 80056a4 + 800567c: 4bc2 ldr r3, [pc, #776] @ (8005988 ) + 800567e: 685b ldr r3, [r3, #4] + 8005680: 220c movs r2, #12 + 8005682: 4013 ands r3, r2 + 8005684: 2b08 cmp r3, #8 + 8005686: d117 bne.n 80056b8 + 8005688: 4bbf ldr r3, [pc, #764] @ (8005988 ) + 800568a: 685a ldr r2, [r3, #4] + 800568c: 23c0 movs r3, #192 @ 0xc0 + 800568e: 025b lsls r3, r3, #9 + 8005690: 401a ands r2, r3 + 8005692: 2380 movs r3, #128 @ 0x80 + 8005694: 025b lsls r3, r3, #9 + 8005696: 429a cmp r2, r3 + 8005698: d10e bne.n 80056b8 { if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) - 8005686: 4bbb ldr r3, [pc, #748] @ (8005974 ) - 8005688: 681a ldr r2, [r3, #0] - 800568a: 2380 movs r3, #128 @ 0x80 - 800568c: 029b lsls r3, r3, #10 - 800568e: 4013 ands r3, r2 - 8005690: d100 bne.n 8005694 - 8005692: e071 b.n 8005778 - 8005694: 687b ldr r3, [r7, #4] - 8005696: 685b ldr r3, [r3, #4] - 8005698: 2b00 cmp r3, #0 - 800569a: d000 beq.n 800569e - 800569c: e06c b.n 8005778 + 800569a: 4bbb ldr r3, [pc, #748] @ (8005988 ) + 800569c: 681a ldr r2, [r3, #0] + 800569e: 2380 movs r3, #128 @ 0x80 + 80056a0: 029b lsls r3, r3, #10 + 80056a2: 4013 ands r3, r2 + 80056a4: d100 bne.n 80056a8 + 80056a6: e071 b.n 800578c + 80056a8: 687b ldr r3, [r7, #4] + 80056aa: 685b ldr r3, [r3, #4] + 80056ac: 2b00 cmp r3, #0 + 80056ae: d000 beq.n 80056b2 + 80056b0: e06c b.n 800578c { return HAL_ERROR; - 800569e: 2301 movs r3, #1 - 80056a0: f000 fb4c bl 8005d3c + 80056b2: 2301 movs r3, #1 + 80056b4: f000 fb4c bl 8005d50 } } else { /* Set the new HSE configuration ---------------------------------------*/ __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); - 80056a4: 687b ldr r3, [r7, #4] - 80056a6: 685b ldr r3, [r3, #4] - 80056a8: 2b01 cmp r3, #1 - 80056aa: d107 bne.n 80056bc - 80056ac: 4bb1 ldr r3, [pc, #708] @ (8005974 ) - 80056ae: 681a ldr r2, [r3, #0] - 80056b0: 4bb0 ldr r3, [pc, #704] @ (8005974 ) - 80056b2: 2180 movs r1, #128 @ 0x80 - 80056b4: 0249 lsls r1, r1, #9 - 80056b6: 430a orrs r2, r1 - 80056b8: 601a str r2, [r3, #0] - 80056ba: e02f b.n 800571c - 80056bc: 687b ldr r3, [r7, #4] - 80056be: 685b ldr r3, [r3, #4] - 80056c0: 2b00 cmp r3, #0 - 80056c2: d10c bne.n 80056de - 80056c4: 4bab ldr r3, [pc, #684] @ (8005974 ) - 80056c6: 681a ldr r2, [r3, #0] - 80056c8: 4baa ldr r3, [pc, #680] @ (8005974 ) - 80056ca: 49ab ldr r1, [pc, #684] @ (8005978 ) - 80056cc: 400a ands r2, r1 - 80056ce: 601a str r2, [r3, #0] - 80056d0: 4ba8 ldr r3, [pc, #672] @ (8005974 ) - 80056d2: 681a ldr r2, [r3, #0] - 80056d4: 4ba7 ldr r3, [pc, #668] @ (8005974 ) - 80056d6: 49a9 ldr r1, [pc, #676] @ (800597c ) - 80056d8: 400a ands r2, r1 - 80056da: 601a str r2, [r3, #0] - 80056dc: e01e b.n 800571c - 80056de: 687b ldr r3, [r7, #4] - 80056e0: 685b ldr r3, [r3, #4] - 80056e2: 2b05 cmp r3, #5 - 80056e4: d10e bne.n 8005704 - 80056e6: 4ba3 ldr r3, [pc, #652] @ (8005974 ) - 80056e8: 681a ldr r2, [r3, #0] - 80056ea: 4ba2 ldr r3, [pc, #648] @ (8005974 ) - 80056ec: 2180 movs r1, #128 @ 0x80 - 80056ee: 02c9 lsls r1, r1, #11 - 80056f0: 430a orrs r2, r1 - 80056f2: 601a str r2, [r3, #0] - 80056f4: 4b9f ldr r3, [pc, #636] @ (8005974 ) - 80056f6: 681a ldr r2, [r3, #0] - 80056f8: 4b9e ldr r3, [pc, #632] @ (8005974 ) - 80056fa: 2180 movs r1, #128 @ 0x80 - 80056fc: 0249 lsls r1, r1, #9 - 80056fe: 430a orrs r2, r1 - 8005700: 601a str r2, [r3, #0] - 8005702: e00b b.n 800571c - 8005704: 4b9b ldr r3, [pc, #620] @ (8005974 ) - 8005706: 681a ldr r2, [r3, #0] - 8005708: 4b9a ldr r3, [pc, #616] @ (8005974 ) - 800570a: 499b ldr r1, [pc, #620] @ (8005978 ) - 800570c: 400a ands r2, r1 - 800570e: 601a str r2, [r3, #0] - 8005710: 4b98 ldr r3, [pc, #608] @ (8005974 ) - 8005712: 681a ldr r2, [r3, #0] - 8005714: 4b97 ldr r3, [pc, #604] @ (8005974 ) - 8005716: 4999 ldr r1, [pc, #612] @ (800597c ) - 8005718: 400a ands r2, r1 - 800571a: 601a str r2, [r3, #0] + 80056b8: 687b ldr r3, [r7, #4] + 80056ba: 685b ldr r3, [r3, #4] + 80056bc: 2b01 cmp r3, #1 + 80056be: d107 bne.n 80056d0 + 80056c0: 4bb1 ldr r3, [pc, #708] @ (8005988 ) + 80056c2: 681a ldr r2, [r3, #0] + 80056c4: 4bb0 ldr r3, [pc, #704] @ (8005988 ) + 80056c6: 2180 movs r1, #128 @ 0x80 + 80056c8: 0249 lsls r1, r1, #9 + 80056ca: 430a orrs r2, r1 + 80056cc: 601a str r2, [r3, #0] + 80056ce: e02f b.n 8005730 + 80056d0: 687b ldr r3, [r7, #4] + 80056d2: 685b ldr r3, [r3, #4] + 80056d4: 2b00 cmp r3, #0 + 80056d6: d10c bne.n 80056f2 + 80056d8: 4bab ldr r3, [pc, #684] @ (8005988 ) + 80056da: 681a ldr r2, [r3, #0] + 80056dc: 4baa ldr r3, [pc, #680] @ (8005988 ) + 80056de: 49ab ldr r1, [pc, #684] @ (800598c ) + 80056e0: 400a ands r2, r1 + 80056e2: 601a str r2, [r3, #0] + 80056e4: 4ba8 ldr r3, [pc, #672] @ (8005988 ) + 80056e6: 681a ldr r2, [r3, #0] + 80056e8: 4ba7 ldr r3, [pc, #668] @ (8005988 ) + 80056ea: 49a9 ldr r1, [pc, #676] @ (8005990 ) + 80056ec: 400a ands r2, r1 + 80056ee: 601a str r2, [r3, #0] + 80056f0: e01e b.n 8005730 + 80056f2: 687b ldr r3, [r7, #4] + 80056f4: 685b ldr r3, [r3, #4] + 80056f6: 2b05 cmp r3, #5 + 80056f8: d10e bne.n 8005718 + 80056fa: 4ba3 ldr r3, [pc, #652] @ (8005988 ) + 80056fc: 681a ldr r2, [r3, #0] + 80056fe: 4ba2 ldr r3, [pc, #648] @ (8005988 ) + 8005700: 2180 movs r1, #128 @ 0x80 + 8005702: 02c9 lsls r1, r1, #11 + 8005704: 430a orrs r2, r1 + 8005706: 601a str r2, [r3, #0] + 8005708: 4b9f ldr r3, [pc, #636] @ (8005988 ) + 800570a: 681a ldr r2, [r3, #0] + 800570c: 4b9e ldr r3, [pc, #632] @ (8005988 ) + 800570e: 2180 movs r1, #128 @ 0x80 + 8005710: 0249 lsls r1, r1, #9 + 8005712: 430a orrs r2, r1 + 8005714: 601a str r2, [r3, #0] + 8005716: e00b b.n 8005730 + 8005718: 4b9b ldr r3, [pc, #620] @ (8005988 ) + 800571a: 681a ldr r2, [r3, #0] + 800571c: 4b9a ldr r3, [pc, #616] @ (8005988 ) + 800571e: 499b ldr r1, [pc, #620] @ (800598c ) + 8005720: 400a ands r2, r1 + 8005722: 601a str r2, [r3, #0] + 8005724: 4b98 ldr r3, [pc, #608] @ (8005988 ) + 8005726: 681a ldr r2, [r3, #0] + 8005728: 4b97 ldr r3, [pc, #604] @ (8005988 ) + 800572a: 4999 ldr r1, [pc, #612] @ (8005990 ) + 800572c: 400a ands r2, r1 + 800572e: 601a str r2, [r3, #0] /* Check the HSE State */ if(RCC_OscInitStruct->HSEState != RCC_HSE_OFF) - 800571c: 687b ldr r3, [r7, #4] - 800571e: 685b ldr r3, [r3, #4] - 8005720: 2b00 cmp r3, #0 - 8005722: d014 beq.n 800574e + 8005730: 687b ldr r3, [r7, #4] + 8005732: 685b ldr r3, [r3, #4] + 8005734: 2b00 cmp r3, #0 + 8005736: d014 beq.n 8005762 { /* Get Start Tick */ tickstart = HAL_GetTick(); - 8005724: f7fe fb5e bl 8003de4 - 8005728: 0003 movs r3, r0 - 800572a: 61bb str r3, [r7, #24] + 8005738: f7fe fb5e bl 8003df8 + 800573c: 0003 movs r3, r0 + 800573e: 61bb str r3, [r7, #24] /* Wait till HSE is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 800572c: e008 b.n 8005740 + 8005740: e008 b.n 8005754 { if((HAL_GetTick() - tickstart ) > HSE_TIMEOUT_VALUE) - 800572e: f7fe fb59 bl 8003de4 - 8005732: 0002 movs r2, r0 - 8005734: 69bb ldr r3, [r7, #24] - 8005736: 1ad3 subs r3, r2, r3 - 8005738: 2b64 cmp r3, #100 @ 0x64 - 800573a: d901 bls.n 8005740 + 8005742: f7fe fb59 bl 8003df8 + 8005746: 0002 movs r2, r0 + 8005748: 69bb ldr r3, [r7, #24] + 800574a: 1ad3 subs r3, r2, r3 + 800574c: 2b64 cmp r3, #100 @ 0x64 + 800574e: d901 bls.n 8005754 { return HAL_TIMEOUT; - 800573c: 2303 movs r3, #3 - 800573e: e2fd b.n 8005d3c + 8005750: 2303 movs r3, #3 + 8005752: e2fd b.n 8005d50 while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 8005740: 4b8c ldr r3, [pc, #560] @ (8005974 ) - 8005742: 681a ldr r2, [r3, #0] - 8005744: 2380 movs r3, #128 @ 0x80 - 8005746: 029b lsls r3, r3, #10 - 8005748: 4013 ands r3, r2 - 800574a: d0f0 beq.n 800572e - 800574c: e015 b.n 800577a + 8005754: 4b8c ldr r3, [pc, #560] @ (8005988 ) + 8005756: 681a ldr r2, [r3, #0] + 8005758: 2380 movs r3, #128 @ 0x80 + 800575a: 029b lsls r3, r3, #10 + 800575c: 4013 ands r3, r2 + 800575e: d0f0 beq.n 8005742 + 8005760: e015 b.n 800578e } } else { /* Get Start Tick */ tickstart = HAL_GetTick(); - 800574e: f7fe fb49 bl 8003de4 - 8005752: 0003 movs r3, r0 - 8005754: 61bb str r3, [r7, #24] + 8005762: f7fe fb49 bl 8003df8 + 8005766: 0003 movs r3, r0 + 8005768: 61bb str r3, [r7, #24] /* Wait till HSE is disabled */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) - 8005756: e008 b.n 800576a + 800576a: e008 b.n 800577e { if((HAL_GetTick() - tickstart ) > HSE_TIMEOUT_VALUE) - 8005758: f7fe fb44 bl 8003de4 - 800575c: 0002 movs r2, r0 - 800575e: 69bb ldr r3, [r7, #24] - 8005760: 1ad3 subs r3, r2, r3 - 8005762: 2b64 cmp r3, #100 @ 0x64 - 8005764: d901 bls.n 800576a + 800576c: f7fe fb44 bl 8003df8 + 8005770: 0002 movs r2, r0 + 8005772: 69bb ldr r3, [r7, #24] + 8005774: 1ad3 subs r3, r2, r3 + 8005776: 2b64 cmp r3, #100 @ 0x64 + 8005778: d901 bls.n 800577e { return HAL_TIMEOUT; - 8005766: 2303 movs r3, #3 - 8005768: e2e8 b.n 8005d3c + 800577a: 2303 movs r3, #3 + 800577c: e2e8 b.n 8005d50 while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) - 800576a: 4b82 ldr r3, [pc, #520] @ (8005974 ) - 800576c: 681a ldr r2, [r3, #0] - 800576e: 2380 movs r3, #128 @ 0x80 - 8005770: 029b lsls r3, r3, #10 - 8005772: 4013 ands r3, r2 - 8005774: d1f0 bne.n 8005758 - 8005776: e000 b.n 800577a + 800577e: 4b82 ldr r3, [pc, #520] @ (8005988 ) + 8005780: 681a ldr r2, [r3, #0] + 8005782: 2380 movs r3, #128 @ 0x80 + 8005784: 029b lsls r3, r3, #10 + 8005786: 4013 ands r3, r2 + 8005788: d1f0 bne.n 800576c + 800578a: e000 b.n 800578e if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) - 8005778: 46c0 nop @ (mov r8, r8) + 800578c: 46c0 nop @ (mov r8, r8) } } } } /*----------------------------- HSI Configuration --------------------------*/ if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) - 800577a: 687b ldr r3, [r7, #4] - 800577c: 681b ldr r3, [r3, #0] - 800577e: 2202 movs r2, #2 - 8005780: 4013 ands r3, r2 - 8005782: d100 bne.n 8005786 - 8005784: e06c b.n 8005860 + 800578e: 687b ldr r3, [r7, #4] + 8005790: 681b ldr r3, [r3, #0] + 8005792: 2202 movs r2, #2 + 8005794: 4013 ands r3, r2 + 8005796: d100 bne.n 800579a + 8005798: e06c b.n 8005874 /* Check the parameters */ assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState)); assert_param(IS_RCC_CALIBRATION_VALUE(RCC_OscInitStruct->HSICalibrationValue)); /* Check if HSI is used as system clock or as PLL source when PLL is selected as system clock */ if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSI) - 8005786: 4b7b ldr r3, [pc, #492] @ (8005974 ) - 8005788: 685b ldr r3, [r3, #4] - 800578a: 220c movs r2, #12 - 800578c: 4013 ands r3, r2 - 800578e: d00e beq.n 80057ae + 800579a: 4b7b ldr r3, [pc, #492] @ (8005988 ) + 800579c: 685b ldr r3, [r3, #4] + 800579e: 220c movs r2, #12 + 80057a0: 4013 ands r3, r2 + 80057a2: d00e beq.n 80057c2 || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSI))) - 8005790: 4b78 ldr r3, [pc, #480] @ (8005974 ) - 8005792: 685b ldr r3, [r3, #4] - 8005794: 220c movs r2, #12 - 8005796: 4013 ands r3, r2 - 8005798: 2b08 cmp r3, #8 - 800579a: d11f bne.n 80057dc - 800579c: 4b75 ldr r3, [pc, #468] @ (8005974 ) - 800579e: 685a ldr r2, [r3, #4] - 80057a0: 23c0 movs r3, #192 @ 0xc0 - 80057a2: 025b lsls r3, r3, #9 - 80057a4: 401a ands r2, r3 - 80057a6: 2380 movs r3, #128 @ 0x80 - 80057a8: 021b lsls r3, r3, #8 - 80057aa: 429a cmp r2, r3 - 80057ac: d116 bne.n 80057dc + 80057a4: 4b78 ldr r3, [pc, #480] @ (8005988 ) + 80057a6: 685b ldr r3, [r3, #4] + 80057a8: 220c movs r2, #12 + 80057aa: 4013 ands r3, r2 + 80057ac: 2b08 cmp r3, #8 + 80057ae: d11f bne.n 80057f0 + 80057b0: 4b75 ldr r3, [pc, #468] @ (8005988 ) + 80057b2: 685a ldr r2, [r3, #4] + 80057b4: 23c0 movs r3, #192 @ 0xc0 + 80057b6: 025b lsls r3, r3, #9 + 80057b8: 401a ands r2, r3 + 80057ba: 2380 movs r3, #128 @ 0x80 + 80057bc: 021b lsls r3, r3, #8 + 80057be: 429a cmp r2, r3 + 80057c0: d116 bne.n 80057f0 { /* When HSI is used as system clock it will not disabled */ if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON)) - 80057ae: 4b71 ldr r3, [pc, #452] @ (8005974 ) - 80057b0: 681b ldr r3, [r3, #0] - 80057b2: 2202 movs r2, #2 - 80057b4: 4013 ands r3, r2 - 80057b6: d005 beq.n 80057c4 - 80057b8: 687b ldr r3, [r7, #4] - 80057ba: 68db ldr r3, [r3, #12] - 80057bc: 2b01 cmp r3, #1 - 80057be: d001 beq.n 80057c4 + 80057c2: 4b71 ldr r3, [pc, #452] @ (8005988 ) + 80057c4: 681b ldr r3, [r3, #0] + 80057c6: 2202 movs r2, #2 + 80057c8: 4013 ands r3, r2 + 80057ca: d005 beq.n 80057d8 + 80057cc: 687b ldr r3, [r7, #4] + 80057ce: 68db ldr r3, [r3, #12] + 80057d0: 2b01 cmp r3, #1 + 80057d2: d001 beq.n 80057d8 { return HAL_ERROR; - 80057c0: 2301 movs r3, #1 - 80057c2: e2bb b.n 8005d3c + 80057d4: 2301 movs r3, #1 + 80057d6: e2bb b.n 8005d50 } /* Otherwise, just the calibration is allowed */ else { /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); - 80057c4: 4b6b ldr r3, [pc, #428] @ (8005974 ) - 80057c6: 681b ldr r3, [r3, #0] - 80057c8: 22f8 movs r2, #248 @ 0xf8 - 80057ca: 4393 bics r3, r2 - 80057cc: 0019 movs r1, r3 - 80057ce: 687b ldr r3, [r7, #4] - 80057d0: 691b ldr r3, [r3, #16] - 80057d2: 00da lsls r2, r3, #3 - 80057d4: 4b67 ldr r3, [pc, #412] @ (8005974 ) - 80057d6: 430a orrs r2, r1 - 80057d8: 601a str r2, [r3, #0] + 80057d8: 4b6b ldr r3, [pc, #428] @ (8005988 ) + 80057da: 681b ldr r3, [r3, #0] + 80057dc: 22f8 movs r2, #248 @ 0xf8 + 80057de: 4393 bics r3, r2 + 80057e0: 0019 movs r1, r3 + 80057e2: 687b ldr r3, [r7, #4] + 80057e4: 691b ldr r3, [r3, #16] + 80057e6: 00da lsls r2, r3, #3 + 80057e8: 4b67 ldr r3, [pc, #412] @ (8005988 ) + 80057ea: 430a orrs r2, r1 + 80057ec: 601a str r2, [r3, #0] if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON)) - 80057da: e041 b.n 8005860 + 80057ee: e041 b.n 8005874 } } else { /* Check the HSI State */ if(RCC_OscInitStruct->HSIState != RCC_HSI_OFF) - 80057dc: 687b ldr r3, [r7, #4] - 80057de: 68db ldr r3, [r3, #12] - 80057e0: 2b00 cmp r3, #0 - 80057e2: d024 beq.n 800582e + 80057f0: 687b ldr r3, [r7, #4] + 80057f2: 68db ldr r3, [r3, #12] + 80057f4: 2b00 cmp r3, #0 + 80057f6: d024 beq.n 8005842 { /* Enable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_ENABLE(); - 80057e4: 4b63 ldr r3, [pc, #396] @ (8005974 ) - 80057e6: 681a ldr r2, [r3, #0] - 80057e8: 4b62 ldr r3, [pc, #392] @ (8005974 ) - 80057ea: 2101 movs r1, #1 - 80057ec: 430a orrs r2, r1 - 80057ee: 601a str r2, [r3, #0] + 80057f8: 4b63 ldr r3, [pc, #396] @ (8005988 ) + 80057fa: 681a ldr r2, [r3, #0] + 80057fc: 4b62 ldr r3, [pc, #392] @ (8005988 ) + 80057fe: 2101 movs r1, #1 + 8005800: 430a orrs r2, r1 + 8005802: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 80057f0: f7fe faf8 bl 8003de4 - 80057f4: 0003 movs r3, r0 - 80057f6: 61bb str r3, [r7, #24] + 8005804: f7fe faf8 bl 8003df8 + 8005808: 0003 movs r3, r0 + 800580a: 61bb str r3, [r7, #24] /* Wait till HSI is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 80057f8: e008 b.n 800580c + 800580c: e008 b.n 8005820 { if((HAL_GetTick() - tickstart ) > HSI_TIMEOUT_VALUE) - 80057fa: f7fe faf3 bl 8003de4 - 80057fe: 0002 movs r2, r0 - 8005800: 69bb ldr r3, [r7, #24] - 8005802: 1ad3 subs r3, r2, r3 - 8005804: 2b02 cmp r3, #2 - 8005806: d901 bls.n 800580c + 800580e: f7fe faf3 bl 8003df8 + 8005812: 0002 movs r2, r0 + 8005814: 69bb ldr r3, [r7, #24] + 8005816: 1ad3 subs r3, r2, r3 + 8005818: 2b02 cmp r3, #2 + 800581a: d901 bls.n 8005820 { return HAL_TIMEOUT; - 8005808: 2303 movs r3, #3 - 800580a: e297 b.n 8005d3c + 800581c: 2303 movs r3, #3 + 800581e: e297 b.n 8005d50 while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 800580c: 4b59 ldr r3, [pc, #356] @ (8005974 ) - 800580e: 681b ldr r3, [r3, #0] - 8005810: 2202 movs r2, #2 - 8005812: 4013 ands r3, r2 - 8005814: d0f1 beq.n 80057fa + 8005820: 4b59 ldr r3, [pc, #356] @ (8005988 ) + 8005822: 681b ldr r3, [r3, #0] + 8005824: 2202 movs r2, #2 + 8005826: 4013 ands r3, r2 + 8005828: d0f1 beq.n 800580e } } /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); - 8005816: 4b57 ldr r3, [pc, #348] @ (8005974 ) - 8005818: 681b ldr r3, [r3, #0] - 800581a: 22f8 movs r2, #248 @ 0xf8 - 800581c: 4393 bics r3, r2 - 800581e: 0019 movs r1, r3 - 8005820: 687b ldr r3, [r7, #4] - 8005822: 691b ldr r3, [r3, #16] - 8005824: 00da lsls r2, r3, #3 - 8005826: 4b53 ldr r3, [pc, #332] @ (8005974 ) - 8005828: 430a orrs r2, r1 - 800582a: 601a str r2, [r3, #0] - 800582c: e018 b.n 8005860 + 800582a: 4b57 ldr r3, [pc, #348] @ (8005988 ) + 800582c: 681b ldr r3, [r3, #0] + 800582e: 22f8 movs r2, #248 @ 0xf8 + 8005830: 4393 bics r3, r2 + 8005832: 0019 movs r1, r3 + 8005834: 687b ldr r3, [r7, #4] + 8005836: 691b ldr r3, [r3, #16] + 8005838: 00da lsls r2, r3, #3 + 800583a: 4b53 ldr r3, [pc, #332] @ (8005988 ) + 800583c: 430a orrs r2, r1 + 800583e: 601a str r2, [r3, #0] + 8005840: e018 b.n 8005874 } else { /* Disable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_DISABLE(); - 800582e: 4b51 ldr r3, [pc, #324] @ (8005974 ) - 8005830: 681a ldr r2, [r3, #0] - 8005832: 4b50 ldr r3, [pc, #320] @ (8005974 ) - 8005834: 2101 movs r1, #1 - 8005836: 438a bics r2, r1 - 8005838: 601a str r2, [r3, #0] + 8005842: 4b51 ldr r3, [pc, #324] @ (8005988 ) + 8005844: 681a ldr r2, [r3, #0] + 8005846: 4b50 ldr r3, [pc, #320] @ (8005988 ) + 8005848: 2101 movs r1, #1 + 800584a: 438a bics r2, r1 + 800584c: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 800583a: f7fe fad3 bl 8003de4 - 800583e: 0003 movs r3, r0 - 8005840: 61bb str r3, [r7, #24] + 800584e: f7fe fad3 bl 8003df8 + 8005852: 0003 movs r3, r0 + 8005854: 61bb str r3, [r7, #24] /* Wait till HSI is disabled */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) - 8005842: e008 b.n 8005856 + 8005856: e008 b.n 800586a { if((HAL_GetTick() - tickstart ) > HSI_TIMEOUT_VALUE) - 8005844: f7fe face bl 8003de4 - 8005848: 0002 movs r2, r0 - 800584a: 69bb ldr r3, [r7, #24] - 800584c: 1ad3 subs r3, r2, r3 - 800584e: 2b02 cmp r3, #2 - 8005850: d901 bls.n 8005856 + 8005858: f7fe face bl 8003df8 + 800585c: 0002 movs r2, r0 + 800585e: 69bb ldr r3, [r7, #24] + 8005860: 1ad3 subs r3, r2, r3 + 8005862: 2b02 cmp r3, #2 + 8005864: d901 bls.n 800586a { return HAL_TIMEOUT; - 8005852: 2303 movs r3, #3 - 8005854: e272 b.n 8005d3c + 8005866: 2303 movs r3, #3 + 8005868: e272 b.n 8005d50 while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) - 8005856: 4b47 ldr r3, [pc, #284] @ (8005974 ) - 8005858: 681b ldr r3, [r3, #0] - 800585a: 2202 movs r2, #2 - 800585c: 4013 ands r3, r2 - 800585e: d1f1 bne.n 8005844 + 800586a: 4b47 ldr r3, [pc, #284] @ (8005988 ) + 800586c: 681b ldr r3, [r3, #0] + 800586e: 2202 movs r2, #2 + 8005870: 4013 ands r3, r2 + 8005872: d1f1 bne.n 8005858 } } } } /*------------------------------ LSI Configuration -------------------------*/ if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI) - 8005860: 687b ldr r3, [r7, #4] - 8005862: 681b ldr r3, [r3, #0] - 8005864: 2208 movs r2, #8 - 8005866: 4013 ands r3, r2 - 8005868: d036 beq.n 80058d8 + 8005874: 687b ldr r3, [r7, #4] + 8005876: 681b ldr r3, [r3, #0] + 8005878: 2208 movs r2, #8 + 800587a: 4013 ands r3, r2 + 800587c: d036 beq.n 80058ec { /* Check the parameters */ assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState)); /* Check the LSI State */ if(RCC_OscInitStruct->LSIState != RCC_LSI_OFF) - 800586a: 687b ldr r3, [r7, #4] - 800586c: 69db ldr r3, [r3, #28] - 800586e: 2b00 cmp r3, #0 - 8005870: d019 beq.n 80058a6 + 800587e: 687b ldr r3, [r7, #4] + 8005880: 69db ldr r3, [r3, #28] + 8005882: 2b00 cmp r3, #0 + 8005884: d019 beq.n 80058ba { /* Enable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_ENABLE(); - 8005872: 4b40 ldr r3, [pc, #256] @ (8005974 ) - 8005874: 6a5a ldr r2, [r3, #36] @ 0x24 - 8005876: 4b3f ldr r3, [pc, #252] @ (8005974 ) - 8005878: 2101 movs r1, #1 - 800587a: 430a orrs r2, r1 - 800587c: 625a str r2, [r3, #36] @ 0x24 + 8005886: 4b40 ldr r3, [pc, #256] @ (8005988 ) + 8005888: 6a5a ldr r2, [r3, #36] @ 0x24 + 800588a: 4b3f ldr r3, [pc, #252] @ (8005988 ) + 800588c: 2101 movs r1, #1 + 800588e: 430a orrs r2, r1 + 8005890: 625a str r2, [r3, #36] @ 0x24 /* Get Start Tick */ tickstart = HAL_GetTick(); - 800587e: f7fe fab1 bl 8003de4 - 8005882: 0003 movs r3, r0 - 8005884: 61bb str r3, [r7, #24] + 8005892: f7fe fab1 bl 8003df8 + 8005896: 0003 movs r3, r0 + 8005898: 61bb str r3, [r7, #24] /* Wait till LSI is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) - 8005886: e008 b.n 800589a + 800589a: e008 b.n 80058ae { if((HAL_GetTick() - tickstart ) > LSI_TIMEOUT_VALUE) - 8005888: f7fe faac bl 8003de4 - 800588c: 0002 movs r2, r0 - 800588e: 69bb ldr r3, [r7, #24] - 8005890: 1ad3 subs r3, r2, r3 - 8005892: 2b02 cmp r3, #2 - 8005894: d901 bls.n 800589a + 800589c: f7fe faac bl 8003df8 + 80058a0: 0002 movs r2, r0 + 80058a2: 69bb ldr r3, [r7, #24] + 80058a4: 1ad3 subs r3, r2, r3 + 80058a6: 2b02 cmp r3, #2 + 80058a8: d901 bls.n 80058ae { return HAL_TIMEOUT; - 8005896: 2303 movs r3, #3 - 8005898: e250 b.n 8005d3c + 80058aa: 2303 movs r3, #3 + 80058ac: e250 b.n 8005d50 while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) - 800589a: 4b36 ldr r3, [pc, #216] @ (8005974 ) - 800589c: 6a5b ldr r3, [r3, #36] @ 0x24 - 800589e: 2202 movs r2, #2 - 80058a0: 4013 ands r3, r2 - 80058a2: d0f1 beq.n 8005888 - 80058a4: e018 b.n 80058d8 + 80058ae: 4b36 ldr r3, [pc, #216] @ (8005988 ) + 80058b0: 6a5b ldr r3, [r3, #36] @ 0x24 + 80058b2: 2202 movs r2, #2 + 80058b4: 4013 ands r3, r2 + 80058b6: d0f1 beq.n 800589c + 80058b8: e018 b.n 80058ec } } else { /* Disable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_DISABLE(); - 80058a6: 4b33 ldr r3, [pc, #204] @ (8005974 ) - 80058a8: 6a5a ldr r2, [r3, #36] @ 0x24 - 80058aa: 4b32 ldr r3, [pc, #200] @ (8005974 ) - 80058ac: 2101 movs r1, #1 - 80058ae: 438a bics r2, r1 - 80058b0: 625a str r2, [r3, #36] @ 0x24 + 80058ba: 4b33 ldr r3, [pc, #204] @ (8005988 ) + 80058bc: 6a5a ldr r2, [r3, #36] @ 0x24 + 80058be: 4b32 ldr r3, [pc, #200] @ (8005988 ) + 80058c0: 2101 movs r1, #1 + 80058c2: 438a bics r2, r1 + 80058c4: 625a str r2, [r3, #36] @ 0x24 /* Get Start Tick */ tickstart = HAL_GetTick(); - 80058b2: f7fe fa97 bl 8003de4 - 80058b6: 0003 movs r3, r0 - 80058b8: 61bb str r3, [r7, #24] + 80058c6: f7fe fa97 bl 8003df8 + 80058ca: 0003 movs r3, r0 + 80058cc: 61bb str r3, [r7, #24] /* Wait till LSI is disabled */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) - 80058ba: e008 b.n 80058ce + 80058ce: e008 b.n 80058e2 { if((HAL_GetTick() - tickstart ) > LSI_TIMEOUT_VALUE) - 80058bc: f7fe fa92 bl 8003de4 - 80058c0: 0002 movs r2, r0 - 80058c2: 69bb ldr r3, [r7, #24] - 80058c4: 1ad3 subs r3, r2, r3 - 80058c6: 2b02 cmp r3, #2 - 80058c8: d901 bls.n 80058ce + 80058d0: f7fe fa92 bl 8003df8 + 80058d4: 0002 movs r2, r0 + 80058d6: 69bb ldr r3, [r7, #24] + 80058d8: 1ad3 subs r3, r2, r3 + 80058da: 2b02 cmp r3, #2 + 80058dc: d901 bls.n 80058e2 { return HAL_TIMEOUT; - 80058ca: 2303 movs r3, #3 - 80058cc: e236 b.n 8005d3c + 80058de: 2303 movs r3, #3 + 80058e0: e236 b.n 8005d50 while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) - 80058ce: 4b29 ldr r3, [pc, #164] @ (8005974 ) - 80058d0: 6a5b ldr r3, [r3, #36] @ 0x24 - 80058d2: 2202 movs r2, #2 - 80058d4: 4013 ands r3, r2 - 80058d6: d1f1 bne.n 80058bc + 80058e2: 4b29 ldr r3, [pc, #164] @ (8005988 ) + 80058e4: 6a5b ldr r3, [r3, #36] @ 0x24 + 80058e6: 2202 movs r2, #2 + 80058e8: 4013 ands r3, r2 + 80058ea: d1f1 bne.n 80058d0 } } } } /*------------------------------ LSE Configuration -------------------------*/ if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE) - 80058d8: 687b ldr r3, [r7, #4] - 80058da: 681b ldr r3, [r3, #0] - 80058dc: 2204 movs r2, #4 - 80058de: 4013 ands r3, r2 - 80058e0: d100 bne.n 80058e4 - 80058e2: e0b5 b.n 8005a50 + 80058ec: 687b ldr r3, [r7, #4] + 80058ee: 681b ldr r3, [r3, #0] + 80058f0: 2204 movs r2, #4 + 80058f2: 4013 ands r3, r2 + 80058f4: d100 bne.n 80058f8 + 80058f6: e0b5 b.n 8005a64 { FlagStatus pwrclkchanged = RESET; - 80058e4: 201f movs r0, #31 - 80058e6: 183b adds r3, r7, r0 - 80058e8: 2200 movs r2, #0 - 80058ea: 701a strb r2, [r3, #0] + 80058f8: 201f movs r0, #31 + 80058fa: 183b adds r3, r7, r0 + 80058fc: 2200 movs r2, #0 + 80058fe: 701a strb r2, [r3, #0] /* Check the parameters */ assert_param(IS_RCC_LSE(RCC_OscInitStruct->LSEState)); /* Update LSE configuration in Backup Domain control register */ /* Requires to enable write access to Backup Domain of necessary */ if(__HAL_RCC_PWR_IS_CLK_DISABLED()) - 80058ec: 4b21 ldr r3, [pc, #132] @ (8005974 ) - 80058ee: 69da ldr r2, [r3, #28] - 80058f0: 2380 movs r3, #128 @ 0x80 - 80058f2: 055b lsls r3, r3, #21 - 80058f4: 4013 ands r3, r2 - 80058f6: d110 bne.n 800591a + 8005900: 4b21 ldr r3, [pc, #132] @ (8005988 ) + 8005902: 69da ldr r2, [r3, #28] + 8005904: 2380 movs r3, #128 @ 0x80 + 8005906: 055b lsls r3, r3, #21 + 8005908: 4013 ands r3, r2 + 800590a: d110 bne.n 800592e { __HAL_RCC_PWR_CLK_ENABLE(); - 80058f8: 4b1e ldr r3, [pc, #120] @ (8005974 ) - 80058fa: 69da ldr r2, [r3, #28] - 80058fc: 4b1d ldr r3, [pc, #116] @ (8005974 ) - 80058fe: 2180 movs r1, #128 @ 0x80 - 8005900: 0549 lsls r1, r1, #21 - 8005902: 430a orrs r2, r1 - 8005904: 61da str r2, [r3, #28] - 8005906: 4b1b ldr r3, [pc, #108] @ (8005974 ) - 8005908: 69da ldr r2, [r3, #28] - 800590a: 2380 movs r3, #128 @ 0x80 - 800590c: 055b lsls r3, r3, #21 - 800590e: 4013 ands r3, r2 - 8005910: 60fb str r3, [r7, #12] - 8005912: 68fb ldr r3, [r7, #12] + 800590c: 4b1e ldr r3, [pc, #120] @ (8005988 ) + 800590e: 69da ldr r2, [r3, #28] + 8005910: 4b1d ldr r3, [pc, #116] @ (8005988 ) + 8005912: 2180 movs r1, #128 @ 0x80 + 8005914: 0549 lsls r1, r1, #21 + 8005916: 430a orrs r2, r1 + 8005918: 61da str r2, [r3, #28] + 800591a: 4b1b ldr r3, [pc, #108] @ (8005988 ) + 800591c: 69da ldr r2, [r3, #28] + 800591e: 2380 movs r3, #128 @ 0x80 + 8005920: 055b lsls r3, r3, #21 + 8005922: 4013 ands r3, r2 + 8005924: 60fb str r3, [r7, #12] + 8005926: 68fb ldr r3, [r7, #12] pwrclkchanged = SET; - 8005914: 183b adds r3, r7, r0 - 8005916: 2201 movs r2, #1 - 8005918: 701a strb r2, [r3, #0] + 8005928: 183b adds r3, r7, r0 + 800592a: 2201 movs r2, #1 + 800592c: 701a strb r2, [r3, #0] } if(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 800591a: 4b19 ldr r3, [pc, #100] @ (8005980 ) - 800591c: 681a ldr r2, [r3, #0] - 800591e: 2380 movs r3, #128 @ 0x80 - 8005920: 005b lsls r3, r3, #1 - 8005922: 4013 ands r3, r2 - 8005924: d11a bne.n 800595c + 800592e: 4b19 ldr r3, [pc, #100] @ (8005994 ) + 8005930: 681a ldr r2, [r3, #0] + 8005932: 2380 movs r3, #128 @ 0x80 + 8005934: 005b lsls r3, r3, #1 + 8005936: 4013 ands r3, r2 + 8005938: d11a bne.n 8005970 { /* Enable write access to Backup domain */ SET_BIT(PWR->CR, PWR_CR_DBP); - 8005926: 4b16 ldr r3, [pc, #88] @ (8005980 ) - 8005928: 681a ldr r2, [r3, #0] - 800592a: 4b15 ldr r3, [pc, #84] @ (8005980 ) - 800592c: 2180 movs r1, #128 @ 0x80 - 800592e: 0049 lsls r1, r1, #1 - 8005930: 430a orrs r2, r1 - 8005932: 601a str r2, [r3, #0] + 800593a: 4b16 ldr r3, [pc, #88] @ (8005994 ) + 800593c: 681a ldr r2, [r3, #0] + 800593e: 4b15 ldr r3, [pc, #84] @ (8005994 ) + 8005940: 2180 movs r1, #128 @ 0x80 + 8005942: 0049 lsls r1, r1, #1 + 8005944: 430a orrs r2, r1 + 8005946: 601a str r2, [r3, #0] /* Wait for Backup domain Write protection disable */ tickstart = HAL_GetTick(); - 8005934: f7fe fa56 bl 8003de4 - 8005938: 0003 movs r3, r0 - 800593a: 61bb str r3, [r7, #24] + 8005948: f7fe fa56 bl 8003df8 + 800594c: 0003 movs r3, r0 + 800594e: 61bb str r3, [r7, #24] while(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 800593c: e008 b.n 8005950 + 8005950: e008 b.n 8005964 { if((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) - 800593e: f7fe fa51 bl 8003de4 - 8005942: 0002 movs r2, r0 - 8005944: 69bb ldr r3, [r7, #24] - 8005946: 1ad3 subs r3, r2, r3 - 8005948: 2b64 cmp r3, #100 @ 0x64 - 800594a: d901 bls.n 8005950 + 8005952: f7fe fa51 bl 8003df8 + 8005956: 0002 movs r2, r0 + 8005958: 69bb ldr r3, [r7, #24] + 800595a: 1ad3 subs r3, r2, r3 + 800595c: 2b64 cmp r3, #100 @ 0x64 + 800595e: d901 bls.n 8005964 { return HAL_TIMEOUT; - 800594c: 2303 movs r3, #3 - 800594e: e1f5 b.n 8005d3c + 8005960: 2303 movs r3, #3 + 8005962: e1f5 b.n 8005d50 while(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 8005950: 4b0b ldr r3, [pc, #44] @ (8005980 ) - 8005952: 681a ldr r2, [r3, #0] - 8005954: 2380 movs r3, #128 @ 0x80 - 8005956: 005b lsls r3, r3, #1 - 8005958: 4013 ands r3, r2 - 800595a: d0f0 beq.n 800593e + 8005964: 4b0b ldr r3, [pc, #44] @ (8005994 ) + 8005966: 681a ldr r2, [r3, #0] + 8005968: 2380 movs r3, #128 @ 0x80 + 800596a: 005b lsls r3, r3, #1 + 800596c: 4013 ands r3, r2 + 800596e: d0f0 beq.n 8005952 } } } /* Set the new LSE configuration -----------------------------------------*/ __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState); - 800595c: 687b ldr r3, [r7, #4] - 800595e: 689b ldr r3, [r3, #8] - 8005960: 2b01 cmp r3, #1 - 8005962: d10f bne.n 8005984 - 8005964: 4b03 ldr r3, [pc, #12] @ (8005974 ) - 8005966: 6a1a ldr r2, [r3, #32] - 8005968: 4b02 ldr r3, [pc, #8] @ (8005974 ) - 800596a: 2101 movs r1, #1 - 800596c: 430a orrs r2, r1 - 800596e: 621a str r2, [r3, #32] - 8005970: e036 b.n 80059e0 - 8005972: 46c0 nop @ (mov r8, r8) - 8005974: 40021000 .word 0x40021000 - 8005978: fffeffff .word 0xfffeffff - 800597c: fffbffff .word 0xfffbffff - 8005980: 40007000 .word 0x40007000 - 8005984: 687b ldr r3, [r7, #4] - 8005986: 689b ldr r3, [r3, #8] - 8005988: 2b00 cmp r3, #0 - 800598a: d10c bne.n 80059a6 - 800598c: 4bca ldr r3, [pc, #808] @ (8005cb8 ) - 800598e: 6a1a ldr r2, [r3, #32] - 8005990: 4bc9 ldr r3, [pc, #804] @ (8005cb8 ) - 8005992: 2101 movs r1, #1 - 8005994: 438a bics r2, r1 - 8005996: 621a str r2, [r3, #32] - 8005998: 4bc7 ldr r3, [pc, #796] @ (8005cb8 ) - 800599a: 6a1a ldr r2, [r3, #32] - 800599c: 4bc6 ldr r3, [pc, #792] @ (8005cb8 ) - 800599e: 2104 movs r1, #4 - 80059a0: 438a bics r2, r1 - 80059a2: 621a str r2, [r3, #32] - 80059a4: e01c b.n 80059e0 - 80059a6: 687b ldr r3, [r7, #4] - 80059a8: 689b ldr r3, [r3, #8] - 80059aa: 2b05 cmp r3, #5 - 80059ac: d10c bne.n 80059c8 - 80059ae: 4bc2 ldr r3, [pc, #776] @ (8005cb8 ) - 80059b0: 6a1a ldr r2, [r3, #32] - 80059b2: 4bc1 ldr r3, [pc, #772] @ (8005cb8 ) - 80059b4: 2104 movs r1, #4 - 80059b6: 430a orrs r2, r1 - 80059b8: 621a str r2, [r3, #32] - 80059ba: 4bbf ldr r3, [pc, #764] @ (8005cb8 ) - 80059bc: 6a1a ldr r2, [r3, #32] - 80059be: 4bbe ldr r3, [pc, #760] @ (8005cb8 ) - 80059c0: 2101 movs r1, #1 - 80059c2: 430a orrs r2, r1 - 80059c4: 621a str r2, [r3, #32] - 80059c6: e00b b.n 80059e0 - 80059c8: 4bbb ldr r3, [pc, #748] @ (8005cb8 ) - 80059ca: 6a1a ldr r2, [r3, #32] - 80059cc: 4bba ldr r3, [pc, #744] @ (8005cb8 ) - 80059ce: 2101 movs r1, #1 - 80059d0: 438a bics r2, r1 - 80059d2: 621a str r2, [r3, #32] - 80059d4: 4bb8 ldr r3, [pc, #736] @ (8005cb8 ) - 80059d6: 6a1a ldr r2, [r3, #32] - 80059d8: 4bb7 ldr r3, [pc, #732] @ (8005cb8 ) - 80059da: 2104 movs r1, #4 - 80059dc: 438a bics r2, r1 - 80059de: 621a str r2, [r3, #32] + 8005970: 687b ldr r3, [r7, #4] + 8005972: 689b ldr r3, [r3, #8] + 8005974: 2b01 cmp r3, #1 + 8005976: d10f bne.n 8005998 + 8005978: 4b03 ldr r3, [pc, #12] @ (8005988 ) + 800597a: 6a1a ldr r2, [r3, #32] + 800597c: 4b02 ldr r3, [pc, #8] @ (8005988 ) + 800597e: 2101 movs r1, #1 + 8005980: 430a orrs r2, r1 + 8005982: 621a str r2, [r3, #32] + 8005984: e036 b.n 80059f4 + 8005986: 46c0 nop @ (mov r8, r8) + 8005988: 40021000 .word 0x40021000 + 800598c: fffeffff .word 0xfffeffff + 8005990: fffbffff .word 0xfffbffff + 8005994: 40007000 .word 0x40007000 + 8005998: 687b ldr r3, [r7, #4] + 800599a: 689b ldr r3, [r3, #8] + 800599c: 2b00 cmp r3, #0 + 800599e: d10c bne.n 80059ba + 80059a0: 4bca ldr r3, [pc, #808] @ (8005ccc ) + 80059a2: 6a1a ldr r2, [r3, #32] + 80059a4: 4bc9 ldr r3, [pc, #804] @ (8005ccc ) + 80059a6: 2101 movs r1, #1 + 80059a8: 438a bics r2, r1 + 80059aa: 621a str r2, [r3, #32] + 80059ac: 4bc7 ldr r3, [pc, #796] @ (8005ccc ) + 80059ae: 6a1a ldr r2, [r3, #32] + 80059b0: 4bc6 ldr r3, [pc, #792] @ (8005ccc ) + 80059b2: 2104 movs r1, #4 + 80059b4: 438a bics r2, r1 + 80059b6: 621a str r2, [r3, #32] + 80059b8: e01c b.n 80059f4 + 80059ba: 687b ldr r3, [r7, #4] + 80059bc: 689b ldr r3, [r3, #8] + 80059be: 2b05 cmp r3, #5 + 80059c0: d10c bne.n 80059dc + 80059c2: 4bc2 ldr r3, [pc, #776] @ (8005ccc ) + 80059c4: 6a1a ldr r2, [r3, #32] + 80059c6: 4bc1 ldr r3, [pc, #772] @ (8005ccc ) + 80059c8: 2104 movs r1, #4 + 80059ca: 430a orrs r2, r1 + 80059cc: 621a str r2, [r3, #32] + 80059ce: 4bbf ldr r3, [pc, #764] @ (8005ccc ) + 80059d0: 6a1a ldr r2, [r3, #32] + 80059d2: 4bbe ldr r3, [pc, #760] @ (8005ccc ) + 80059d4: 2101 movs r1, #1 + 80059d6: 430a orrs r2, r1 + 80059d8: 621a str r2, [r3, #32] + 80059da: e00b b.n 80059f4 + 80059dc: 4bbb ldr r3, [pc, #748] @ (8005ccc ) + 80059de: 6a1a ldr r2, [r3, #32] + 80059e0: 4bba ldr r3, [pc, #744] @ (8005ccc ) + 80059e2: 2101 movs r1, #1 + 80059e4: 438a bics r2, r1 + 80059e6: 621a str r2, [r3, #32] + 80059e8: 4bb8 ldr r3, [pc, #736] @ (8005ccc ) + 80059ea: 6a1a ldr r2, [r3, #32] + 80059ec: 4bb7 ldr r3, [pc, #732] @ (8005ccc ) + 80059ee: 2104 movs r1, #4 + 80059f0: 438a bics r2, r1 + 80059f2: 621a str r2, [r3, #32] /* Check the LSE State */ if(RCC_OscInitStruct->LSEState != RCC_LSE_OFF) - 80059e0: 687b ldr r3, [r7, #4] - 80059e2: 689b ldr r3, [r3, #8] - 80059e4: 2b00 cmp r3, #0 - 80059e6: d014 beq.n 8005a12 + 80059f4: 687b ldr r3, [r7, #4] + 80059f6: 689b ldr r3, [r3, #8] + 80059f8: 2b00 cmp r3, #0 + 80059fa: d014 beq.n 8005a26 { /* Get Start Tick */ tickstart = HAL_GetTick(); - 80059e8: f7fe f9fc bl 8003de4 - 80059ec: 0003 movs r3, r0 - 80059ee: 61bb str r3, [r7, #24] + 80059fc: f7fe f9fc bl 8003df8 + 8005a00: 0003 movs r3, r0 + 8005a02: 61bb str r3, [r7, #24] /* Wait till LSE is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 80059f0: e009 b.n 8005a06 + 8005a04: e009 b.n 8005a1a { if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE) - 80059f2: f7fe f9f7 bl 8003de4 - 80059f6: 0002 movs r2, r0 - 80059f8: 69bb ldr r3, [r7, #24] - 80059fa: 1ad3 subs r3, r2, r3 - 80059fc: 4aaf ldr r2, [pc, #700] @ (8005cbc ) - 80059fe: 4293 cmp r3, r2 - 8005a00: d901 bls.n 8005a06 + 8005a06: f7fe f9f7 bl 8003df8 + 8005a0a: 0002 movs r2, r0 + 8005a0c: 69bb ldr r3, [r7, #24] + 8005a0e: 1ad3 subs r3, r2, r3 + 8005a10: 4aaf ldr r2, [pc, #700] @ (8005cd0 ) + 8005a12: 4293 cmp r3, r2 + 8005a14: d901 bls.n 8005a1a { return HAL_TIMEOUT; - 8005a02: 2303 movs r3, #3 - 8005a04: e19a b.n 8005d3c + 8005a16: 2303 movs r3, #3 + 8005a18: e19a b.n 8005d50 while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 8005a06: 4bac ldr r3, [pc, #688] @ (8005cb8 ) - 8005a08: 6a1b ldr r3, [r3, #32] - 8005a0a: 2202 movs r2, #2 - 8005a0c: 4013 ands r3, r2 - 8005a0e: d0f0 beq.n 80059f2 - 8005a10: e013 b.n 8005a3a + 8005a1a: 4bac ldr r3, [pc, #688] @ (8005ccc ) + 8005a1c: 6a1b ldr r3, [r3, #32] + 8005a1e: 2202 movs r2, #2 + 8005a20: 4013 ands r3, r2 + 8005a22: d0f0 beq.n 8005a06 + 8005a24: e013 b.n 8005a4e } } else { /* Get Start Tick */ tickstart = HAL_GetTick(); - 8005a12: f7fe f9e7 bl 8003de4 - 8005a16: 0003 movs r3, r0 - 8005a18: 61bb str r3, [r7, #24] + 8005a26: f7fe f9e7 bl 8003df8 + 8005a2a: 0003 movs r3, r0 + 8005a2c: 61bb str r3, [r7, #24] /* Wait till LSE is disabled */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) - 8005a1a: e009 b.n 8005a30 + 8005a2e: e009 b.n 8005a44 { if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE) - 8005a1c: f7fe f9e2 bl 8003de4 - 8005a20: 0002 movs r2, r0 - 8005a22: 69bb ldr r3, [r7, #24] - 8005a24: 1ad3 subs r3, r2, r3 - 8005a26: 4aa5 ldr r2, [pc, #660] @ (8005cbc ) - 8005a28: 4293 cmp r3, r2 - 8005a2a: d901 bls.n 8005a30 + 8005a30: f7fe f9e2 bl 8003df8 + 8005a34: 0002 movs r2, r0 + 8005a36: 69bb ldr r3, [r7, #24] + 8005a38: 1ad3 subs r3, r2, r3 + 8005a3a: 4aa5 ldr r2, [pc, #660] @ (8005cd0 ) + 8005a3c: 4293 cmp r3, r2 + 8005a3e: d901 bls.n 8005a44 { return HAL_TIMEOUT; - 8005a2c: 2303 movs r3, #3 - 8005a2e: e185 b.n 8005d3c + 8005a40: 2303 movs r3, #3 + 8005a42: e185 b.n 8005d50 while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) - 8005a30: 4ba1 ldr r3, [pc, #644] @ (8005cb8 ) - 8005a32: 6a1b ldr r3, [r3, #32] - 8005a34: 2202 movs r2, #2 - 8005a36: 4013 ands r3, r2 - 8005a38: d1f0 bne.n 8005a1c + 8005a44: 4ba1 ldr r3, [pc, #644] @ (8005ccc ) + 8005a46: 6a1b ldr r3, [r3, #32] + 8005a48: 2202 movs r2, #2 + 8005a4a: 4013 ands r3, r2 + 8005a4c: d1f0 bne.n 8005a30 } } } /* Require to disable power clock if necessary */ if(pwrclkchanged == SET) - 8005a3a: 231f movs r3, #31 - 8005a3c: 18fb adds r3, r7, r3 - 8005a3e: 781b ldrb r3, [r3, #0] - 8005a40: 2b01 cmp r3, #1 - 8005a42: d105 bne.n 8005a50 + 8005a4e: 231f movs r3, #31 + 8005a50: 18fb adds r3, r7, r3 + 8005a52: 781b ldrb r3, [r3, #0] + 8005a54: 2b01 cmp r3, #1 + 8005a56: d105 bne.n 8005a64 { __HAL_RCC_PWR_CLK_DISABLE(); - 8005a44: 4b9c ldr r3, [pc, #624] @ (8005cb8 ) - 8005a46: 69da ldr r2, [r3, #28] - 8005a48: 4b9b ldr r3, [pc, #620] @ (8005cb8 ) - 8005a4a: 499d ldr r1, [pc, #628] @ (8005cc0 ) - 8005a4c: 400a ands r2, r1 - 8005a4e: 61da str r2, [r3, #28] + 8005a58: 4b9c ldr r3, [pc, #624] @ (8005ccc ) + 8005a5a: 69da ldr r2, [r3, #28] + 8005a5c: 4b9b ldr r3, [pc, #620] @ (8005ccc ) + 8005a5e: 499d ldr r1, [pc, #628] @ (8005cd4 ) + 8005a60: 400a ands r2, r1 + 8005a62: 61da str r2, [r3, #28] } } /*----------------------------- HSI14 Configuration --------------------------*/ if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI14) == RCC_OSCILLATORTYPE_HSI14) - 8005a50: 687b ldr r3, [r7, #4] - 8005a52: 681b ldr r3, [r3, #0] - 8005a54: 2210 movs r2, #16 - 8005a56: 4013 ands r3, r2 - 8005a58: d063 beq.n 8005b22 + 8005a64: 687b ldr r3, [r7, #4] + 8005a66: 681b ldr r3, [r3, #0] + 8005a68: 2210 movs r2, #16 + 8005a6a: 4013 ands r3, r2 + 8005a6c: d063 beq.n 8005b36 /* Check the parameters */ assert_param(IS_RCC_HSI14(RCC_OscInitStruct->HSI14State)); assert_param(IS_RCC_CALIBRATION_VALUE(RCC_OscInitStruct->HSI14CalibrationValue)); /* Check the HSI14 State */ if(RCC_OscInitStruct->HSI14State == RCC_HSI14_ON) - 8005a5a: 687b ldr r3, [r7, #4] - 8005a5c: 695b ldr r3, [r3, #20] - 8005a5e: 2b01 cmp r3, #1 - 8005a60: d12a bne.n 8005ab8 + 8005a6e: 687b ldr r3, [r7, #4] + 8005a70: 695b ldr r3, [r3, #20] + 8005a72: 2b01 cmp r3, #1 + 8005a74: d12a bne.n 8005acc { /* Disable ADC control of the Internal High Speed oscillator HSI14 */ __HAL_RCC_HSI14ADC_DISABLE(); - 8005a62: 4b95 ldr r3, [pc, #596] @ (8005cb8 ) - 8005a64: 6b5a ldr r2, [r3, #52] @ 0x34 - 8005a66: 4b94 ldr r3, [pc, #592] @ (8005cb8 ) - 8005a68: 2104 movs r1, #4 - 8005a6a: 430a orrs r2, r1 - 8005a6c: 635a str r2, [r3, #52] @ 0x34 + 8005a76: 4b95 ldr r3, [pc, #596] @ (8005ccc ) + 8005a78: 6b5a ldr r2, [r3, #52] @ 0x34 + 8005a7a: 4b94 ldr r3, [pc, #592] @ (8005ccc ) + 8005a7c: 2104 movs r1, #4 + 8005a7e: 430a orrs r2, r1 + 8005a80: 635a str r2, [r3, #52] @ 0x34 /* Enable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI14_ENABLE(); - 8005a6e: 4b92 ldr r3, [pc, #584] @ (8005cb8 ) - 8005a70: 6b5a ldr r2, [r3, #52] @ 0x34 - 8005a72: 4b91 ldr r3, [pc, #580] @ (8005cb8 ) - 8005a74: 2101 movs r1, #1 - 8005a76: 430a orrs r2, r1 - 8005a78: 635a str r2, [r3, #52] @ 0x34 + 8005a82: 4b92 ldr r3, [pc, #584] @ (8005ccc ) + 8005a84: 6b5a ldr r2, [r3, #52] @ 0x34 + 8005a86: 4b91 ldr r3, [pc, #580] @ (8005ccc ) + 8005a88: 2101 movs r1, #1 + 8005a8a: 430a orrs r2, r1 + 8005a8c: 635a str r2, [r3, #52] @ 0x34 /* Get Start Tick */ tickstart = HAL_GetTick(); - 8005a7a: f7fe f9b3 bl 8003de4 - 8005a7e: 0003 movs r3, r0 - 8005a80: 61bb str r3, [r7, #24] + 8005a8e: f7fe f9b3 bl 8003df8 + 8005a92: 0003 movs r3, r0 + 8005a94: 61bb str r3, [r7, #24] /* Wait till HSI is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSI14RDY) == RESET) - 8005a82: e008 b.n 8005a96 + 8005a96: e008 b.n 8005aaa { if((HAL_GetTick() - tickstart) > HSI14_TIMEOUT_VALUE) - 8005a84: f7fe f9ae bl 8003de4 - 8005a88: 0002 movs r2, r0 - 8005a8a: 69bb ldr r3, [r7, #24] - 8005a8c: 1ad3 subs r3, r2, r3 - 8005a8e: 2b02 cmp r3, #2 - 8005a90: d901 bls.n 8005a96 + 8005a98: f7fe f9ae bl 8003df8 + 8005a9c: 0002 movs r2, r0 + 8005a9e: 69bb ldr r3, [r7, #24] + 8005aa0: 1ad3 subs r3, r2, r3 + 8005aa2: 2b02 cmp r3, #2 + 8005aa4: d901 bls.n 8005aaa { return HAL_TIMEOUT; - 8005a92: 2303 movs r3, #3 - 8005a94: e152 b.n 8005d3c + 8005aa6: 2303 movs r3, #3 + 8005aa8: e152 b.n 8005d50 while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSI14RDY) == RESET) - 8005a96: 4b88 ldr r3, [pc, #544] @ (8005cb8 ) - 8005a98: 6b5b ldr r3, [r3, #52] @ 0x34 - 8005a9a: 2202 movs r2, #2 - 8005a9c: 4013 ands r3, r2 - 8005a9e: d0f1 beq.n 8005a84 + 8005aaa: 4b88 ldr r3, [pc, #544] @ (8005ccc ) + 8005aac: 6b5b ldr r3, [r3, #52] @ 0x34 + 8005aae: 2202 movs r2, #2 + 8005ab0: 4013 ands r3, r2 + 8005ab2: d0f1 beq.n 8005a98 } } /* Adjusts the Internal High Speed oscillator 14Mhz (HSI14) calibration value. */ __HAL_RCC_HSI14_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSI14CalibrationValue); - 8005aa0: 4b85 ldr r3, [pc, #532] @ (8005cb8 ) - 8005aa2: 6b5b ldr r3, [r3, #52] @ 0x34 - 8005aa4: 22f8 movs r2, #248 @ 0xf8 - 8005aa6: 4393 bics r3, r2 - 8005aa8: 0019 movs r1, r3 - 8005aaa: 687b ldr r3, [r7, #4] - 8005aac: 699b ldr r3, [r3, #24] - 8005aae: 00da lsls r2, r3, #3 - 8005ab0: 4b81 ldr r3, [pc, #516] @ (8005cb8 ) - 8005ab2: 430a orrs r2, r1 - 8005ab4: 635a str r2, [r3, #52] @ 0x34 - 8005ab6: e034 b.n 8005b22 + 8005ab4: 4b85 ldr r3, [pc, #532] @ (8005ccc ) + 8005ab6: 6b5b ldr r3, [r3, #52] @ 0x34 + 8005ab8: 22f8 movs r2, #248 @ 0xf8 + 8005aba: 4393 bics r3, r2 + 8005abc: 0019 movs r1, r3 + 8005abe: 687b ldr r3, [r7, #4] + 8005ac0: 699b ldr r3, [r3, #24] + 8005ac2: 00da lsls r2, r3, #3 + 8005ac4: 4b81 ldr r3, [pc, #516] @ (8005ccc ) + 8005ac6: 430a orrs r2, r1 + 8005ac8: 635a str r2, [r3, #52] @ 0x34 + 8005aca: e034 b.n 8005b36 } else if(RCC_OscInitStruct->HSI14State == RCC_HSI14_ADC_CONTROL) - 8005ab8: 687b ldr r3, [r7, #4] - 8005aba: 695b ldr r3, [r3, #20] - 8005abc: 3305 adds r3, #5 - 8005abe: d111 bne.n 8005ae4 + 8005acc: 687b ldr r3, [r7, #4] + 8005ace: 695b ldr r3, [r3, #20] + 8005ad0: 3305 adds r3, #5 + 8005ad2: d111 bne.n 8005af8 { /* Enable ADC control of the Internal High Speed oscillator HSI14 */ __HAL_RCC_HSI14ADC_ENABLE(); - 8005ac0: 4b7d ldr r3, [pc, #500] @ (8005cb8 ) - 8005ac2: 6b5a ldr r2, [r3, #52] @ 0x34 - 8005ac4: 4b7c ldr r3, [pc, #496] @ (8005cb8 ) - 8005ac6: 2104 movs r1, #4 - 8005ac8: 438a bics r2, r1 - 8005aca: 635a str r2, [r3, #52] @ 0x34 + 8005ad4: 4b7d ldr r3, [pc, #500] @ (8005ccc ) + 8005ad6: 6b5a ldr r2, [r3, #52] @ 0x34 + 8005ad8: 4b7c ldr r3, [pc, #496] @ (8005ccc ) + 8005ada: 2104 movs r1, #4 + 8005adc: 438a bics r2, r1 + 8005ade: 635a str r2, [r3, #52] @ 0x34 /* Adjusts the Internal High Speed oscillator 14Mhz (HSI14) calibration value. */ __HAL_RCC_HSI14_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSI14CalibrationValue); - 8005acc: 4b7a ldr r3, [pc, #488] @ (8005cb8 ) - 8005ace: 6b5b ldr r3, [r3, #52] @ 0x34 - 8005ad0: 22f8 movs r2, #248 @ 0xf8 - 8005ad2: 4393 bics r3, r2 - 8005ad4: 0019 movs r1, r3 - 8005ad6: 687b ldr r3, [r7, #4] - 8005ad8: 699b ldr r3, [r3, #24] - 8005ada: 00da lsls r2, r3, #3 - 8005adc: 4b76 ldr r3, [pc, #472] @ (8005cb8 ) - 8005ade: 430a orrs r2, r1 - 8005ae0: 635a str r2, [r3, #52] @ 0x34 - 8005ae2: e01e b.n 8005b22 + 8005ae0: 4b7a ldr r3, [pc, #488] @ (8005ccc ) + 8005ae2: 6b5b ldr r3, [r3, #52] @ 0x34 + 8005ae4: 22f8 movs r2, #248 @ 0xf8 + 8005ae6: 4393 bics r3, r2 + 8005ae8: 0019 movs r1, r3 + 8005aea: 687b ldr r3, [r7, #4] + 8005aec: 699b ldr r3, [r3, #24] + 8005aee: 00da lsls r2, r3, #3 + 8005af0: 4b76 ldr r3, [pc, #472] @ (8005ccc ) + 8005af2: 430a orrs r2, r1 + 8005af4: 635a str r2, [r3, #52] @ 0x34 + 8005af6: e01e b.n 8005b36 } else { /* Disable ADC control of the Internal High Speed oscillator HSI14 */ __HAL_RCC_HSI14ADC_DISABLE(); - 8005ae4: 4b74 ldr r3, [pc, #464] @ (8005cb8 ) - 8005ae6: 6b5a ldr r2, [r3, #52] @ 0x34 - 8005ae8: 4b73 ldr r3, [pc, #460] @ (8005cb8 ) - 8005aea: 2104 movs r1, #4 - 8005aec: 430a orrs r2, r1 - 8005aee: 635a str r2, [r3, #52] @ 0x34 + 8005af8: 4b74 ldr r3, [pc, #464] @ (8005ccc ) + 8005afa: 6b5a ldr r2, [r3, #52] @ 0x34 + 8005afc: 4b73 ldr r3, [pc, #460] @ (8005ccc ) + 8005afe: 2104 movs r1, #4 + 8005b00: 430a orrs r2, r1 + 8005b02: 635a str r2, [r3, #52] @ 0x34 /* Disable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI14_DISABLE(); - 8005af0: 4b71 ldr r3, [pc, #452] @ (8005cb8 ) - 8005af2: 6b5a ldr r2, [r3, #52] @ 0x34 - 8005af4: 4b70 ldr r3, [pc, #448] @ (8005cb8 ) - 8005af6: 2101 movs r1, #1 - 8005af8: 438a bics r2, r1 - 8005afa: 635a str r2, [r3, #52] @ 0x34 + 8005b04: 4b71 ldr r3, [pc, #452] @ (8005ccc ) + 8005b06: 6b5a ldr r2, [r3, #52] @ 0x34 + 8005b08: 4b70 ldr r3, [pc, #448] @ (8005ccc ) + 8005b0a: 2101 movs r1, #1 + 8005b0c: 438a bics r2, r1 + 8005b0e: 635a str r2, [r3, #52] @ 0x34 /* Get Start Tick */ tickstart = HAL_GetTick(); - 8005afc: f7fe f972 bl 8003de4 - 8005b00: 0003 movs r3, r0 - 8005b02: 61bb str r3, [r7, #24] + 8005b10: f7fe f972 bl 8003df8 + 8005b14: 0003 movs r3, r0 + 8005b16: 61bb str r3, [r7, #24] /* Wait till HSI is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSI14RDY) != RESET) - 8005b04: e008 b.n 8005b18 + 8005b18: e008 b.n 8005b2c { if((HAL_GetTick() - tickstart) > HSI14_TIMEOUT_VALUE) - 8005b06: f7fe f96d bl 8003de4 - 8005b0a: 0002 movs r2, r0 - 8005b0c: 69bb ldr r3, [r7, #24] - 8005b0e: 1ad3 subs r3, r2, r3 - 8005b10: 2b02 cmp r3, #2 - 8005b12: d901 bls.n 8005b18 + 8005b1a: f7fe f96d bl 8003df8 + 8005b1e: 0002 movs r2, r0 + 8005b20: 69bb ldr r3, [r7, #24] + 8005b22: 1ad3 subs r3, r2, r3 + 8005b24: 2b02 cmp r3, #2 + 8005b26: d901 bls.n 8005b2c { return HAL_TIMEOUT; - 8005b14: 2303 movs r3, #3 - 8005b16: e111 b.n 8005d3c + 8005b28: 2303 movs r3, #3 + 8005b2a: e111 b.n 8005d50 while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSI14RDY) != RESET) - 8005b18: 4b67 ldr r3, [pc, #412] @ (8005cb8 ) - 8005b1a: 6b5b ldr r3, [r3, #52] @ 0x34 - 8005b1c: 2202 movs r2, #2 - 8005b1e: 4013 ands r3, r2 - 8005b20: d1f1 bne.n 8005b06 + 8005b2c: 4b67 ldr r3, [pc, #412] @ (8005ccc ) + 8005b2e: 6b5b ldr r3, [r3, #52] @ 0x34 + 8005b30: 2202 movs r2, #2 + 8005b32: 4013 ands r3, r2 + 8005b34: d1f1 bne.n 8005b1a } } #if defined(RCC_HSI48_SUPPORT) /*----------------------------- HSI48 Configuration --------------------------*/ if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI48) == RCC_OSCILLATORTYPE_HSI48) - 8005b22: 687b ldr r3, [r7, #4] - 8005b24: 681b ldr r3, [r3, #0] - 8005b26: 2220 movs r2, #32 - 8005b28: 4013 ands r3, r2 - 8005b2a: d05c beq.n 8005be6 + 8005b36: 687b ldr r3, [r7, #4] + 8005b38: 681b ldr r3, [r3, #0] + 8005b3a: 2220 movs r2, #32 + 8005b3c: 4013 ands r3, r2 + 8005b3e: d05c beq.n 8005bfa { /* Check the parameters */ assert_param(IS_RCC_HSI48(RCC_OscInitStruct->HSI48State)); /* When the HSI48 is used as system clock it is not allowed to be disabled */ if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSI48) || - 8005b2c: 4b62 ldr r3, [pc, #392] @ (8005cb8 ) - 8005b2e: 685b ldr r3, [r3, #4] - 8005b30: 220c movs r2, #12 - 8005b32: 4013 ands r3, r2 - 8005b34: 2b0c cmp r3, #12 - 8005b36: d00e beq.n 8005b56 + 8005b40: 4b62 ldr r3, [pc, #392] @ (8005ccc ) + 8005b42: 685b ldr r3, [r3, #4] + 8005b44: 220c movs r2, #12 + 8005b46: 4013 ands r3, r2 + 8005b48: 2b0c cmp r3, #12 + 8005b4a: d00e beq.n 8005b6a ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSI48))) - 8005b38: 4b5f ldr r3, [pc, #380] @ (8005cb8 ) - 8005b3a: 685b ldr r3, [r3, #4] - 8005b3c: 220c movs r2, #12 - 8005b3e: 4013 ands r3, r2 + 8005b4c: 4b5f ldr r3, [pc, #380] @ (8005ccc ) + 8005b4e: 685b ldr r3, [r3, #4] + 8005b50: 220c movs r2, #12 + 8005b52: 4013 ands r3, r2 if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSI48) || - 8005b40: 2b08 cmp r3, #8 - 8005b42: d114 bne.n 8005b6e + 8005b54: 2b08 cmp r3, #8 + 8005b56: d114 bne.n 8005b82 ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSI48))) - 8005b44: 4b5c ldr r3, [pc, #368] @ (8005cb8 ) - 8005b46: 685a ldr r2, [r3, #4] - 8005b48: 23c0 movs r3, #192 @ 0xc0 - 8005b4a: 025b lsls r3, r3, #9 - 8005b4c: 401a ands r2, r3 - 8005b4e: 23c0 movs r3, #192 @ 0xc0 - 8005b50: 025b lsls r3, r3, #9 - 8005b52: 429a cmp r2, r3 - 8005b54: d10b bne.n 8005b6e + 8005b58: 4b5c ldr r3, [pc, #368] @ (8005ccc ) + 8005b5a: 685a ldr r2, [r3, #4] + 8005b5c: 23c0 movs r3, #192 @ 0xc0 + 8005b5e: 025b lsls r3, r3, #9 + 8005b60: 401a ands r2, r3 + 8005b62: 23c0 movs r3, #192 @ 0xc0 + 8005b64: 025b lsls r3, r3, #9 + 8005b66: 429a cmp r2, r3 + 8005b68: d10b bne.n 8005b82 { if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != RESET) && (RCC_OscInitStruct->HSI48State != RCC_HSI48_ON)) - 8005b56: 4b58 ldr r3, [pc, #352] @ (8005cb8 ) - 8005b58: 6b5a ldr r2, [r3, #52] @ 0x34 - 8005b5a: 2380 movs r3, #128 @ 0x80 - 8005b5c: 029b lsls r3, r3, #10 - 8005b5e: 4013 ands r3, r2 - 8005b60: d040 beq.n 8005be4 - 8005b62: 687b ldr r3, [r7, #4] - 8005b64: 6a1b ldr r3, [r3, #32] - 8005b66: 2b01 cmp r3, #1 - 8005b68: d03c beq.n 8005be4 + 8005b6a: 4b58 ldr r3, [pc, #352] @ (8005ccc ) + 8005b6c: 6b5a ldr r2, [r3, #52] @ 0x34 + 8005b6e: 2380 movs r3, #128 @ 0x80 + 8005b70: 029b lsls r3, r3, #10 + 8005b72: 4013 ands r3, r2 + 8005b74: d040 beq.n 8005bf8 + 8005b76: 687b ldr r3, [r7, #4] + 8005b78: 6a1b ldr r3, [r3, #32] + 8005b7a: 2b01 cmp r3, #1 + 8005b7c: d03c beq.n 8005bf8 { return HAL_ERROR; - 8005b6a: 2301 movs r3, #1 - 8005b6c: e0e6 b.n 8005d3c + 8005b7e: 2301 movs r3, #1 + 8005b80: e0e6 b.n 8005d50 } } else { /* Check the HSI48 State */ if(RCC_OscInitStruct->HSI48State != RCC_HSI48_OFF) - 8005b6e: 687b ldr r3, [r7, #4] - 8005b70: 6a1b ldr r3, [r3, #32] - 8005b72: 2b00 cmp r3, #0 - 8005b74: d01b beq.n 8005bae + 8005b82: 687b ldr r3, [r7, #4] + 8005b84: 6a1b ldr r3, [r3, #32] + 8005b86: 2b00 cmp r3, #0 + 8005b88: d01b beq.n 8005bc2 { /* Enable the Internal High Speed oscillator (HSI48). */ __HAL_RCC_HSI48_ENABLE(); - 8005b76: 4b50 ldr r3, [pc, #320] @ (8005cb8 ) - 8005b78: 6b5a ldr r2, [r3, #52] @ 0x34 - 8005b7a: 4b4f ldr r3, [pc, #316] @ (8005cb8 ) - 8005b7c: 2180 movs r1, #128 @ 0x80 - 8005b7e: 0249 lsls r1, r1, #9 - 8005b80: 430a orrs r2, r1 - 8005b82: 635a str r2, [r3, #52] @ 0x34 + 8005b8a: 4b50 ldr r3, [pc, #320] @ (8005ccc ) + 8005b8c: 6b5a ldr r2, [r3, #52] @ 0x34 + 8005b8e: 4b4f ldr r3, [pc, #316] @ (8005ccc ) + 8005b90: 2180 movs r1, #128 @ 0x80 + 8005b92: 0249 lsls r1, r1, #9 + 8005b94: 430a orrs r2, r1 + 8005b96: 635a str r2, [r3, #52] @ 0x34 /* Get Start Tick */ tickstart = HAL_GetTick(); - 8005b84: f7fe f92e bl 8003de4 - 8005b88: 0003 movs r3, r0 - 8005b8a: 61bb str r3, [r7, #24] + 8005b98: f7fe f92e bl 8003df8 + 8005b9c: 0003 movs r3, r0 + 8005b9e: 61bb str r3, [r7, #24] /* Wait till HSI48 is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) == RESET) - 8005b8c: e008 b.n 8005ba0 + 8005ba0: e008 b.n 8005bb4 { if((HAL_GetTick() - tickstart) > HSI48_TIMEOUT_VALUE) - 8005b8e: f7fe f929 bl 8003de4 - 8005b92: 0002 movs r2, r0 - 8005b94: 69bb ldr r3, [r7, #24] - 8005b96: 1ad3 subs r3, r2, r3 - 8005b98: 2b02 cmp r3, #2 - 8005b9a: d901 bls.n 8005ba0 + 8005ba2: f7fe f929 bl 8003df8 + 8005ba6: 0002 movs r2, r0 + 8005ba8: 69bb ldr r3, [r7, #24] + 8005baa: 1ad3 subs r3, r2, r3 + 8005bac: 2b02 cmp r3, #2 + 8005bae: d901 bls.n 8005bb4 { return HAL_TIMEOUT; - 8005b9c: 2303 movs r3, #3 - 8005b9e: e0cd b.n 8005d3c + 8005bb0: 2303 movs r3, #3 + 8005bb2: e0cd b.n 8005d50 while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) == RESET) - 8005ba0: 4b45 ldr r3, [pc, #276] @ (8005cb8 ) - 8005ba2: 6b5a ldr r2, [r3, #52] @ 0x34 - 8005ba4: 2380 movs r3, #128 @ 0x80 - 8005ba6: 029b lsls r3, r3, #10 - 8005ba8: 4013 ands r3, r2 - 8005baa: d0f0 beq.n 8005b8e - 8005bac: e01b b.n 8005be6 + 8005bb4: 4b45 ldr r3, [pc, #276] @ (8005ccc ) + 8005bb6: 6b5a ldr r2, [r3, #52] @ 0x34 + 8005bb8: 2380 movs r3, #128 @ 0x80 + 8005bba: 029b lsls r3, r3, #10 + 8005bbc: 4013 ands r3, r2 + 8005bbe: d0f0 beq.n 8005ba2 + 8005bc0: e01b b.n 8005bfa } } else { /* Disable the Internal High Speed oscillator (HSI48). */ __HAL_RCC_HSI48_DISABLE(); - 8005bae: 4b42 ldr r3, [pc, #264] @ (8005cb8 ) - 8005bb0: 6b5a ldr r2, [r3, #52] @ 0x34 - 8005bb2: 4b41 ldr r3, [pc, #260] @ (8005cb8 ) - 8005bb4: 4943 ldr r1, [pc, #268] @ (8005cc4 ) - 8005bb6: 400a ands r2, r1 - 8005bb8: 635a str r2, [r3, #52] @ 0x34 + 8005bc2: 4b42 ldr r3, [pc, #264] @ (8005ccc ) + 8005bc4: 6b5a ldr r2, [r3, #52] @ 0x34 + 8005bc6: 4b41 ldr r3, [pc, #260] @ (8005ccc ) + 8005bc8: 4943 ldr r1, [pc, #268] @ (8005cd8 ) + 8005bca: 400a ands r2, r1 + 8005bcc: 635a str r2, [r3, #52] @ 0x34 /* Get Start Tick */ tickstart = HAL_GetTick(); - 8005bba: f7fe f913 bl 8003de4 - 8005bbe: 0003 movs r3, r0 - 8005bc0: 61bb str r3, [r7, #24] + 8005bce: f7fe f913 bl 8003df8 + 8005bd2: 0003 movs r3, r0 + 8005bd4: 61bb str r3, [r7, #24] /* Wait till HSI48 is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != RESET) - 8005bc2: e008 b.n 8005bd6 + 8005bd6: e008 b.n 8005bea { if((HAL_GetTick() - tickstart) > HSI48_TIMEOUT_VALUE) - 8005bc4: f7fe f90e bl 8003de4 - 8005bc8: 0002 movs r2, r0 - 8005bca: 69bb ldr r3, [r7, #24] - 8005bcc: 1ad3 subs r3, r2, r3 - 8005bce: 2b02 cmp r3, #2 - 8005bd0: d901 bls.n 8005bd6 + 8005bd8: f7fe f90e bl 8003df8 + 8005bdc: 0002 movs r2, r0 + 8005bde: 69bb ldr r3, [r7, #24] + 8005be0: 1ad3 subs r3, r2, r3 + 8005be2: 2b02 cmp r3, #2 + 8005be4: d901 bls.n 8005bea { return HAL_TIMEOUT; - 8005bd2: 2303 movs r3, #3 - 8005bd4: e0b2 b.n 8005d3c + 8005be6: 2303 movs r3, #3 + 8005be8: e0b2 b.n 8005d50 while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != RESET) - 8005bd6: 4b38 ldr r3, [pc, #224] @ (8005cb8 ) - 8005bd8: 6b5a ldr r2, [r3, #52] @ 0x34 - 8005bda: 2380 movs r3, #128 @ 0x80 - 8005bdc: 029b lsls r3, r3, #10 - 8005bde: 4013 ands r3, r2 - 8005be0: d1f0 bne.n 8005bc4 - 8005be2: e000 b.n 8005be6 + 8005bea: 4b38 ldr r3, [pc, #224] @ (8005ccc ) + 8005bec: 6b5a ldr r2, [r3, #52] @ 0x34 + 8005bee: 2380 movs r3, #128 @ 0x80 + 8005bf0: 029b lsls r3, r3, #10 + 8005bf2: 4013 ands r3, r2 + 8005bf4: d1f0 bne.n 8005bd8 + 8005bf6: e000 b.n 8005bfa if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) != RESET) && (RCC_OscInitStruct->HSI48State != RCC_HSI48_ON)) - 8005be4: 46c0 nop @ (mov r8, r8) + 8005bf8: 46c0 nop @ (mov r8, r8) #endif /* RCC_HSI48_SUPPORT */ /*-------------------------------- PLL Configuration -----------------------*/ /* Check the parameters */ assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState)); if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE) - 8005be6: 687b ldr r3, [r7, #4] - 8005be8: 6a5b ldr r3, [r3, #36] @ 0x24 - 8005bea: 2b00 cmp r3, #0 - 8005bec: d100 bne.n 8005bf0 - 8005bee: e0a4 b.n 8005d3a + 8005bfa: 687b ldr r3, [r7, #4] + 8005bfc: 6a5b ldr r3, [r3, #36] @ 0x24 + 8005bfe: 2b00 cmp r3, #0 + 8005c00: d100 bne.n 8005c04 + 8005c02: e0a4 b.n 8005d4e { /* Check if the PLL is used as system clock or not */ if(__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_PLLCLK) - 8005bf0: 4b31 ldr r3, [pc, #196] @ (8005cb8 ) - 8005bf2: 685b ldr r3, [r3, #4] - 8005bf4: 220c movs r2, #12 - 8005bf6: 4013 ands r3, r2 - 8005bf8: 2b08 cmp r3, #8 - 8005bfa: d100 bne.n 8005bfe - 8005bfc: e078 b.n 8005cf0 + 8005c04: 4b31 ldr r3, [pc, #196] @ (8005ccc ) + 8005c06: 685b ldr r3, [r3, #4] + 8005c08: 220c movs r2, #12 + 8005c0a: 4013 ands r3, r2 + 8005c0c: 2b08 cmp r3, #8 + 8005c0e: d100 bne.n 8005c12 + 8005c10: e078 b.n 8005d04 { if((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON) - 8005bfe: 687b ldr r3, [r7, #4] - 8005c00: 6a5b ldr r3, [r3, #36] @ 0x24 - 8005c02: 2b02 cmp r3, #2 - 8005c04: d14c bne.n 8005ca0 + 8005c12: 687b ldr r3, [r7, #4] + 8005c14: 6a5b ldr r3, [r3, #36] @ 0x24 + 8005c16: 2b02 cmp r3, #2 + 8005c18: d14c bne.n 8005cb4 assert_param(IS_RCC_PLLSOURCE(RCC_OscInitStruct->PLL.PLLSource)); assert_param(IS_RCC_PLL_MUL(RCC_OscInitStruct->PLL.PLLMUL)); assert_param(IS_RCC_PREDIV(RCC_OscInitStruct->PLL.PREDIV)); /* Disable the main PLL. */ __HAL_RCC_PLL_DISABLE(); - 8005c06: 4b2c ldr r3, [pc, #176] @ (8005cb8 ) - 8005c08: 681a ldr r2, [r3, #0] - 8005c0a: 4b2b ldr r3, [pc, #172] @ (8005cb8 ) - 8005c0c: 492e ldr r1, [pc, #184] @ (8005cc8 ) - 8005c0e: 400a ands r2, r1 - 8005c10: 601a str r2, [r3, #0] + 8005c1a: 4b2c ldr r3, [pc, #176] @ (8005ccc ) + 8005c1c: 681a ldr r2, [r3, #0] + 8005c1e: 4b2b ldr r3, [pc, #172] @ (8005ccc ) + 8005c20: 492e ldr r1, [pc, #184] @ (8005cdc ) + 8005c22: 400a ands r2, r1 + 8005c24: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 8005c12: f7fe f8e7 bl 8003de4 - 8005c16: 0003 movs r3, r0 - 8005c18: 61bb str r3, [r7, #24] + 8005c26: f7fe f8e7 bl 8003df8 + 8005c2a: 0003 movs r3, r0 + 8005c2c: 61bb str r3, [r7, #24] /* Wait till PLL is disabled */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 8005c1a: e008 b.n 8005c2e + 8005c2e: e008 b.n 8005c42 { if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE) - 8005c1c: f7fe f8e2 bl 8003de4 - 8005c20: 0002 movs r2, r0 - 8005c22: 69bb ldr r3, [r7, #24] - 8005c24: 1ad3 subs r3, r2, r3 - 8005c26: 2b02 cmp r3, #2 - 8005c28: d901 bls.n 8005c2e + 8005c30: f7fe f8e2 bl 8003df8 + 8005c34: 0002 movs r2, r0 + 8005c36: 69bb ldr r3, [r7, #24] + 8005c38: 1ad3 subs r3, r2, r3 + 8005c3a: 2b02 cmp r3, #2 + 8005c3c: d901 bls.n 8005c42 { return HAL_TIMEOUT; - 8005c2a: 2303 movs r3, #3 - 8005c2c: e086 b.n 8005d3c + 8005c3e: 2303 movs r3, #3 + 8005c40: e086 b.n 8005d50 while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 8005c2e: 4b22 ldr r3, [pc, #136] @ (8005cb8 ) - 8005c30: 681a ldr r2, [r3, #0] - 8005c32: 2380 movs r3, #128 @ 0x80 - 8005c34: 049b lsls r3, r3, #18 - 8005c36: 4013 ands r3, r2 - 8005c38: d1f0 bne.n 8005c1c + 8005c42: 4b22 ldr r3, [pc, #136] @ (8005ccc ) + 8005c44: 681a ldr r2, [r3, #0] + 8005c46: 2380 movs r3, #128 @ 0x80 + 8005c48: 049b lsls r3, r3, #18 + 8005c4a: 4013 ands r3, r2 + 8005c4c: d1f0 bne.n 8005c30 } } /* Configure the main PLL clock source, predivider and multiplication factor. */ __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource, - 8005c3a: 4b1f ldr r3, [pc, #124] @ (8005cb8 ) - 8005c3c: 6adb ldr r3, [r3, #44] @ 0x2c - 8005c3e: 220f movs r2, #15 - 8005c40: 4393 bics r3, r2 - 8005c42: 0019 movs r1, r3 - 8005c44: 687b ldr r3, [r7, #4] - 8005c46: 6b1a ldr r2, [r3, #48] @ 0x30 - 8005c48: 4b1b ldr r3, [pc, #108] @ (8005cb8 ) - 8005c4a: 430a orrs r2, r1 - 8005c4c: 62da str r2, [r3, #44] @ 0x2c - 8005c4e: 4b1a ldr r3, [pc, #104] @ (8005cb8 ) - 8005c50: 685b ldr r3, [r3, #4] - 8005c52: 4a1e ldr r2, [pc, #120] @ (8005ccc ) - 8005c54: 4013 ands r3, r2 + 8005c4e: 4b1f ldr r3, [pc, #124] @ (8005ccc ) + 8005c50: 6adb ldr r3, [r3, #44] @ 0x2c + 8005c52: 220f movs r2, #15 + 8005c54: 4393 bics r3, r2 8005c56: 0019 movs r1, r3 8005c58: 687b ldr r3, [r7, #4] - 8005c5a: 6ada ldr r2, [r3, #44] @ 0x2c - 8005c5c: 687b ldr r3, [r7, #4] - 8005c5e: 6a9b ldr r3, [r3, #40] @ 0x28 - 8005c60: 431a orrs r2, r3 - 8005c62: 4b15 ldr r3, [pc, #84] @ (8005cb8 ) - 8005c64: 430a orrs r2, r1 - 8005c66: 605a str r2, [r3, #4] + 8005c5a: 6b1a ldr r2, [r3, #48] @ 0x30 + 8005c5c: 4b1b ldr r3, [pc, #108] @ (8005ccc ) + 8005c5e: 430a orrs r2, r1 + 8005c60: 62da str r2, [r3, #44] @ 0x2c + 8005c62: 4b1a ldr r3, [pc, #104] @ (8005ccc ) + 8005c64: 685b ldr r3, [r3, #4] + 8005c66: 4a1e ldr r2, [pc, #120] @ (8005ce0 ) + 8005c68: 4013 ands r3, r2 + 8005c6a: 0019 movs r1, r3 + 8005c6c: 687b ldr r3, [r7, #4] + 8005c6e: 6ada ldr r2, [r3, #44] @ 0x2c + 8005c70: 687b ldr r3, [r7, #4] + 8005c72: 6a9b ldr r3, [r3, #40] @ 0x28 + 8005c74: 431a orrs r2, r3 + 8005c76: 4b15 ldr r3, [pc, #84] @ (8005ccc ) + 8005c78: 430a orrs r2, r1 + 8005c7a: 605a str r2, [r3, #4] RCC_OscInitStruct->PLL.PREDIV, RCC_OscInitStruct->PLL.PLLMUL); /* Enable the main PLL. */ __HAL_RCC_PLL_ENABLE(); - 8005c68: 4b13 ldr r3, [pc, #76] @ (8005cb8 ) - 8005c6a: 681a ldr r2, [r3, #0] - 8005c6c: 4b12 ldr r3, [pc, #72] @ (8005cb8 ) - 8005c6e: 2180 movs r1, #128 @ 0x80 - 8005c70: 0449 lsls r1, r1, #17 - 8005c72: 430a orrs r2, r1 - 8005c74: 601a str r2, [r3, #0] + 8005c7c: 4b13 ldr r3, [pc, #76] @ (8005ccc ) + 8005c7e: 681a ldr r2, [r3, #0] + 8005c80: 4b12 ldr r3, [pc, #72] @ (8005ccc ) + 8005c82: 2180 movs r1, #128 @ 0x80 + 8005c84: 0449 lsls r1, r1, #17 + 8005c86: 430a orrs r2, r1 + 8005c88: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 8005c76: f7fe f8b5 bl 8003de4 - 8005c7a: 0003 movs r3, r0 - 8005c7c: 61bb str r3, [r7, #24] + 8005c8a: f7fe f8b5 bl 8003df8 + 8005c8e: 0003 movs r3, r0 + 8005c90: 61bb str r3, [r7, #24] /* Wait till PLL is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 8005c7e: e008 b.n 8005c92 + 8005c92: e008 b.n 8005ca6 { if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE) - 8005c80: f7fe f8b0 bl 8003de4 - 8005c84: 0002 movs r2, r0 - 8005c86: 69bb ldr r3, [r7, #24] - 8005c88: 1ad3 subs r3, r2, r3 - 8005c8a: 2b02 cmp r3, #2 - 8005c8c: d901 bls.n 8005c92 + 8005c94: f7fe f8b0 bl 8003df8 + 8005c98: 0002 movs r2, r0 + 8005c9a: 69bb ldr r3, [r7, #24] + 8005c9c: 1ad3 subs r3, r2, r3 + 8005c9e: 2b02 cmp r3, #2 + 8005ca0: d901 bls.n 8005ca6 { return HAL_TIMEOUT; - 8005c8e: 2303 movs r3, #3 - 8005c90: e054 b.n 8005d3c + 8005ca2: 2303 movs r3, #3 + 8005ca4: e054 b.n 8005d50 while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 8005c92: 4b09 ldr r3, [pc, #36] @ (8005cb8 ) - 8005c94: 681a ldr r2, [r3, #0] - 8005c96: 2380 movs r3, #128 @ 0x80 - 8005c98: 049b lsls r3, r3, #18 - 8005c9a: 4013 ands r3, r2 - 8005c9c: d0f0 beq.n 8005c80 - 8005c9e: e04c b.n 8005d3a + 8005ca6: 4b09 ldr r3, [pc, #36] @ (8005ccc ) + 8005ca8: 681a ldr r2, [r3, #0] + 8005caa: 2380 movs r3, #128 @ 0x80 + 8005cac: 049b lsls r3, r3, #18 + 8005cae: 4013 ands r3, r2 + 8005cb0: d0f0 beq.n 8005c94 + 8005cb2: e04c b.n 8005d4e } } else { /* Disable the main PLL. */ __HAL_RCC_PLL_DISABLE(); - 8005ca0: 4b05 ldr r3, [pc, #20] @ (8005cb8 ) - 8005ca2: 681a ldr r2, [r3, #0] - 8005ca4: 4b04 ldr r3, [pc, #16] @ (8005cb8 ) - 8005ca6: 4908 ldr r1, [pc, #32] @ (8005cc8 ) - 8005ca8: 400a ands r2, r1 - 8005caa: 601a str r2, [r3, #0] + 8005cb4: 4b05 ldr r3, [pc, #20] @ (8005ccc ) + 8005cb6: 681a ldr r2, [r3, #0] + 8005cb8: 4b04 ldr r3, [pc, #16] @ (8005ccc ) + 8005cba: 4908 ldr r1, [pc, #32] @ (8005cdc ) + 8005cbc: 400a ands r2, r1 + 8005cbe: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 8005cac: f7fe f89a bl 8003de4 - 8005cb0: 0003 movs r3, r0 - 8005cb2: 61bb str r3, [r7, #24] + 8005cc0: f7fe f89a bl 8003df8 + 8005cc4: 0003 movs r3, r0 + 8005cc6: 61bb str r3, [r7, #24] /* Wait till PLL is disabled */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 8005cb4: e015 b.n 8005ce2 - 8005cb6: 46c0 nop @ (mov r8, r8) - 8005cb8: 40021000 .word 0x40021000 - 8005cbc: 00001388 .word 0x00001388 - 8005cc0: efffffff .word 0xefffffff - 8005cc4: fffeffff .word 0xfffeffff - 8005cc8: feffffff .word 0xfeffffff - 8005ccc: ffc27fff .word 0xffc27fff + 8005cc8: e015 b.n 8005cf6 + 8005cca: 46c0 nop @ (mov r8, r8) + 8005ccc: 40021000 .word 0x40021000 + 8005cd0: 00001388 .word 0x00001388 + 8005cd4: efffffff .word 0xefffffff + 8005cd8: fffeffff .word 0xfffeffff + 8005cdc: feffffff .word 0xfeffffff + 8005ce0: ffc27fff .word 0xffc27fff { if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE) - 8005cd0: f7fe f888 bl 8003de4 - 8005cd4: 0002 movs r2, r0 - 8005cd6: 69bb ldr r3, [r7, #24] - 8005cd8: 1ad3 subs r3, r2, r3 - 8005cda: 2b02 cmp r3, #2 - 8005cdc: d901 bls.n 8005ce2 + 8005ce4: f7fe f888 bl 8003df8 + 8005ce8: 0002 movs r2, r0 + 8005cea: 69bb ldr r3, [r7, #24] + 8005cec: 1ad3 subs r3, r2, r3 + 8005cee: 2b02 cmp r3, #2 + 8005cf0: d901 bls.n 8005cf6 { return HAL_TIMEOUT; - 8005cde: 2303 movs r3, #3 - 8005ce0: e02c b.n 8005d3c + 8005cf2: 2303 movs r3, #3 + 8005cf4: e02c b.n 8005d50 while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 8005ce2: 4b18 ldr r3, [pc, #96] @ (8005d44 ) - 8005ce4: 681a ldr r2, [r3, #0] - 8005ce6: 2380 movs r3, #128 @ 0x80 - 8005ce8: 049b lsls r3, r3, #18 - 8005cea: 4013 ands r3, r2 - 8005cec: d1f0 bne.n 8005cd0 - 8005cee: e024 b.n 8005d3a + 8005cf6: 4b18 ldr r3, [pc, #96] @ (8005d58 ) + 8005cf8: 681a ldr r2, [r3, #0] + 8005cfa: 2380 movs r3, #128 @ 0x80 + 8005cfc: 049b lsls r3, r3, #18 + 8005cfe: 4013 ands r3, r2 + 8005d00: d1f0 bne.n 8005ce4 + 8005d02: e024 b.n 8005d4e } } else { /* Check if there is a request to disable the PLL used as System clock source */ if((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) - 8005cf0: 687b ldr r3, [r7, #4] - 8005cf2: 6a5b ldr r3, [r3, #36] @ 0x24 - 8005cf4: 2b01 cmp r3, #1 - 8005cf6: d101 bne.n 8005cfc + 8005d04: 687b ldr r3, [r7, #4] + 8005d06: 6a5b ldr r3, [r3, #36] @ 0x24 + 8005d08: 2b01 cmp r3, #1 + 8005d0a: d101 bne.n 8005d10 { return HAL_ERROR; - 8005cf8: 2301 movs r3, #1 - 8005cfa: e01f b.n 8005d3c + 8005d0c: 2301 movs r3, #1 + 8005d0e: e01f b.n 8005d50 } else { /* Do not return HAL_ERROR if request repeats the current configuration */ pll_config = RCC->CFGR; - 8005cfc: 4b11 ldr r3, [pc, #68] @ (8005d44 ) - 8005cfe: 685b ldr r3, [r3, #4] - 8005d00: 617b str r3, [r7, #20] + 8005d10: 4b11 ldr r3, [pc, #68] @ (8005d58 ) + 8005d12: 685b ldr r3, [r3, #4] + 8005d14: 617b str r3, [r7, #20] pll_config2 = RCC->CFGR2; - 8005d02: 4b10 ldr r3, [pc, #64] @ (8005d44 ) - 8005d04: 6adb ldr r3, [r3, #44] @ 0x2c - 8005d06: 613b str r3, [r7, #16] + 8005d16: 4b10 ldr r3, [pc, #64] @ (8005d58 ) + 8005d18: 6adb ldr r3, [r3, #44] @ 0x2c + 8005d1a: 613b str r3, [r7, #16] if((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || - 8005d08: 697a ldr r2, [r7, #20] - 8005d0a: 23c0 movs r3, #192 @ 0xc0 - 8005d0c: 025b lsls r3, r3, #9 - 8005d0e: 401a ands r2, r3 - 8005d10: 687b ldr r3, [r7, #4] - 8005d12: 6a9b ldr r3, [r3, #40] @ 0x28 - 8005d14: 429a cmp r2, r3 - 8005d16: d10e bne.n 8005d36 + 8005d1c: 697a ldr r2, [r7, #20] + 8005d1e: 23c0 movs r3, #192 @ 0xc0 + 8005d20: 025b lsls r3, r3, #9 + 8005d22: 401a ands r2, r3 + 8005d24: 687b ldr r3, [r7, #4] + 8005d26: 6a9b ldr r3, [r3, #40] @ 0x28 + 8005d28: 429a cmp r2, r3 + 8005d2a: d10e bne.n 8005d4a (READ_BIT(pll_config2, RCC_CFGR2_PREDIV) != RCC_OscInitStruct->PLL.PREDIV) || - 8005d18: 693b ldr r3, [r7, #16] - 8005d1a: 220f movs r2, #15 - 8005d1c: 401a ands r2, r3 - 8005d1e: 687b ldr r3, [r7, #4] - 8005d20: 6b1b ldr r3, [r3, #48] @ 0x30 + 8005d2c: 693b ldr r3, [r7, #16] + 8005d2e: 220f movs r2, #15 + 8005d30: 401a ands r2, r3 + 8005d32: 687b ldr r3, [r7, #4] + 8005d34: 6b1b ldr r3, [r3, #48] @ 0x30 if((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || - 8005d22: 429a cmp r2, r3 - 8005d24: d107 bne.n 8005d36 + 8005d36: 429a cmp r2, r3 + 8005d38: d107 bne.n 8005d4a (READ_BIT(pll_config, RCC_CFGR_PLLMUL) != RCC_OscInitStruct->PLL.PLLMUL)) - 8005d26: 697a ldr r2, [r7, #20] - 8005d28: 23f0 movs r3, #240 @ 0xf0 - 8005d2a: 039b lsls r3, r3, #14 - 8005d2c: 401a ands r2, r3 - 8005d2e: 687b ldr r3, [r7, #4] - 8005d30: 6adb ldr r3, [r3, #44] @ 0x2c + 8005d3a: 697a ldr r2, [r7, #20] + 8005d3c: 23f0 movs r3, #240 @ 0xf0 + 8005d3e: 039b lsls r3, r3, #14 + 8005d40: 401a ands r2, r3 + 8005d42: 687b ldr r3, [r7, #4] + 8005d44: 6adb ldr r3, [r3, #44] @ 0x2c (READ_BIT(pll_config2, RCC_CFGR2_PREDIV) != RCC_OscInitStruct->PLL.PREDIV) || - 8005d32: 429a cmp r2, r3 - 8005d34: d001 beq.n 8005d3a + 8005d46: 429a cmp r2, r3 + 8005d48: d001 beq.n 8005d4e { return HAL_ERROR; - 8005d36: 2301 movs r3, #1 - 8005d38: e000 b.n 8005d3c + 8005d4a: 2301 movs r3, #1 + 8005d4c: e000 b.n 8005d50 } } } } return HAL_OK; - 8005d3a: 2300 movs r3, #0 + 8005d4e: 2300 movs r3, #0 } - 8005d3c: 0018 movs r0, r3 - 8005d3e: 46bd mov sp, r7 - 8005d40: b008 add sp, #32 - 8005d42: bd80 pop {r7, pc} - 8005d44: 40021000 .word 0x40021000 + 8005d50: 0018 movs r0, r3 + 8005d52: 46bd mov sp, r7 + 8005d54: b008 add sp, #32 + 8005d56: bd80 pop {r7, pc} + 8005d58: 40021000 .word 0x40021000 -08005d48 : +08005d5c : * You can use @ref HAL_RCC_GetClockConfig() function to know which clock is * currently used as system clock source. * @retval HAL status */ HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency) { - 8005d48: b580 push {r7, lr} - 8005d4a: b084 sub sp, #16 - 8005d4c: af00 add r7, sp, #0 - 8005d4e: 6078 str r0, [r7, #4] - 8005d50: 6039 str r1, [r7, #0] + 8005d5c: b580 push {r7, lr} + 8005d5e: b084 sub sp, #16 + 8005d60: af00 add r7, sp, #0 + 8005d62: 6078 str r0, [r7, #4] + 8005d64: 6039 str r1, [r7, #0] uint32_t tickstart; /* Check Null pointer */ if(RCC_ClkInitStruct == NULL) - 8005d52: 687b ldr r3, [r7, #4] - 8005d54: 2b00 cmp r3, #0 - 8005d56: d101 bne.n 8005d5c + 8005d66: 687b ldr r3, [r7, #4] + 8005d68: 2b00 cmp r3, #0 + 8005d6a: d101 bne.n 8005d70 { return HAL_ERROR; - 8005d58: 2301 movs r3, #1 - 8005d5a: e0bf b.n 8005edc + 8005d6c: 2301 movs r3, #1 + 8005d6e: e0bf b.n 8005ef0 /* To correctly read data from FLASH memory, the number of wait states (LATENCY) must be correctly programmed according to the frequency of the CPU clock (HCLK) of the device. */ /* Increasing the number of wait states because of higher CPU frequency */ if(FLatency > __HAL_FLASH_GET_LATENCY()) - 8005d5c: 4b61 ldr r3, [pc, #388] @ (8005ee4 ) - 8005d5e: 681b ldr r3, [r3, #0] - 8005d60: 2201 movs r2, #1 - 8005d62: 4013 ands r3, r2 - 8005d64: 683a ldr r2, [r7, #0] - 8005d66: 429a cmp r2, r3 - 8005d68: d911 bls.n 8005d8e + 8005d70: 4b61 ldr r3, [pc, #388] @ (8005ef8 ) + 8005d72: 681b ldr r3, [r3, #0] + 8005d74: 2201 movs r2, #1 + 8005d76: 4013 ands r3, r2 + 8005d78: 683a ldr r2, [r7, #0] + 8005d7a: 429a cmp r2, r3 + 8005d7c: d911 bls.n 8005da2 { /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ __HAL_FLASH_SET_LATENCY(FLatency); - 8005d6a: 4b5e ldr r3, [pc, #376] @ (8005ee4 ) - 8005d6c: 681b ldr r3, [r3, #0] - 8005d6e: 2201 movs r2, #1 - 8005d70: 4393 bics r3, r2 - 8005d72: 0019 movs r1, r3 - 8005d74: 4b5b ldr r3, [pc, #364] @ (8005ee4 ) - 8005d76: 683a ldr r2, [r7, #0] - 8005d78: 430a orrs r2, r1 - 8005d7a: 601a str r2, [r3, #0] + 8005d7e: 4b5e ldr r3, [pc, #376] @ (8005ef8 ) + 8005d80: 681b ldr r3, [r3, #0] + 8005d82: 2201 movs r2, #1 + 8005d84: 4393 bics r3, r2 + 8005d86: 0019 movs r1, r3 + 8005d88: 4b5b ldr r3, [pc, #364] @ (8005ef8 ) + 8005d8a: 683a ldr r2, [r7, #0] + 8005d8c: 430a orrs r2, r1 + 8005d8e: 601a str r2, [r3, #0] /* Check that the new number of wait states is taken into account to access the Flash memory by reading the FLASH_ACR register */ if(__HAL_FLASH_GET_LATENCY() != FLatency) - 8005d7c: 4b59 ldr r3, [pc, #356] @ (8005ee4 ) - 8005d7e: 681b ldr r3, [r3, #0] - 8005d80: 2201 movs r2, #1 - 8005d82: 4013 ands r3, r2 - 8005d84: 683a ldr r2, [r7, #0] - 8005d86: 429a cmp r2, r3 - 8005d88: d001 beq.n 8005d8e + 8005d90: 4b59 ldr r3, [pc, #356] @ (8005ef8 ) + 8005d92: 681b ldr r3, [r3, #0] + 8005d94: 2201 movs r2, #1 + 8005d96: 4013 ands r3, r2 + 8005d98: 683a ldr r2, [r7, #0] + 8005d9a: 429a cmp r2, r3 + 8005d9c: d001 beq.n 8005da2 { return HAL_ERROR; - 8005d8a: 2301 movs r3, #1 - 8005d8c: e0a6 b.n 8005edc + 8005d9e: 2301 movs r3, #1 + 8005da0: e0a6 b.n 8005ef0 } } /*-------------------------- HCLK Configuration --------------------------*/ if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) - 8005d8e: 687b ldr r3, [r7, #4] - 8005d90: 681b ldr r3, [r3, #0] - 8005d92: 2202 movs r2, #2 - 8005d94: 4013 ands r3, r2 - 8005d96: d015 beq.n 8005dc4 + 8005da2: 687b ldr r3, [r7, #4] + 8005da4: 681b ldr r3, [r3, #0] + 8005da6: 2202 movs r2, #2 + 8005da8: 4013 ands r3, r2 + 8005daa: d015 beq.n 8005dd8 { /* Set the highest APB divider in order to ensure that we do not go through a non-spec phase whatever we decrease or increase HCLK. */ if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) - 8005d98: 687b ldr r3, [r7, #4] - 8005d9a: 681b ldr r3, [r3, #0] - 8005d9c: 2204 movs r2, #4 - 8005d9e: 4013 ands r3, r2 - 8005da0: d006 beq.n 8005db0 + 8005dac: 687b ldr r3, [r7, #4] + 8005dae: 681b ldr r3, [r3, #0] + 8005db0: 2204 movs r2, #4 + 8005db2: 4013 ands r3, r2 + 8005db4: d006 beq.n 8005dc4 { MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE, RCC_HCLK_DIV16); - 8005da2: 4b51 ldr r3, [pc, #324] @ (8005ee8 ) - 8005da4: 685a ldr r2, [r3, #4] - 8005da6: 4b50 ldr r3, [pc, #320] @ (8005ee8 ) - 8005da8: 21e0 movs r1, #224 @ 0xe0 - 8005daa: 00c9 lsls r1, r1, #3 - 8005dac: 430a orrs r2, r1 - 8005dae: 605a str r2, [r3, #4] + 8005db6: 4b51 ldr r3, [pc, #324] @ (8005efc ) + 8005db8: 685a ldr r2, [r3, #4] + 8005dba: 4b50 ldr r3, [pc, #320] @ (8005efc ) + 8005dbc: 21e0 movs r1, #224 @ 0xe0 + 8005dbe: 00c9 lsls r1, r1, #3 + 8005dc0: 430a orrs r2, r1 + 8005dc2: 605a str r2, [r3, #4] } /* Set the new HCLK clock divider */ assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider); - 8005db0: 4b4d ldr r3, [pc, #308] @ (8005ee8 ) - 8005db2: 685b ldr r3, [r3, #4] - 8005db4: 22f0 movs r2, #240 @ 0xf0 - 8005db6: 4393 bics r3, r2 - 8005db8: 0019 movs r1, r3 - 8005dba: 687b ldr r3, [r7, #4] - 8005dbc: 689a ldr r2, [r3, #8] - 8005dbe: 4b4a ldr r3, [pc, #296] @ (8005ee8 ) - 8005dc0: 430a orrs r2, r1 - 8005dc2: 605a str r2, [r3, #4] + 8005dc4: 4b4d ldr r3, [pc, #308] @ (8005efc ) + 8005dc6: 685b ldr r3, [r3, #4] + 8005dc8: 22f0 movs r2, #240 @ 0xf0 + 8005dca: 4393 bics r3, r2 + 8005dcc: 0019 movs r1, r3 + 8005dce: 687b ldr r3, [r7, #4] + 8005dd0: 689a ldr r2, [r3, #8] + 8005dd2: 4b4a ldr r3, [pc, #296] @ (8005efc ) + 8005dd4: 430a orrs r2, r1 + 8005dd6: 605a str r2, [r3, #4] } /*------------------------- SYSCLK Configuration ---------------------------*/ if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK) - 8005dc4: 687b ldr r3, [r7, #4] - 8005dc6: 681b ldr r3, [r3, #0] - 8005dc8: 2201 movs r2, #1 - 8005dca: 4013 ands r3, r2 - 8005dcc: d04c beq.n 8005e68 + 8005dd8: 687b ldr r3, [r7, #4] + 8005dda: 681b ldr r3, [r3, #0] + 8005ddc: 2201 movs r2, #1 + 8005dde: 4013 ands r3, r2 + 8005de0: d04c beq.n 8005e7c { assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource)); /* HSE is selected as System Clock Source */ if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE) - 8005dce: 687b ldr r3, [r7, #4] - 8005dd0: 685b ldr r3, [r3, #4] - 8005dd2: 2b01 cmp r3, #1 - 8005dd4: d107 bne.n 8005de6 + 8005de2: 687b ldr r3, [r7, #4] + 8005de4: 685b ldr r3, [r3, #4] + 8005de6: 2b01 cmp r3, #1 + 8005de8: d107 bne.n 8005dfa { /* Check the HSE ready flag */ if(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 8005dd6: 4b44 ldr r3, [pc, #272] @ (8005ee8 ) - 8005dd8: 681a ldr r2, [r3, #0] - 8005dda: 2380 movs r3, #128 @ 0x80 - 8005ddc: 029b lsls r3, r3, #10 - 8005dde: 4013 ands r3, r2 - 8005de0: d120 bne.n 8005e24 + 8005dea: 4b44 ldr r3, [pc, #272] @ (8005efc ) + 8005dec: 681a ldr r2, [r3, #0] + 8005dee: 2380 movs r3, #128 @ 0x80 + 8005df0: 029b lsls r3, r3, #10 + 8005df2: 4013 ands r3, r2 + 8005df4: d120 bne.n 8005e38 { return HAL_ERROR; - 8005de2: 2301 movs r3, #1 - 8005de4: e07a b.n 8005edc + 8005df6: 2301 movs r3, #1 + 8005df8: e07a b.n 8005ef0 } } /* PLL is selected as System Clock Source */ else if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) - 8005de6: 687b ldr r3, [r7, #4] - 8005de8: 685b ldr r3, [r3, #4] - 8005dea: 2b02 cmp r3, #2 - 8005dec: d107 bne.n 8005dfe + 8005dfa: 687b ldr r3, [r7, #4] + 8005dfc: 685b ldr r3, [r3, #4] + 8005dfe: 2b02 cmp r3, #2 + 8005e00: d107 bne.n 8005e12 { /* Check the PLL ready flag */ if(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 8005dee: 4b3e ldr r3, [pc, #248] @ (8005ee8 ) - 8005df0: 681a ldr r2, [r3, #0] - 8005df2: 2380 movs r3, #128 @ 0x80 - 8005df4: 049b lsls r3, r3, #18 - 8005df6: 4013 ands r3, r2 - 8005df8: d114 bne.n 8005e24 + 8005e02: 4b3e ldr r3, [pc, #248] @ (8005efc ) + 8005e04: 681a ldr r2, [r3, #0] + 8005e06: 2380 movs r3, #128 @ 0x80 + 8005e08: 049b lsls r3, r3, #18 + 8005e0a: 4013 ands r3, r2 + 8005e0c: d114 bne.n 8005e38 { return HAL_ERROR; - 8005dfa: 2301 movs r3, #1 - 8005dfc: e06e b.n 8005edc + 8005e0e: 2301 movs r3, #1 + 8005e10: e06e b.n 8005ef0 } } #if defined(RCC_CFGR_SWS_HSI48) /* HSI48 is selected as System Clock Source */ else if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSI48) - 8005dfe: 687b ldr r3, [r7, #4] - 8005e00: 685b ldr r3, [r3, #4] - 8005e02: 2b03 cmp r3, #3 - 8005e04: d107 bne.n 8005e16 + 8005e12: 687b ldr r3, [r7, #4] + 8005e14: 685b ldr r3, [r3, #4] + 8005e16: 2b03 cmp r3, #3 + 8005e18: d107 bne.n 8005e2a { /* Check the HSI48 ready flag */ if(__HAL_RCC_GET_FLAG(RCC_FLAG_HSI48RDY) == RESET) - 8005e06: 4b38 ldr r3, [pc, #224] @ (8005ee8 ) - 8005e08: 6b5a ldr r2, [r3, #52] @ 0x34 - 8005e0a: 2380 movs r3, #128 @ 0x80 - 8005e0c: 029b lsls r3, r3, #10 - 8005e0e: 4013 ands r3, r2 - 8005e10: d108 bne.n 8005e24 + 8005e1a: 4b38 ldr r3, [pc, #224] @ (8005efc ) + 8005e1c: 6b5a ldr r2, [r3, #52] @ 0x34 + 8005e1e: 2380 movs r3, #128 @ 0x80 + 8005e20: 029b lsls r3, r3, #10 + 8005e22: 4013 ands r3, r2 + 8005e24: d108 bne.n 8005e38 { return HAL_ERROR; - 8005e12: 2301 movs r3, #1 - 8005e14: e062 b.n 8005edc + 8005e26: 2301 movs r3, #1 + 8005e28: e062 b.n 8005ef0 #endif /* RCC_CFGR_SWS_HSI48 */ /* HSI is selected as System Clock Source */ else { /* Check the HSI ready flag */ if(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 8005e16: 4b34 ldr r3, [pc, #208] @ (8005ee8 ) - 8005e18: 681b ldr r3, [r3, #0] - 8005e1a: 2202 movs r2, #2 - 8005e1c: 4013 ands r3, r2 - 8005e1e: d101 bne.n 8005e24 + 8005e2a: 4b34 ldr r3, [pc, #208] @ (8005efc ) + 8005e2c: 681b ldr r3, [r3, #0] + 8005e2e: 2202 movs r2, #2 + 8005e30: 4013 ands r3, r2 + 8005e32: d101 bne.n 8005e38 { return HAL_ERROR; - 8005e20: 2301 movs r3, #1 - 8005e22: e05b b.n 8005edc + 8005e34: 2301 movs r3, #1 + 8005e36: e05b b.n 8005ef0 } } __HAL_RCC_SYSCLK_CONFIG(RCC_ClkInitStruct->SYSCLKSource); - 8005e24: 4b30 ldr r3, [pc, #192] @ (8005ee8 ) - 8005e26: 685b ldr r3, [r3, #4] - 8005e28: 2203 movs r2, #3 - 8005e2a: 4393 bics r3, r2 - 8005e2c: 0019 movs r1, r3 - 8005e2e: 687b ldr r3, [r7, #4] - 8005e30: 685a ldr r2, [r3, #4] - 8005e32: 4b2d ldr r3, [pc, #180] @ (8005ee8 ) - 8005e34: 430a orrs r2, r1 - 8005e36: 605a str r2, [r3, #4] + 8005e38: 4b30 ldr r3, [pc, #192] @ (8005efc ) + 8005e3a: 685b ldr r3, [r3, #4] + 8005e3c: 2203 movs r2, #3 + 8005e3e: 4393 bics r3, r2 + 8005e40: 0019 movs r1, r3 + 8005e42: 687b ldr r3, [r7, #4] + 8005e44: 685a ldr r2, [r3, #4] + 8005e46: 4b2d ldr r3, [pc, #180] @ (8005efc ) + 8005e48: 430a orrs r2, r1 + 8005e4a: 605a str r2, [r3, #4] /* Get Start Tick */ tickstart = HAL_GetTick(); - 8005e38: f7fd ffd4 bl 8003de4 - 8005e3c: 0003 movs r3, r0 - 8005e3e: 60fb str r3, [r7, #12] + 8005e4c: f7fd ffd4 bl 8003df8 + 8005e50: 0003 movs r3, r0 + 8005e52: 60fb str r3, [r7, #12] while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) - 8005e40: e009 b.n 8005e56 + 8005e54: e009 b.n 8005e6a { if((HAL_GetTick() - tickstart ) > CLOCKSWITCH_TIMEOUT_VALUE) - 8005e42: f7fd ffcf bl 8003de4 - 8005e46: 0002 movs r2, r0 - 8005e48: 68fb ldr r3, [r7, #12] - 8005e4a: 1ad3 subs r3, r2, r3 - 8005e4c: 4a27 ldr r2, [pc, #156] @ (8005eec ) - 8005e4e: 4293 cmp r3, r2 - 8005e50: d901 bls.n 8005e56 + 8005e56: f7fd ffcf bl 8003df8 + 8005e5a: 0002 movs r2, r0 + 8005e5c: 68fb ldr r3, [r7, #12] + 8005e5e: 1ad3 subs r3, r2, r3 + 8005e60: 4a27 ldr r2, [pc, #156] @ (8005f00 ) + 8005e62: 4293 cmp r3, r2 + 8005e64: d901 bls.n 8005e6a { return HAL_TIMEOUT; - 8005e52: 2303 movs r3, #3 - 8005e54: e042 b.n 8005edc + 8005e66: 2303 movs r3, #3 + 8005e68: e042 b.n 8005ef0 while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) - 8005e56: 4b24 ldr r3, [pc, #144] @ (8005ee8 ) - 8005e58: 685b ldr r3, [r3, #4] - 8005e5a: 220c movs r2, #12 - 8005e5c: 401a ands r2, r3 - 8005e5e: 687b ldr r3, [r7, #4] - 8005e60: 685b ldr r3, [r3, #4] - 8005e62: 009b lsls r3, r3, #2 - 8005e64: 429a cmp r2, r3 - 8005e66: d1ec bne.n 8005e42 + 8005e6a: 4b24 ldr r3, [pc, #144] @ (8005efc ) + 8005e6c: 685b ldr r3, [r3, #4] + 8005e6e: 220c movs r2, #12 + 8005e70: 401a ands r2, r3 + 8005e72: 687b ldr r3, [r7, #4] + 8005e74: 685b ldr r3, [r3, #4] + 8005e76: 009b lsls r3, r3, #2 + 8005e78: 429a cmp r2, r3 + 8005e7a: d1ec bne.n 8005e56 } } } /* Decreasing the number of wait states because of lower CPU frequency */ if(FLatency < __HAL_FLASH_GET_LATENCY()) - 8005e68: 4b1e ldr r3, [pc, #120] @ (8005ee4 ) - 8005e6a: 681b ldr r3, [r3, #0] - 8005e6c: 2201 movs r2, #1 - 8005e6e: 4013 ands r3, r2 - 8005e70: 683a ldr r2, [r7, #0] - 8005e72: 429a cmp r2, r3 - 8005e74: d211 bcs.n 8005e9a + 8005e7c: 4b1e ldr r3, [pc, #120] @ (8005ef8 ) + 8005e7e: 681b ldr r3, [r3, #0] + 8005e80: 2201 movs r2, #1 + 8005e82: 4013 ands r3, r2 + 8005e84: 683a ldr r2, [r7, #0] + 8005e86: 429a cmp r2, r3 + 8005e88: d211 bcs.n 8005eae { /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ __HAL_FLASH_SET_LATENCY(FLatency); - 8005e76: 4b1b ldr r3, [pc, #108] @ (8005ee4 ) - 8005e78: 681b ldr r3, [r3, #0] - 8005e7a: 2201 movs r2, #1 - 8005e7c: 4393 bics r3, r2 - 8005e7e: 0019 movs r1, r3 - 8005e80: 4b18 ldr r3, [pc, #96] @ (8005ee4 ) - 8005e82: 683a ldr r2, [r7, #0] - 8005e84: 430a orrs r2, r1 - 8005e86: 601a str r2, [r3, #0] + 8005e8a: 4b1b ldr r3, [pc, #108] @ (8005ef8 ) + 8005e8c: 681b ldr r3, [r3, #0] + 8005e8e: 2201 movs r2, #1 + 8005e90: 4393 bics r3, r2 + 8005e92: 0019 movs r1, r3 + 8005e94: 4b18 ldr r3, [pc, #96] @ (8005ef8 ) + 8005e96: 683a ldr r2, [r7, #0] + 8005e98: 430a orrs r2, r1 + 8005e9a: 601a str r2, [r3, #0] /* Check that the new number of wait states is taken into account to access the Flash memory by reading the FLASH_ACR register */ if(__HAL_FLASH_GET_LATENCY() != FLatency) - 8005e88: 4b16 ldr r3, [pc, #88] @ (8005ee4 ) - 8005e8a: 681b ldr r3, [r3, #0] - 8005e8c: 2201 movs r2, #1 - 8005e8e: 4013 ands r3, r2 - 8005e90: 683a ldr r2, [r7, #0] - 8005e92: 429a cmp r2, r3 - 8005e94: d001 beq.n 8005e9a + 8005e9c: 4b16 ldr r3, [pc, #88] @ (8005ef8 ) + 8005e9e: 681b ldr r3, [r3, #0] + 8005ea0: 2201 movs r2, #1 + 8005ea2: 4013 ands r3, r2 + 8005ea4: 683a ldr r2, [r7, #0] + 8005ea6: 429a cmp r2, r3 + 8005ea8: d001 beq.n 8005eae { return HAL_ERROR; - 8005e96: 2301 movs r3, #1 - 8005e98: e020 b.n 8005edc + 8005eaa: 2301 movs r3, #1 + 8005eac: e020 b.n 8005ef0 } } /*-------------------------- PCLK1 Configuration ---------------------------*/ if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) - 8005e9a: 687b ldr r3, [r7, #4] - 8005e9c: 681b ldr r3, [r3, #0] - 8005e9e: 2204 movs r2, #4 - 8005ea0: 4013 ands r3, r2 - 8005ea2: d009 beq.n 8005eb8 + 8005eae: 687b ldr r3, [r7, #4] + 8005eb0: 681b ldr r3, [r3, #0] + 8005eb2: 2204 movs r2, #4 + 8005eb4: 4013 ands r3, r2 + 8005eb6: d009 beq.n 8005ecc { assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB1CLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE, RCC_ClkInitStruct->APB1CLKDivider); - 8005ea4: 4b10 ldr r3, [pc, #64] @ (8005ee8 ) - 8005ea6: 685b ldr r3, [r3, #4] - 8005ea8: 4a11 ldr r2, [pc, #68] @ (8005ef0 ) - 8005eaa: 4013 ands r3, r2 - 8005eac: 0019 movs r1, r3 - 8005eae: 687b ldr r3, [r7, #4] - 8005eb0: 68da ldr r2, [r3, #12] - 8005eb2: 4b0d ldr r3, [pc, #52] @ (8005ee8 ) - 8005eb4: 430a orrs r2, r1 - 8005eb6: 605a str r2, [r3, #4] + 8005eb8: 4b10 ldr r3, [pc, #64] @ (8005efc ) + 8005eba: 685b ldr r3, [r3, #4] + 8005ebc: 4a11 ldr r2, [pc, #68] @ (8005f04 ) + 8005ebe: 4013 ands r3, r2 + 8005ec0: 0019 movs r1, r3 + 8005ec2: 687b ldr r3, [r7, #4] + 8005ec4: 68da ldr r2, [r3, #12] + 8005ec6: 4b0d ldr r3, [pc, #52] @ (8005efc ) + 8005ec8: 430a orrs r2, r1 + 8005eca: 605a str r2, [r3, #4] } /* Update the SystemCoreClock global variable */ SystemCoreClock = HAL_RCC_GetSysClockFreq() >> AHBPrescTable[(RCC->CFGR & RCC_CFGR_HPRE)>> RCC_CFGR_HPRE_BITNUMBER]; - 8005eb8: f000 f820 bl 8005efc - 8005ebc: 0001 movs r1, r0 - 8005ebe: 4b0a ldr r3, [pc, #40] @ (8005ee8 ) - 8005ec0: 685b ldr r3, [r3, #4] - 8005ec2: 091b lsrs r3, r3, #4 - 8005ec4: 220f movs r2, #15 - 8005ec6: 4013 ands r3, r2 - 8005ec8: 4a0a ldr r2, [pc, #40] @ (8005ef4 ) - 8005eca: 5cd3 ldrb r3, [r2, r3] - 8005ecc: 000a movs r2, r1 - 8005ece: 40da lsrs r2, r3 - 8005ed0: 4b09 ldr r3, [pc, #36] @ (8005ef8 ) - 8005ed2: 601a str r2, [r3, #0] + 8005ecc: f000 f820 bl 8005f10 + 8005ed0: 0001 movs r1, r0 + 8005ed2: 4b0a ldr r3, [pc, #40] @ (8005efc ) + 8005ed4: 685b ldr r3, [r3, #4] + 8005ed6: 091b lsrs r3, r3, #4 + 8005ed8: 220f movs r2, #15 + 8005eda: 4013 ands r3, r2 + 8005edc: 4a0a ldr r2, [pc, #40] @ (8005f08 ) + 8005ede: 5cd3 ldrb r3, [r2, r3] + 8005ee0: 000a movs r2, r1 + 8005ee2: 40da lsrs r2, r3 + 8005ee4: 4b09 ldr r3, [pc, #36] @ (8005f0c ) + 8005ee6: 601a str r2, [r3, #0] /* Configure the source of time base considering new system clocks settings*/ HAL_InitTick (TICK_INT_PRIORITY); - 8005ed4: 2003 movs r0, #3 - 8005ed6: f7fd ff3f bl 8003d58 + 8005ee8: 2003 movs r0, #3 + 8005eea: f7fd ff3f bl 8003d6c return HAL_OK; - 8005eda: 2300 movs r3, #0 + 8005eee: 2300 movs r3, #0 } - 8005edc: 0018 movs r0, r3 - 8005ede: 46bd mov sp, r7 - 8005ee0: b004 add sp, #16 - 8005ee2: bd80 pop {r7, pc} - 8005ee4: 40022000 .word 0x40022000 - 8005ee8: 40021000 .word 0x40021000 - 8005eec: 00001388 .word 0x00001388 - 8005ef0: fffff8ff .word 0xfffff8ff - 8005ef4: 0800790c .word 0x0800790c - 8005ef8: 20000000 .word 0x20000000 + 8005ef0: 0018 movs r0, r3 + 8005ef2: 46bd mov sp, r7 + 8005ef4: b004 add sp, #16 + 8005ef6: bd80 pop {r7, pc} + 8005ef8: 40022000 .word 0x40022000 + 8005efc: 40021000 .word 0x40021000 + 8005f00: 00001388 .word 0x00001388 + 8005f04: fffff8ff .word 0xfffff8ff + 8005f08: 08007920 .word 0x08007920 + 8005f0c: 20000000 .word 0x20000000 -08005efc : +08005f10 : * right SYSCLK value. Otherwise, any configuration based on this function will be incorrect. * * @retval SYSCLK frequency */ uint32_t HAL_RCC_GetSysClockFreq(void) { - 8005efc: b580 push {r7, lr} - 8005efe: b086 sub sp, #24 - 8005f00: af00 add r7, sp, #0 + 8005f10: b580 push {r7, lr} + 8005f12: b086 sub sp, #24 + 8005f14: af00 add r7, sp, #0 static const uint8_t aPLLMULFactorTable[16U] = { 2U, 3U, 4U, 5U, 6U, 7U, 8U, 9U, 10U, 11U, 12U, 13U, 14U, 15U, 16U, 16U}; static const uint8_t aPredivFactorTable[16U] = { 1U, 2U, 3U, 4U, 5U, 6U, 7U, 8U, 9U,10U, 11U, 12U, 13U, 14U, 15U, 16U}; uint32_t tmpreg = 0U, prediv = 0U, pllclk = 0U, pllmul = 0U; - 8005f02: 2300 movs r3, #0 - 8005f04: 60fb str r3, [r7, #12] - 8005f06: 2300 movs r3, #0 - 8005f08: 60bb str r3, [r7, #8] - 8005f0a: 2300 movs r3, #0 - 8005f0c: 617b str r3, [r7, #20] - 8005f0e: 2300 movs r3, #0 - 8005f10: 607b str r3, [r7, #4] + 8005f16: 2300 movs r3, #0 + 8005f18: 60fb str r3, [r7, #12] + 8005f1a: 2300 movs r3, #0 + 8005f1c: 60bb str r3, [r7, #8] + 8005f1e: 2300 movs r3, #0 + 8005f20: 617b str r3, [r7, #20] + 8005f22: 2300 movs r3, #0 + 8005f24: 607b str r3, [r7, #4] uint32_t sysclockfreq = 0U; - 8005f12: 2300 movs r3, #0 - 8005f14: 613b str r3, [r7, #16] + 8005f26: 2300 movs r3, #0 + 8005f28: 613b str r3, [r7, #16] tmpreg = RCC->CFGR; - 8005f16: 4b2d ldr r3, [pc, #180] @ (8005fcc ) - 8005f18: 685b ldr r3, [r3, #4] - 8005f1a: 60fb str r3, [r7, #12] + 8005f2a: 4b2d ldr r3, [pc, #180] @ (8005fe0 ) + 8005f2c: 685b ldr r3, [r3, #4] + 8005f2e: 60fb str r3, [r7, #12] /* Get SYSCLK source -------------------------------------------------------*/ switch (tmpreg & RCC_CFGR_SWS) - 8005f1c: 68fb ldr r3, [r7, #12] - 8005f1e: 220c movs r2, #12 - 8005f20: 4013 ands r3, r2 - 8005f22: 2b0c cmp r3, #12 - 8005f24: d046 beq.n 8005fb4 - 8005f26: d848 bhi.n 8005fba - 8005f28: 2b04 cmp r3, #4 - 8005f2a: d002 beq.n 8005f32 - 8005f2c: 2b08 cmp r3, #8 - 8005f2e: d003 beq.n 8005f38 - 8005f30: e043 b.n 8005fba + 8005f30: 68fb ldr r3, [r7, #12] + 8005f32: 220c movs r2, #12 + 8005f34: 4013 ands r3, r2 + 8005f36: 2b0c cmp r3, #12 + 8005f38: d046 beq.n 8005fc8 + 8005f3a: d848 bhi.n 8005fce + 8005f3c: 2b04 cmp r3, #4 + 8005f3e: d002 beq.n 8005f46 + 8005f40: 2b08 cmp r3, #8 + 8005f42: d003 beq.n 8005f4c + 8005f44: e043 b.n 8005fce { case RCC_SYSCLKSOURCE_STATUS_HSE: /* HSE used as system clock */ { sysclockfreq = HSE_VALUE; - 8005f32: 4b27 ldr r3, [pc, #156] @ (8005fd0 ) - 8005f34: 613b str r3, [r7, #16] + 8005f46: 4b27 ldr r3, [pc, #156] @ (8005fe4 ) + 8005f48: 613b str r3, [r7, #16] break; - 8005f36: e043 b.n 8005fc0 + 8005f4a: e043 b.n 8005fd4 } case RCC_SYSCLKSOURCE_STATUS_PLLCLK: /* PLL used as system clock */ { pllmul = aPLLMULFactorTable[(uint32_t)(tmpreg & RCC_CFGR_PLLMUL) >> RCC_CFGR_PLLMUL_BITNUMBER]; - 8005f38: 68fb ldr r3, [r7, #12] - 8005f3a: 0c9b lsrs r3, r3, #18 - 8005f3c: 220f movs r2, #15 - 8005f3e: 4013 ands r3, r2 - 8005f40: 4a24 ldr r2, [pc, #144] @ (8005fd4 ) - 8005f42: 5cd3 ldrb r3, [r2, r3] - 8005f44: 607b str r3, [r7, #4] + 8005f4c: 68fb ldr r3, [r7, #12] + 8005f4e: 0c9b lsrs r3, r3, #18 + 8005f50: 220f movs r2, #15 + 8005f52: 4013 ands r3, r2 + 8005f54: 4a24 ldr r2, [pc, #144] @ (8005fe8 ) + 8005f56: 5cd3 ldrb r3, [r2, r3] + 8005f58: 607b str r3, [r7, #4] prediv = aPredivFactorTable[(uint32_t)(RCC->CFGR2 & RCC_CFGR2_PREDIV) >> RCC_CFGR2_PREDIV_BITNUMBER]; - 8005f46: 4b21 ldr r3, [pc, #132] @ (8005fcc ) - 8005f48: 6adb ldr r3, [r3, #44] @ 0x2c - 8005f4a: 220f movs r2, #15 - 8005f4c: 4013 ands r3, r2 - 8005f4e: 4a22 ldr r2, [pc, #136] @ (8005fd8 ) - 8005f50: 5cd3 ldrb r3, [r2, r3] - 8005f52: 60bb str r3, [r7, #8] + 8005f5a: 4b21 ldr r3, [pc, #132] @ (8005fe0 ) + 8005f5c: 6adb ldr r3, [r3, #44] @ 0x2c + 8005f5e: 220f movs r2, #15 + 8005f60: 4013 ands r3, r2 + 8005f62: 4a22 ldr r2, [pc, #136] @ (8005fec ) + 8005f64: 5cd3 ldrb r3, [r2, r3] + 8005f66: 60bb str r3, [r7, #8] if ((tmpreg & RCC_CFGR_PLLSRC) == RCC_PLLSOURCE_HSE) - 8005f54: 68fa ldr r2, [r7, #12] - 8005f56: 23c0 movs r3, #192 @ 0xc0 - 8005f58: 025b lsls r3, r3, #9 - 8005f5a: 401a ands r2, r3 - 8005f5c: 2380 movs r3, #128 @ 0x80 - 8005f5e: 025b lsls r3, r3, #9 - 8005f60: 429a cmp r2, r3 - 8005f62: d109 bne.n 8005f78 + 8005f68: 68fa ldr r2, [r7, #12] + 8005f6a: 23c0 movs r3, #192 @ 0xc0 + 8005f6c: 025b lsls r3, r3, #9 + 8005f6e: 401a ands r2, r3 + 8005f70: 2380 movs r3, #128 @ 0x80 + 8005f72: 025b lsls r3, r3, #9 + 8005f74: 429a cmp r2, r3 + 8005f76: d109 bne.n 8005f8c { /* HSE used as PLL clock source : PLLCLK = HSE/PREDIV * PLLMUL */ pllclk = (uint32_t)((uint64_t) HSE_VALUE / (uint64_t) (prediv)) * ((uint64_t) pllmul); - 8005f64: 68b9 ldr r1, [r7, #8] - 8005f66: 481a ldr r0, [pc, #104] @ (8005fd0 ) - 8005f68: f7fa f8ce bl 8000108 <__udivsi3> - 8005f6c: 0003 movs r3, r0 - 8005f6e: 001a movs r2, r3 - 8005f70: 687b ldr r3, [r7, #4] - 8005f72: 4353 muls r3, r2 - 8005f74: 617b str r3, [r7, #20] - 8005f76: e01a b.n 8005fae + 8005f78: 68b9 ldr r1, [r7, #8] + 8005f7a: 481a ldr r0, [pc, #104] @ (8005fe4 ) + 8005f7c: f7fa f8c4 bl 8000108 <__udivsi3> + 8005f80: 0003 movs r3, r0 + 8005f82: 001a movs r2, r3 + 8005f84: 687b ldr r3, [r7, #4] + 8005f86: 4353 muls r3, r2 + 8005f88: 617b str r3, [r7, #20] + 8005f8a: e01a b.n 8005fc2 } #if defined(RCC_CFGR_PLLSRC_HSI48_PREDIV) else if ((tmpreg & RCC_CFGR_PLLSRC) == RCC_PLLSOURCE_HSI48) - 8005f78: 68fa ldr r2, [r7, #12] - 8005f7a: 23c0 movs r3, #192 @ 0xc0 - 8005f7c: 025b lsls r3, r3, #9 - 8005f7e: 401a ands r2, r3 - 8005f80: 23c0 movs r3, #192 @ 0xc0 - 8005f82: 025b lsls r3, r3, #9 - 8005f84: 429a cmp r2, r3 - 8005f86: d109 bne.n 8005f9c + 8005f8c: 68fa ldr r2, [r7, #12] + 8005f8e: 23c0 movs r3, #192 @ 0xc0 + 8005f90: 025b lsls r3, r3, #9 + 8005f92: 401a ands r2, r3 + 8005f94: 23c0 movs r3, #192 @ 0xc0 + 8005f96: 025b lsls r3, r3, #9 + 8005f98: 429a cmp r2, r3 + 8005f9a: d109 bne.n 8005fb0 { /* HSI48 used as PLL clock source : PLLCLK = HSI48/PREDIV * PLLMUL */ pllclk = (uint32_t)((uint64_t) HSI48_VALUE / (uint64_t) (prediv)) * ((uint64_t) pllmul); - 8005f88: 68b9 ldr r1, [r7, #8] - 8005f8a: 4814 ldr r0, [pc, #80] @ (8005fdc ) - 8005f8c: f7fa f8bc bl 8000108 <__udivsi3> - 8005f90: 0003 movs r3, r0 - 8005f92: 001a movs r2, r3 - 8005f94: 687b ldr r3, [r7, #4] - 8005f96: 4353 muls r3, r2 - 8005f98: 617b str r3, [r7, #20] - 8005f9a: e008 b.n 8005fae -#endif /* RCC_CFGR_PLLSRC_HSI48_PREDIV */ - else - { -#if (defined(STM32F042x6) || defined(STM32F048xx) || defined(STM32F070x6) || defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || defined(STM32F070xB) || defined(STM32F091xC) || defined(STM32F098xx) || defined(STM32F030xC)) - /* HSI used as PLL clock source : PLLCLK = HSI/PREDIV * PLLMUL */ - pllclk = (uint32_t)((uint64_t) HSI_VALUE / (uint64_t) (prediv)) * ((uint64_t) pllmul); 8005f9c: 68b9 ldr r1, [r7, #8] - 8005f9e: 4810 ldr r0, [pc, #64] @ (8005fe0 ) + 8005f9e: 4814 ldr r0, [pc, #80] @ (8005ff0 ) 8005fa0: f7fa f8b2 bl 8000108 <__udivsi3> 8005fa4: 0003 movs r3, r0 8005fa6: 001a movs r2, r3 8005fa8: 687b ldr r3, [r7, #4] 8005faa: 4353 muls r3, r2 8005fac: 617b str r3, [r7, #20] + 8005fae: e008 b.n 8005fc2 +#endif /* RCC_CFGR_PLLSRC_HSI48_PREDIV */ + else + { +#if (defined(STM32F042x6) || defined(STM32F048xx) || defined(STM32F070x6) || defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || defined(STM32F070xB) || defined(STM32F091xC) || defined(STM32F098xx) || defined(STM32F030xC)) + /* HSI used as PLL clock source : PLLCLK = HSI/PREDIV * PLLMUL */ + pllclk = (uint32_t)((uint64_t) HSI_VALUE / (uint64_t) (prediv)) * ((uint64_t) pllmul); + 8005fb0: 68b9 ldr r1, [r7, #8] + 8005fb2: 4810 ldr r0, [pc, #64] @ (8005ff4 ) + 8005fb4: f7fa f8a8 bl 8000108 <__udivsi3> + 8005fb8: 0003 movs r3, r0 + 8005fba: 001a movs r2, r3 + 8005fbc: 687b ldr r3, [r7, #4] + 8005fbe: 4353 muls r3, r2 + 8005fc0: 617b str r3, [r7, #20] #else /* HSI used as PLL clock source : PLLCLK = HSI/2 * PLLMUL */ pllclk = (uint32_t)((uint64_t) (HSI_VALUE >> 1U) * ((uint64_t) pllmul)); #endif } sysclockfreq = pllclk; - 8005fae: 697b ldr r3, [r7, #20] - 8005fb0: 613b str r3, [r7, #16] + 8005fc2: 697b ldr r3, [r7, #20] + 8005fc4: 613b str r3, [r7, #16] break; - 8005fb2: e005 b.n 8005fc0 + 8005fc6: e005 b.n 8005fd4 } #if defined(RCC_CFGR_SWS_HSI48) case RCC_SYSCLKSOURCE_STATUS_HSI48: /* HSI48 used as system clock source */ { sysclockfreq = HSI48_VALUE; - 8005fb4: 4b09 ldr r3, [pc, #36] @ (8005fdc ) - 8005fb6: 613b str r3, [r7, #16] + 8005fc8: 4b09 ldr r3, [pc, #36] @ (8005ff0 ) + 8005fca: 613b str r3, [r7, #16] break; - 8005fb8: e002 b.n 8005fc0 + 8005fcc: e002 b.n 8005fd4 } #endif /* RCC_CFGR_SWS_HSI48 */ case RCC_SYSCLKSOURCE_STATUS_HSI: /* HSI used as system clock source */ default: /* HSI used as system clock */ { sysclockfreq = HSI_VALUE; - 8005fba: 4b09 ldr r3, [pc, #36] @ (8005fe0 ) - 8005fbc: 613b str r3, [r7, #16] + 8005fce: 4b09 ldr r3, [pc, #36] @ (8005ff4 ) + 8005fd0: 613b str r3, [r7, #16] break; - 8005fbe: 46c0 nop @ (mov r8, r8) + 8005fd2: 46c0 nop @ (mov r8, r8) } } return sysclockfreq; - 8005fc0: 693b ldr r3, [r7, #16] + 8005fd4: 693b ldr r3, [r7, #16] } - 8005fc2: 0018 movs r0, r3 - 8005fc4: 46bd mov sp, r7 - 8005fc6: b006 add sp, #24 - 8005fc8: bd80 pop {r7, pc} - 8005fca: 46c0 nop @ (mov r8, r8) - 8005fcc: 40021000 .word 0x40021000 - 8005fd0: 00f42400 .word 0x00f42400 - 8005fd4: 0800791c .word 0x0800791c - 8005fd8: 0800792c .word 0x0800792c - 8005fdc: 02dc6c00 .word 0x02dc6c00 - 8005fe0: 007a1200 .word 0x007a1200 + 8005fd6: 0018 movs r0, r3 + 8005fd8: 46bd mov sp, r7 + 8005fda: b006 add sp, #24 + 8005fdc: bd80 pop {r7, pc} + 8005fde: 46c0 nop @ (mov r8, r8) + 8005fe0: 40021000 .word 0x40021000 + 8005fe4: 00f42400 .word 0x00f42400 + 8005fe8: 08007930 .word 0x08007930 + 8005fec: 08007940 .word 0x08007940 + 8005ff0: 02dc6c00 .word 0x02dc6c00 + 8005ff4: 007a1200 .word 0x007a1200 -08005fe4 : +08005ff8 : * the backup registers) and RCC_BDCR register are set to their reset values. * * @retval HAL status */ HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) { - 8005fe4: b580 push {r7, lr} - 8005fe6: b086 sub sp, #24 - 8005fe8: af00 add r7, sp, #0 - 8005fea: 6078 str r0, [r7, #4] + 8005ff8: b580 push {r7, lr} + 8005ffa: b086 sub sp, #24 + 8005ffc: af00 add r7, sp, #0 + 8005ffe: 6078 str r0, [r7, #4] uint32_t tickstart = 0U; - 8005fec: 2300 movs r3, #0 - 8005fee: 613b str r3, [r7, #16] + 8006000: 2300 movs r3, #0 + 8006002: 613b str r3, [r7, #16] uint32_t temp_reg = 0U; - 8005ff0: 2300 movs r3, #0 - 8005ff2: 60fb str r3, [r7, #12] + 8006004: 2300 movs r3, #0 + 8006006: 60fb str r3, [r7, #12] /* Check the parameters */ assert_param(IS_RCC_PERIPHCLOCK(PeriphClkInit->PeriphClockSelection)); /*---------------------------- RTC configuration -------------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == (RCC_PERIPHCLK_RTC)) - 8005ff4: 687b ldr r3, [r7, #4] - 8005ff6: 681a ldr r2, [r3, #0] - 8005ff8: 2380 movs r3, #128 @ 0x80 - 8005ffa: 025b lsls r3, r3, #9 - 8005ffc: 4013 ands r3, r2 - 8005ffe: d100 bne.n 8006002 - 8006000: e08e b.n 8006120 + 8006008: 687b ldr r3, [r7, #4] + 800600a: 681a ldr r2, [r3, #0] + 800600c: 2380 movs r3, #128 @ 0x80 + 800600e: 025b lsls r3, r3, #9 + 8006010: 4013 ands r3, r2 + 8006012: d100 bne.n 8006016 + 8006014: e08e b.n 8006134 { /* check for RTC Parameters used to output RTCCLK */ assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection)); FlagStatus pwrclkchanged = RESET; - 8006002: 2017 movs r0, #23 - 8006004: 183b adds r3, r7, r0 - 8006006: 2200 movs r2, #0 - 8006008: 701a strb r2, [r3, #0] + 8006016: 2017 movs r0, #23 + 8006018: 183b adds r3, r7, r0 + 800601a: 2200 movs r2, #0 + 800601c: 701a strb r2, [r3, #0] /* As soon as function is called to change RTC clock source, activation of the power domain is done. */ /* Requires to enable write access to Backup Domain of necessary */ if(__HAL_RCC_PWR_IS_CLK_DISABLED()) - 800600a: 4b67 ldr r3, [pc, #412] @ (80061a8 ) - 800600c: 69da ldr r2, [r3, #28] - 800600e: 2380 movs r3, #128 @ 0x80 - 8006010: 055b lsls r3, r3, #21 - 8006012: 4013 ands r3, r2 - 8006014: d110 bne.n 8006038 + 800601e: 4b67 ldr r3, [pc, #412] @ (80061bc ) + 8006020: 69da ldr r2, [r3, #28] + 8006022: 2380 movs r3, #128 @ 0x80 + 8006024: 055b lsls r3, r3, #21 + 8006026: 4013 ands r3, r2 + 8006028: d110 bne.n 800604c { __HAL_RCC_PWR_CLK_ENABLE(); - 8006016: 4b64 ldr r3, [pc, #400] @ (80061a8 ) - 8006018: 69da ldr r2, [r3, #28] - 800601a: 4b63 ldr r3, [pc, #396] @ (80061a8 ) - 800601c: 2180 movs r1, #128 @ 0x80 - 800601e: 0549 lsls r1, r1, #21 - 8006020: 430a orrs r2, r1 - 8006022: 61da str r2, [r3, #28] - 8006024: 4b60 ldr r3, [pc, #384] @ (80061a8 ) - 8006026: 69da ldr r2, [r3, #28] - 8006028: 2380 movs r3, #128 @ 0x80 - 800602a: 055b lsls r3, r3, #21 - 800602c: 4013 ands r3, r2 - 800602e: 60bb str r3, [r7, #8] - 8006030: 68bb ldr r3, [r7, #8] + 800602a: 4b64 ldr r3, [pc, #400] @ (80061bc ) + 800602c: 69da ldr r2, [r3, #28] + 800602e: 4b63 ldr r3, [pc, #396] @ (80061bc ) + 8006030: 2180 movs r1, #128 @ 0x80 + 8006032: 0549 lsls r1, r1, #21 + 8006034: 430a orrs r2, r1 + 8006036: 61da str r2, [r3, #28] + 8006038: 4b60 ldr r3, [pc, #384] @ (80061bc ) + 800603a: 69da ldr r2, [r3, #28] + 800603c: 2380 movs r3, #128 @ 0x80 + 800603e: 055b lsls r3, r3, #21 + 8006040: 4013 ands r3, r2 + 8006042: 60bb str r3, [r7, #8] + 8006044: 68bb ldr r3, [r7, #8] pwrclkchanged = SET; - 8006032: 183b adds r3, r7, r0 - 8006034: 2201 movs r2, #1 - 8006036: 701a strb r2, [r3, #0] + 8006046: 183b adds r3, r7, r0 + 8006048: 2201 movs r2, #1 + 800604a: 701a strb r2, [r3, #0] } if(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 8006038: 4b5c ldr r3, [pc, #368] @ (80061ac ) - 800603a: 681a ldr r2, [r3, #0] - 800603c: 2380 movs r3, #128 @ 0x80 - 800603e: 005b lsls r3, r3, #1 - 8006040: 4013 ands r3, r2 - 8006042: d11a bne.n 800607a + 800604c: 4b5c ldr r3, [pc, #368] @ (80061c0 ) + 800604e: 681a ldr r2, [r3, #0] + 8006050: 2380 movs r3, #128 @ 0x80 + 8006052: 005b lsls r3, r3, #1 + 8006054: 4013 ands r3, r2 + 8006056: d11a bne.n 800608e { /* Enable write access to Backup domain */ SET_BIT(PWR->CR, PWR_CR_DBP); - 8006044: 4b59 ldr r3, [pc, #356] @ (80061ac ) - 8006046: 681a ldr r2, [r3, #0] - 8006048: 4b58 ldr r3, [pc, #352] @ (80061ac ) - 800604a: 2180 movs r1, #128 @ 0x80 - 800604c: 0049 lsls r1, r1, #1 - 800604e: 430a orrs r2, r1 - 8006050: 601a str r2, [r3, #0] + 8006058: 4b59 ldr r3, [pc, #356] @ (80061c0 ) + 800605a: 681a ldr r2, [r3, #0] + 800605c: 4b58 ldr r3, [pc, #352] @ (80061c0 ) + 800605e: 2180 movs r1, #128 @ 0x80 + 8006060: 0049 lsls r1, r1, #1 + 8006062: 430a orrs r2, r1 + 8006064: 601a str r2, [r3, #0] /* Wait for Backup domain Write protection disable */ tickstart = HAL_GetTick(); - 8006052: f7fd fec7 bl 8003de4 - 8006056: 0003 movs r3, r0 - 8006058: 613b str r3, [r7, #16] + 8006066: f7fd fec7 bl 8003df8 + 800606a: 0003 movs r3, r0 + 800606c: 613b str r3, [r7, #16] while(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 800605a: e008 b.n 800606e + 800606e: e008 b.n 8006082 { if((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) - 800605c: f7fd fec2 bl 8003de4 - 8006060: 0002 movs r2, r0 - 8006062: 693b ldr r3, [r7, #16] - 8006064: 1ad3 subs r3, r2, r3 - 8006066: 2b64 cmp r3, #100 @ 0x64 - 8006068: d901 bls.n 800606e + 8006070: f7fd fec2 bl 8003df8 + 8006074: 0002 movs r2, r0 + 8006076: 693b ldr r3, [r7, #16] + 8006078: 1ad3 subs r3, r2, r3 + 800607a: 2b64 cmp r3, #100 @ 0x64 + 800607c: d901 bls.n 8006082 { return HAL_TIMEOUT; - 800606a: 2303 movs r3, #3 - 800606c: e097 b.n 800619e + 800607e: 2303 movs r3, #3 + 8006080: e097 b.n 80061b2 while(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 800606e: 4b4f ldr r3, [pc, #316] @ (80061ac ) - 8006070: 681a ldr r2, [r3, #0] - 8006072: 2380 movs r3, #128 @ 0x80 - 8006074: 005b lsls r3, r3, #1 - 8006076: 4013 ands r3, r2 - 8006078: d0f0 beq.n 800605c + 8006082: 4b4f ldr r3, [pc, #316] @ (80061c0 ) + 8006084: 681a ldr r2, [r3, #0] + 8006086: 2380 movs r3, #128 @ 0x80 + 8006088: 005b lsls r3, r3, #1 + 800608a: 4013 ands r3, r2 + 800608c: d0f0 beq.n 8006070 } } } /* Reset the Backup domain only if the RTC Clock source selection is modified from reset value */ temp_reg = (RCC->BDCR & RCC_BDCR_RTCSEL); - 800607a: 4b4b ldr r3, [pc, #300] @ (80061a8 ) - 800607c: 6a1a ldr r2, [r3, #32] - 800607e: 23c0 movs r3, #192 @ 0xc0 - 8006080: 009b lsls r3, r3, #2 - 8006082: 4013 ands r3, r2 - 8006084: 60fb str r3, [r7, #12] + 800608e: 4b4b ldr r3, [pc, #300] @ (80061bc ) + 8006090: 6a1a ldr r2, [r3, #32] + 8006092: 23c0 movs r3, #192 @ 0xc0 + 8006094: 009b lsls r3, r3, #2 + 8006096: 4013 ands r3, r2 + 8006098: 60fb str r3, [r7, #12] if((temp_reg != 0x00000000U) && (temp_reg != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL))) - 8006086: 68fb ldr r3, [r7, #12] - 8006088: 2b00 cmp r3, #0 - 800608a: d034 beq.n 80060f6 - 800608c: 687b ldr r3, [r7, #4] - 800608e: 685a ldr r2, [r3, #4] - 8006090: 23c0 movs r3, #192 @ 0xc0 - 8006092: 009b lsls r3, r3, #2 - 8006094: 4013 ands r3, r2 - 8006096: 68fa ldr r2, [r7, #12] - 8006098: 429a cmp r2, r3 - 800609a: d02c beq.n 80060f6 + 800609a: 68fb ldr r3, [r7, #12] + 800609c: 2b00 cmp r3, #0 + 800609e: d034 beq.n 800610a + 80060a0: 687b ldr r3, [r7, #4] + 80060a2: 685a ldr r2, [r3, #4] + 80060a4: 23c0 movs r3, #192 @ 0xc0 + 80060a6: 009b lsls r3, r3, #2 + 80060a8: 4013 ands r3, r2 + 80060aa: 68fa ldr r2, [r7, #12] + 80060ac: 429a cmp r2, r3 + 80060ae: d02c beq.n 800610a { /* Store the content of BDCR register before the reset of Backup Domain */ temp_reg = (RCC->BDCR & ~(RCC_BDCR_RTCSEL)); - 800609c: 4b42 ldr r3, [pc, #264] @ (80061a8 ) - 800609e: 6a1b ldr r3, [r3, #32] - 80060a0: 4a43 ldr r2, [pc, #268] @ (80061b0 ) - 80060a2: 4013 ands r3, r2 - 80060a4: 60fb str r3, [r7, #12] + 80060b0: 4b42 ldr r3, [pc, #264] @ (80061bc ) + 80060b2: 6a1b ldr r3, [r3, #32] + 80060b4: 4a43 ldr r2, [pc, #268] @ (80061c4 ) + 80060b6: 4013 ands r3, r2 + 80060b8: 60fb str r3, [r7, #12] /* RTC Clock selection can be changed only if the Backup Domain is reset */ __HAL_RCC_BACKUPRESET_FORCE(); - 80060a6: 4b40 ldr r3, [pc, #256] @ (80061a8 ) - 80060a8: 6a1a ldr r2, [r3, #32] - 80060aa: 4b3f ldr r3, [pc, #252] @ (80061a8 ) - 80060ac: 2180 movs r1, #128 @ 0x80 - 80060ae: 0249 lsls r1, r1, #9 - 80060b0: 430a orrs r2, r1 - 80060b2: 621a str r2, [r3, #32] + 80060ba: 4b40 ldr r3, [pc, #256] @ (80061bc ) + 80060bc: 6a1a ldr r2, [r3, #32] + 80060be: 4b3f ldr r3, [pc, #252] @ (80061bc ) + 80060c0: 2180 movs r1, #128 @ 0x80 + 80060c2: 0249 lsls r1, r1, #9 + 80060c4: 430a orrs r2, r1 + 80060c6: 621a str r2, [r3, #32] __HAL_RCC_BACKUPRESET_RELEASE(); - 80060b4: 4b3c ldr r3, [pc, #240] @ (80061a8 ) - 80060b6: 6a1a ldr r2, [r3, #32] - 80060b8: 4b3b ldr r3, [pc, #236] @ (80061a8 ) - 80060ba: 493e ldr r1, [pc, #248] @ (80061b4 ) - 80060bc: 400a ands r2, r1 - 80060be: 621a str r2, [r3, #32] + 80060c8: 4b3c ldr r3, [pc, #240] @ (80061bc ) + 80060ca: 6a1a ldr r2, [r3, #32] + 80060cc: 4b3b ldr r3, [pc, #236] @ (80061bc ) + 80060ce: 493e ldr r1, [pc, #248] @ (80061c8 ) + 80060d0: 400a ands r2, r1 + 80060d2: 621a str r2, [r3, #32] /* Restore the Content of BDCR register */ RCC->BDCR = temp_reg; - 80060c0: 4b39 ldr r3, [pc, #228] @ (80061a8 ) - 80060c2: 68fa ldr r2, [r7, #12] - 80060c4: 621a str r2, [r3, #32] + 80060d4: 4b39 ldr r3, [pc, #228] @ (80061bc ) + 80060d6: 68fa ldr r2, [r7, #12] + 80060d8: 621a str r2, [r3, #32] /* Wait for LSERDY if LSE was enabled */ if (HAL_IS_BIT_SET(temp_reg, RCC_BDCR_LSEON)) - 80060c6: 68fb ldr r3, [r7, #12] - 80060c8: 2201 movs r2, #1 - 80060ca: 4013 ands r3, r2 - 80060cc: d013 beq.n 80060f6 + 80060da: 68fb ldr r3, [r7, #12] + 80060dc: 2201 movs r2, #1 + 80060de: 4013 ands r3, r2 + 80060e0: d013 beq.n 800610a { /* Get Start Tick */ tickstart = HAL_GetTick(); - 80060ce: f7fd fe89 bl 8003de4 - 80060d2: 0003 movs r3, r0 - 80060d4: 613b str r3, [r7, #16] + 80060e2: f7fd fe89 bl 8003df8 + 80060e6: 0003 movs r3, r0 + 80060e8: 613b str r3, [r7, #16] /* Wait till LSE is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 80060d6: e009 b.n 80060ec + 80060ea: e009 b.n 8006100 { if((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) - 80060d8: f7fd fe84 bl 8003de4 - 80060dc: 0002 movs r2, r0 - 80060de: 693b ldr r3, [r7, #16] - 80060e0: 1ad3 subs r3, r2, r3 - 80060e2: 4a35 ldr r2, [pc, #212] @ (80061b8 ) - 80060e4: 4293 cmp r3, r2 - 80060e6: d901 bls.n 80060ec + 80060ec: f7fd fe84 bl 8003df8 + 80060f0: 0002 movs r2, r0 + 80060f2: 693b ldr r3, [r7, #16] + 80060f4: 1ad3 subs r3, r2, r3 + 80060f6: 4a35 ldr r2, [pc, #212] @ (80061cc ) + 80060f8: 4293 cmp r3, r2 + 80060fa: d901 bls.n 8006100 { return HAL_TIMEOUT; - 80060e8: 2303 movs r3, #3 - 80060ea: e058 b.n 800619e + 80060fc: 2303 movs r3, #3 + 80060fe: e058 b.n 80061b2 while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 80060ec: 4b2e ldr r3, [pc, #184] @ (80061a8 ) - 80060ee: 6a1b ldr r3, [r3, #32] - 80060f0: 2202 movs r2, #2 - 80060f2: 4013 ands r3, r2 - 80060f4: d0f0 beq.n 80060d8 + 8006100: 4b2e ldr r3, [pc, #184] @ (80061bc ) + 8006102: 6a1b ldr r3, [r3, #32] + 8006104: 2202 movs r2, #2 + 8006106: 4013 ands r3, r2 + 8006108: d0f0 beq.n 80060ec } } } } __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection); - 80060f6: 4b2c ldr r3, [pc, #176] @ (80061a8 ) - 80060f8: 6a1b ldr r3, [r3, #32] - 80060fa: 4a2d ldr r2, [pc, #180] @ (80061b0 ) - 80060fc: 4013 ands r3, r2 - 80060fe: 0019 movs r1, r3 - 8006100: 687b ldr r3, [r7, #4] - 8006102: 685a ldr r2, [r3, #4] - 8006104: 4b28 ldr r3, [pc, #160] @ (80061a8 ) - 8006106: 430a orrs r2, r1 - 8006108: 621a str r2, [r3, #32] + 800610a: 4b2c ldr r3, [pc, #176] @ (80061bc ) + 800610c: 6a1b ldr r3, [r3, #32] + 800610e: 4a2d ldr r2, [pc, #180] @ (80061c4 ) + 8006110: 4013 ands r3, r2 + 8006112: 0019 movs r1, r3 + 8006114: 687b ldr r3, [r7, #4] + 8006116: 685a ldr r2, [r3, #4] + 8006118: 4b28 ldr r3, [pc, #160] @ (80061bc ) + 800611a: 430a orrs r2, r1 + 800611c: 621a str r2, [r3, #32] /* Require to disable power clock if necessary */ if(pwrclkchanged == SET) - 800610a: 2317 movs r3, #23 - 800610c: 18fb adds r3, r7, r3 - 800610e: 781b ldrb r3, [r3, #0] - 8006110: 2b01 cmp r3, #1 - 8006112: d105 bne.n 8006120 + 800611e: 2317 movs r3, #23 + 8006120: 18fb adds r3, r7, r3 + 8006122: 781b ldrb r3, [r3, #0] + 8006124: 2b01 cmp r3, #1 + 8006126: d105 bne.n 8006134 { __HAL_RCC_PWR_CLK_DISABLE(); - 8006114: 4b24 ldr r3, [pc, #144] @ (80061a8 ) - 8006116: 69da ldr r2, [r3, #28] - 8006118: 4b23 ldr r3, [pc, #140] @ (80061a8 ) - 800611a: 4928 ldr r1, [pc, #160] @ (80061bc ) - 800611c: 400a ands r2, r1 - 800611e: 61da str r2, [r3, #28] + 8006128: 4b24 ldr r3, [pc, #144] @ (80061bc ) + 800612a: 69da ldr r2, [r3, #28] + 800612c: 4b23 ldr r3, [pc, #140] @ (80061bc ) + 800612e: 4928 ldr r1, [pc, #160] @ (80061d0 ) + 8006130: 400a ands r2, r1 + 8006132: 61da str r2, [r3, #28] } } /*------------------------------- USART1 Configuration ------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART1) == RCC_PERIPHCLK_USART1) - 8006120: 687b ldr r3, [r7, #4] - 8006122: 681b ldr r3, [r3, #0] - 8006124: 2201 movs r2, #1 - 8006126: 4013 ands r3, r2 - 8006128: d009 beq.n 800613e + 8006134: 687b ldr r3, [r7, #4] + 8006136: 681b ldr r3, [r3, #0] + 8006138: 2201 movs r2, #1 + 800613a: 4013 ands r3, r2 + 800613c: d009 beq.n 8006152 { /* Check the parameters */ assert_param(IS_RCC_USART1CLKSOURCE(PeriphClkInit->Usart1ClockSelection)); /* Configure the USART1 clock source */ __HAL_RCC_USART1_CONFIG(PeriphClkInit->Usart1ClockSelection); - 800612a: 4b1f ldr r3, [pc, #124] @ (80061a8 ) - 800612c: 6b1b ldr r3, [r3, #48] @ 0x30 - 800612e: 2203 movs r2, #3 - 8006130: 4393 bics r3, r2 - 8006132: 0019 movs r1, r3 - 8006134: 687b ldr r3, [r7, #4] - 8006136: 689a ldr r2, [r3, #8] - 8006138: 4b1b ldr r3, [pc, #108] @ (80061a8 ) - 800613a: 430a orrs r2, r1 - 800613c: 631a str r2, [r3, #48] @ 0x30 + 800613e: 4b1f ldr r3, [pc, #124] @ (80061bc ) + 8006140: 6b1b ldr r3, [r3, #48] @ 0x30 + 8006142: 2203 movs r2, #3 + 8006144: 4393 bics r3, r2 + 8006146: 0019 movs r1, r3 + 8006148: 687b ldr r3, [r7, #4] + 800614a: 689a ldr r2, [r3, #8] + 800614c: 4b1b ldr r3, [pc, #108] @ (80061bc ) + 800614e: 430a orrs r2, r1 + 8006150: 631a str r2, [r3, #48] @ 0x30 __HAL_RCC_USART3_CONFIG(PeriphClkInit->Usart3ClockSelection); } #endif /* STM32F091xC || STM32F098xx */ /*------------------------------ I2C1 Configuration ------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C1) == RCC_PERIPHCLK_I2C1) - 800613e: 687b ldr r3, [r7, #4] - 8006140: 681b ldr r3, [r3, #0] - 8006142: 2220 movs r2, #32 - 8006144: 4013 ands r3, r2 - 8006146: d009 beq.n 800615c + 8006152: 687b ldr r3, [r7, #4] + 8006154: 681b ldr r3, [r3, #0] + 8006156: 2220 movs r2, #32 + 8006158: 4013 ands r3, r2 + 800615a: d009 beq.n 8006170 { /* Check the parameters */ assert_param(IS_RCC_I2C1CLKSOURCE(PeriphClkInit->I2c1ClockSelection)); /* Configure the I2C1 clock source */ __HAL_RCC_I2C1_CONFIG(PeriphClkInit->I2c1ClockSelection); - 8006148: 4b17 ldr r3, [pc, #92] @ (80061a8 ) - 800614a: 6b1b ldr r3, [r3, #48] @ 0x30 - 800614c: 2210 movs r2, #16 - 800614e: 4393 bics r3, r2 - 8006150: 0019 movs r1, r3 - 8006152: 687b ldr r3, [r7, #4] - 8006154: 68da ldr r2, [r3, #12] - 8006156: 4b14 ldr r3, [pc, #80] @ (80061a8 ) - 8006158: 430a orrs r2, r1 - 800615a: 631a str r2, [r3, #48] @ 0x30 + 800615c: 4b17 ldr r3, [pc, #92] @ (80061bc ) + 800615e: 6b1b ldr r3, [r3, #48] @ 0x30 + 8006160: 2210 movs r2, #16 + 8006162: 4393 bics r3, r2 + 8006164: 0019 movs r1, r3 + 8006166: 687b ldr r3, [r7, #4] + 8006168: 68da ldr r2, [r3, #12] + 800616a: 4b14 ldr r3, [pc, #80] @ (80061bc ) + 800616c: 430a orrs r2, r1 + 800616e: 631a str r2, [r3, #48] @ 0x30 } #if defined(STM32F042x6) || defined(STM32F048xx) || defined(STM32F072xB) || defined(STM32F078xx) || defined(STM32F070xB) || defined(STM32F070x6) /*------------------------------ USB Configuration ------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USB) == RCC_PERIPHCLK_USB) - 800615c: 687b ldr r3, [r7, #4] - 800615e: 681a ldr r2, [r3, #0] - 8006160: 2380 movs r3, #128 @ 0x80 - 8006162: 029b lsls r3, r3, #10 - 8006164: 4013 ands r3, r2 - 8006166: d009 beq.n 800617c + 8006170: 687b ldr r3, [r7, #4] + 8006172: 681a ldr r2, [r3, #0] + 8006174: 2380 movs r3, #128 @ 0x80 + 8006176: 029b lsls r3, r3, #10 + 8006178: 4013 ands r3, r2 + 800617a: d009 beq.n 8006190 { /* Check the parameters */ assert_param(IS_RCC_USBCLKSOURCE(PeriphClkInit->UsbClockSelection)); /* Configure the USB clock source */ __HAL_RCC_USB_CONFIG(PeriphClkInit->UsbClockSelection); - 8006168: 4b0f ldr r3, [pc, #60] @ (80061a8 ) - 800616a: 6b1b ldr r3, [r3, #48] @ 0x30 - 800616c: 2280 movs r2, #128 @ 0x80 - 800616e: 4393 bics r3, r2 - 8006170: 0019 movs r1, r3 - 8006172: 687b ldr r3, [r7, #4] - 8006174: 695a ldr r2, [r3, #20] - 8006176: 4b0c ldr r3, [pc, #48] @ (80061a8 ) - 8006178: 430a orrs r2, r1 - 800617a: 631a str r2, [r3, #48] @ 0x30 + 800617c: 4b0f ldr r3, [pc, #60] @ (80061bc ) + 800617e: 6b1b ldr r3, [r3, #48] @ 0x30 + 8006180: 2280 movs r2, #128 @ 0x80 + 8006182: 4393 bics r3, r2 + 8006184: 0019 movs r1, r3 + 8006186: 687b ldr r3, [r7, #4] + 8006188: 695a ldr r2, [r3, #20] + 800618a: 4b0c ldr r3, [pc, #48] @ (80061bc ) + 800618c: 430a orrs r2, r1 + 800618e: 631a str r2, [r3, #48] @ 0x30 #if defined(STM32F042x6) || defined(STM32F048xx)\ || defined(STM32F051x8) || defined(STM32F058xx)\ || defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx)\ || defined(STM32F091xC) || defined(STM32F098xx) /*------------------------------ CEC clock Configuration -------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CEC) == RCC_PERIPHCLK_CEC) - 800617c: 687b ldr r3, [r7, #4] - 800617e: 681a ldr r2, [r3, #0] - 8006180: 2380 movs r3, #128 @ 0x80 - 8006182: 00db lsls r3, r3, #3 - 8006184: 4013 ands r3, r2 - 8006186: d009 beq.n 800619c + 8006190: 687b ldr r3, [r7, #4] + 8006192: 681a ldr r2, [r3, #0] + 8006194: 2380 movs r3, #128 @ 0x80 + 8006196: 00db lsls r3, r3, #3 + 8006198: 4013 ands r3, r2 + 800619a: d009 beq.n 80061b0 { /* Check the parameters */ assert_param(IS_RCC_CECCLKSOURCE(PeriphClkInit->CecClockSelection)); /* Configure the CEC clock source */ __HAL_RCC_CEC_CONFIG(PeriphClkInit->CecClockSelection); - 8006188: 4b07 ldr r3, [pc, #28] @ (80061a8 ) - 800618a: 6b1b ldr r3, [r3, #48] @ 0x30 - 800618c: 2240 movs r2, #64 @ 0x40 - 800618e: 4393 bics r3, r2 - 8006190: 0019 movs r1, r3 - 8006192: 687b ldr r3, [r7, #4] - 8006194: 691a ldr r2, [r3, #16] - 8006196: 4b04 ldr r3, [pc, #16] @ (80061a8 ) - 8006198: 430a orrs r2, r1 - 800619a: 631a str r2, [r3, #48] @ 0x30 + 800619c: 4b07 ldr r3, [pc, #28] @ (80061bc ) + 800619e: 6b1b ldr r3, [r3, #48] @ 0x30 + 80061a0: 2240 movs r2, #64 @ 0x40 + 80061a2: 4393 bics r3, r2 + 80061a4: 0019 movs r1, r3 + 80061a6: 687b ldr r3, [r7, #4] + 80061a8: 691a ldr r2, [r3, #16] + 80061aa: 4b04 ldr r3, [pc, #16] @ (80061bc ) + 80061ac: 430a orrs r2, r1 + 80061ae: 631a str r2, [r3, #48] @ 0x30 #endif /* STM32F042x6 || STM32F048xx || */ /* STM32F051x8 || STM32F058xx || */ /* STM32F071xB || STM32F072xB || STM32F078xx || */ /* STM32F091xC || STM32F098xx */ return HAL_OK; - 800619c: 2300 movs r3, #0 + 80061b0: 2300 movs r3, #0 } - 800619e: 0018 movs r0, r3 - 80061a0: 46bd mov sp, r7 - 80061a2: b006 add sp, #24 - 80061a4: bd80 pop {r7, pc} - 80061a6: 46c0 nop @ (mov r8, r8) - 80061a8: 40021000 .word 0x40021000 - 80061ac: 40007000 .word 0x40007000 - 80061b0: fffffcff .word 0xfffffcff - 80061b4: fffeffff .word 0xfffeffff - 80061b8: 00001388 .word 0x00001388 - 80061bc: efffffff .word 0xefffffff + 80061b2: 0018 movs r0, r3 + 80061b4: 46bd mov sp, r7 + 80061b6: b006 add sp, #24 + 80061b8: bd80 pop {r7, pc} + 80061ba: 46c0 nop @ (mov r8, r8) + 80061bc: 40021000 .word 0x40021000 + 80061c0: 40007000 .word 0x40007000 + 80061c4: fffffcff .word 0xfffffcff + 80061c8: fffeffff .word 0xfffeffff + 80061cc: 00001388 .word 0x00001388 + 80061d0: efffffff .word 0xefffffff -080061c0 : - 80061c0: 0003 movs r3, r0 - 80061c2: 1882 adds r2, r0, r2 - 80061c4: 4293 cmp r3, r2 - 80061c6: d100 bne.n 80061ca - 80061c8: 4770 bx lr - 80061ca: 7019 strb r1, [r3, #0] - 80061cc: 3301 adds r3, #1 - 80061ce: e7f9 b.n 80061c4 +080061d4 : + 80061d4: 0003 movs r3, r0 + 80061d6: 1882 adds r2, r0, r2 + 80061d8: 4293 cmp r3, r2 + 80061da: d100 bne.n 80061de + 80061dc: 4770 bx lr + 80061de: 7019 strb r1, [r3, #0] + 80061e0: 3301 adds r3, #1 + 80061e2: e7f9 b.n 80061d8 -080061d0 <__libc_init_array>: - 80061d0: b570 push {r4, r5, r6, lr} - 80061d2: 2600 movs r6, #0 - 80061d4: 4c0c ldr r4, [pc, #48] @ (8006208 <__libc_init_array+0x38>) - 80061d6: 4d0d ldr r5, [pc, #52] @ (800620c <__libc_init_array+0x3c>) - 80061d8: 1b64 subs r4, r4, r5 - 80061da: 10a4 asrs r4, r4, #2 - 80061dc: 42a6 cmp r6, r4 - 80061de: d109 bne.n 80061f4 <__libc_init_array+0x24> - 80061e0: 2600 movs r6, #0 - 80061e2: f000 f819 bl 8006218 <_init> - 80061e6: 4c0a ldr r4, [pc, #40] @ (8006210 <__libc_init_array+0x40>) - 80061e8: 4d0a ldr r5, [pc, #40] @ (8006214 <__libc_init_array+0x44>) - 80061ea: 1b64 subs r4, r4, r5 - 80061ec: 10a4 asrs r4, r4, #2 - 80061ee: 42a6 cmp r6, r4 - 80061f0: d105 bne.n 80061fe <__libc_init_array+0x2e> - 80061f2: bd70 pop {r4, r5, r6, pc} - 80061f4: 00b3 lsls r3, r6, #2 - 80061f6: 58eb ldr r3, [r5, r3] - 80061f8: 4798 blx r3 - 80061fa: 3601 adds r6, #1 - 80061fc: e7ee b.n 80061dc <__libc_init_array+0xc> - 80061fe: 00b3 lsls r3, r6, #2 - 8006200: 58eb ldr r3, [r5, r3] - 8006202: 4798 blx r3 - 8006204: 3601 adds r6, #1 - 8006206: e7f2 b.n 80061ee <__libc_init_array+0x1e> - 8006208: 08007944 .word 0x08007944 - 800620c: 08007944 .word 0x08007944 - 8006210: 08007948 .word 0x08007948 - 8006214: 08007944 .word 0x08007944 +080061e4 <__libc_init_array>: + 80061e4: b570 push {r4, r5, r6, lr} + 80061e6: 2600 movs r6, #0 + 80061e8: 4c0c ldr r4, [pc, #48] @ (800621c <__libc_init_array+0x38>) + 80061ea: 4d0d ldr r5, [pc, #52] @ (8006220 <__libc_init_array+0x3c>) + 80061ec: 1b64 subs r4, r4, r5 + 80061ee: 10a4 asrs r4, r4, #2 + 80061f0: 42a6 cmp r6, r4 + 80061f2: d109 bne.n 8006208 <__libc_init_array+0x24> + 80061f4: 2600 movs r6, #0 + 80061f6: f000 f819 bl 800622c <_init> + 80061fa: 4c0a ldr r4, [pc, #40] @ (8006224 <__libc_init_array+0x40>) + 80061fc: 4d0a ldr r5, [pc, #40] @ (8006228 <__libc_init_array+0x44>) + 80061fe: 1b64 subs r4, r4, r5 + 8006200: 10a4 asrs r4, r4, #2 + 8006202: 42a6 cmp r6, r4 + 8006204: d105 bne.n 8006212 <__libc_init_array+0x2e> + 8006206: bd70 pop {r4, r5, r6, pc} + 8006208: 00b3 lsls r3, r6, #2 + 800620a: 58eb ldr r3, [r5, r3] + 800620c: 4798 blx r3 + 800620e: 3601 adds r6, #1 + 8006210: e7ee b.n 80061f0 <__libc_init_array+0xc> + 8006212: 00b3 lsls r3, r6, #2 + 8006214: 58eb ldr r3, [r5, r3] + 8006216: 4798 blx r3 + 8006218: 3601 adds r6, #1 + 800621a: e7f2 b.n 8006202 <__libc_init_array+0x1e> + 800621c: 08007958 .word 0x08007958 + 8006220: 08007958 .word 0x08007958 + 8006224: 0800795c .word 0x0800795c + 8006228: 08007958 .word 0x08007958 -08006218 <_init>: - 8006218: b5f8 push {r3, r4, r5, r6, r7, lr} - 800621a: 46c0 nop @ (mov r8, r8) - 800621c: bcf8 pop {r3, r4, r5, r6, r7} - 800621e: bc08 pop {r3} - 8006220: 469e mov lr, r3 - 8006222: 4770 bx lr +0800622c <_init>: + 800622c: b5f8 push {r3, r4, r5, r6, r7, lr} + 800622e: 46c0 nop @ (mov r8, r8) + 8006230: bcf8 pop {r3, r4, r5, r6, r7} + 8006232: bc08 pop {r3} + 8006234: 469e mov lr, r3 + 8006236: 4770 bx lr -08006224 <_fini>: - 8006224: b5f8 push {r3, r4, r5, r6, r7, lr} - 8006226: 46c0 nop @ (mov r8, r8) - 8006228: bcf8 pop {r3, r4, r5, r6, r7} - 800622a: bc08 pop {r3} - 800622c: 469e mov lr, r3 - 800622e: 4770 bx lr +08006238 <_fini>: + 8006238: b5f8 push {r3, r4, r5, r6, r7, lr} + 800623a: 46c0 nop @ (mov r8, r8) + 800623c: bcf8 pop {r3, r4, r5, r6, r7} + 800623e: bc08 pop {r3} + 8006240: 469e mov lr, r3 + 8006242: 4770 bx lr diff --git a/Software/TTS_FT25/Debug/TTS_FT25.map b/Software/TTS_FT25/Debug/TTS_FT25.map index afe60ae..f11edc2 100644 --- a/Software/TTS_FT25/Debug/TTS_FT25.map +++ b/Software/TTS_FT25/Debug/TTS_FT25.map @@ -2743,7 +2743,7 @@ LOAD C:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.ext 0x08000000 g_pfnVectors 0x080000c0 . = ALIGN (0x4) -.text 0x080000c0 0x6170 +.text 0x080000c0 0x6184 0x080000c0 . = ALIGN (0x4) *(.text) .text 0x080000c0 0x48 C:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v6-m/nofp/crtbegin.o @@ -2818,301 +2818,301 @@ LOAD C:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.ext 0x080029d0 HTPA_calcPowerTwo *fill* 0x08002a46 0x2 .text.HTPA_ReadSensor - 0x08002a48 0x5fc ./Core/Src/HTPA_32x32d.o + 0x08002a48 0x610 ./Core/Src/HTPA_32x32d.o 0x08002a48 HTPA_ReadSensor .text.HTPA_WriteRegister - 0x08003044 0x3c ./Core/Src/HTPA_32x32d.o - 0x08003044 HTPA_WriteRegister + 0x08003058 0x3c ./Core/Src/HTPA_32x32d.o + 0x08003058 HTPA_WriteRegister .text.HTPA_ReadRegister - 0x08003080 0x44 ./Core/Src/HTPA_32x32d.o - 0x08003080 HTPA_ReadRegister + 0x08003094 0x44 ./Core/Src/HTPA_32x32d.o + 0x08003094 HTPA_ReadRegister .text.HTPA_GetStatus - 0x080030c4 0x7c ./Core/Src/HTPA_32x32d.o - 0x080030c4 HTPA_GetStatus + 0x080030d8 0x7c ./Core/Src/HTPA_32x32d.o + 0x080030d8 HTPA_GetStatus .text.HTPA_ReadEEPROM_byte - 0x08003140 0x44 ./Core/Src/HTPA_32x32d.o - 0x08003140 HTPA_ReadEEPROM_byte - .text.main 0x08003184 0xe4 ./Core/Src/main.o - 0x08003184 main + 0x08003154 0x44 ./Core/Src/HTPA_32x32d.o + 0x08003154 HTPA_ReadEEPROM_byte + .text.main 0x08003198 0xe4 ./Core/Src/main.o + 0x08003198 main .text.SystemClock_Config - 0x08003268 0xa6 ./Core/Src/main.o - 0x08003268 SystemClock_Config - *fill* 0x0800330e 0x2 + 0x0800327c 0xa6 ./Core/Src/main.o + 0x0800327c SystemClock_Config + *fill* 0x08003322 0x2 .text.MX_CAN_Init - 0x08003310 0x70 ./Core/Src/main.o + 0x08003324 0x70 ./Core/Src/main.o .text.MX_I2C1_Init - 0x08003380 0x80 ./Core/Src/main.o + 0x08003394 0x80 ./Core/Src/main.o .text.MX_GPIO_Init - 0x08003400 0xac ./Core/Src/main.o + 0x08003414 0xac ./Core/Src/main.o .text.Error_Handler - 0x080034ac 0x34 ./Core/Src/main.o - 0x080034ac Error_Handler + 0x080034c0 0x34 ./Core/Src/main.o + 0x080034c0 Error_Handler .text.HAL_MspInit - 0x080034e0 0x48 ./Core/Src/stm32f0xx_hal_msp.o - 0x080034e0 HAL_MspInit + 0x080034f4 0x48 ./Core/Src/stm32f0xx_hal_msp.o + 0x080034f4 HAL_MspInit .text.HAL_CAN_MspInit - 0x08003528 0x9c ./Core/Src/stm32f0xx_hal_msp.o - 0x08003528 HAL_CAN_MspInit + 0x0800353c 0x9c ./Core/Src/stm32f0xx_hal_msp.o + 0x0800353c HAL_CAN_MspInit .text.HAL_I2C_MspInit - 0x080035c4 0x9c ./Core/Src/stm32f0xx_hal_msp.o - 0x080035c4 HAL_I2C_MspInit + 0x080035d8 0x9c ./Core/Src/stm32f0xx_hal_msp.o + 0x080035d8 HAL_I2C_MspInit .text.HAL_I2C_MspDeInit - 0x08003660 0x4c ./Core/Src/stm32f0xx_hal_msp.o - 0x08003660 HAL_I2C_MspDeInit + 0x08003674 0x4c ./Core/Src/stm32f0xx_hal_msp.o + 0x08003674 HAL_I2C_MspDeInit .text.NMI_Handler - 0x080036ac 0x8 ./Core/Src/stm32f0xx_it.o - 0x080036ac NMI_Handler + 0x080036c0 0x8 ./Core/Src/stm32f0xx_it.o + 0x080036c0 NMI_Handler .text.HardFault_Handler - 0x080036b4 0x8 ./Core/Src/stm32f0xx_it.o - 0x080036b4 HardFault_Handler + 0x080036c8 0x8 ./Core/Src/stm32f0xx_it.o + 0x080036c8 HardFault_Handler .text.SVC_Handler - 0x080036bc 0xa ./Core/Src/stm32f0xx_it.o - 0x080036bc SVC_Handler + 0x080036d0 0xa ./Core/Src/stm32f0xx_it.o + 0x080036d0 SVC_Handler .text.PendSV_Handler - 0x080036c6 0xa ./Core/Src/stm32f0xx_it.o - 0x080036c6 PendSV_Handler + 0x080036da 0xa ./Core/Src/stm32f0xx_it.o + 0x080036da PendSV_Handler .text.SysTick_Handler - 0x080036d0 0xe ./Core/Src/stm32f0xx_it.o - 0x080036d0 SysTick_Handler + 0x080036e4 0xe ./Core/Src/stm32f0xx_it.o + 0x080036e4 SysTick_Handler .text.SystemInit - 0x080036de 0xa ./Core/Src/system_stm32f0xx.o - 0x080036de SystemInit + 0x080036f2 0xa ./Core/Src/system_stm32f0xx.o + 0x080036f2 SystemInit .text.TTS_Init - 0x080036e8 0x8c ./Core/Src/tts.o - 0x080036e8 TTS_Init + 0x080036fc 0x8c ./Core/Src/tts.o + 0x080036fc TTS_Init .text.TTS_SendCAN - 0x08003774 0xe0 ./Core/Src/tts.o - 0x08003774 TTS_SendCAN + 0x08003788 0xe0 ./Core/Src/tts.o + 0x08003788 TTS_SendCAN .text.TTS_TireZones - 0x08003854 0x308 ./Core/Src/tts.o - 0x08003854 TTS_TireZones + 0x08003868 0x308 ./Core/Src/tts.o + 0x08003868 TTS_TireZones .text.TTS_LoadTireData - 0x08003b5c 0x150 ./Core/Src/tts.o - 0x08003b5c TTS_LoadTireData + 0x08003b70 0x150 ./Core/Src/tts.o + 0x08003b70 TTS_LoadTireData .text.Reset_Handler - 0x08003cac 0x80 ./Core/Startup/startup_stm32f042k6tx.o - 0x08003cac Reset_Handler + 0x08003cc0 0x80 ./Core/Startup/startup_stm32f042k6tx.o + 0x08003cc0 Reset_Handler .text.Default_Handler - 0x08003d2c 0x2 ./Core/Startup/startup_stm32f042k6tx.o - 0x08003d2c TIM1_CC_IRQHandler - 0x08003d2c TSC_IRQHandler - 0x08003d2c I2C1_IRQHandler - 0x08003d2c RCC_CRS_IRQHandler - 0x08003d2c SPI1_IRQHandler - 0x08003d2c EXTI2_3_IRQHandler - 0x08003d2c ADC1_IRQHandler - 0x08003d2c TIM17_IRQHandler - 0x08003d2c CEC_CAN_IRQHandler - 0x08003d2c RTC_IRQHandler - 0x08003d2c PVD_VDDIO2_IRQHandler - 0x08003d2c TIM16_IRQHandler - 0x08003d2c TIM3_IRQHandler - 0x08003d2c EXTI4_15_IRQHandler - 0x08003d2c DMA1_Channel1_IRQHandler - 0x08003d2c Default_Handler - 0x08003d2c TIM14_IRQHandler - 0x08003d2c DMA1_Channel4_5_IRQHandler - 0x08003d2c EXTI0_1_IRQHandler - 0x08003d2c USB_IRQHandler - 0x08003d2c SPI2_IRQHandler - 0x08003d2c WWDG_IRQHandler - 0x08003d2c TIM2_IRQHandler - 0x08003d2c DMA1_Channel2_3_IRQHandler - 0x08003d2c USART2_IRQHandler - 0x08003d2c FLASH_IRQHandler - 0x08003d2c USART1_IRQHandler - 0x08003d2c TIM1_BRK_UP_TRG_COM_IRQHandler - *fill* 0x08003d2e 0x2 + 0x08003d40 0x2 ./Core/Startup/startup_stm32f042k6tx.o + 0x08003d40 TIM1_CC_IRQHandler + 0x08003d40 TSC_IRQHandler + 0x08003d40 I2C1_IRQHandler + 0x08003d40 RCC_CRS_IRQHandler + 0x08003d40 SPI1_IRQHandler + 0x08003d40 EXTI2_3_IRQHandler + 0x08003d40 ADC1_IRQHandler + 0x08003d40 TIM17_IRQHandler + 0x08003d40 CEC_CAN_IRQHandler + 0x08003d40 RTC_IRQHandler + 0x08003d40 PVD_VDDIO2_IRQHandler + 0x08003d40 TIM16_IRQHandler + 0x08003d40 TIM3_IRQHandler + 0x08003d40 EXTI4_15_IRQHandler + 0x08003d40 DMA1_Channel1_IRQHandler + 0x08003d40 Default_Handler + 0x08003d40 TIM14_IRQHandler + 0x08003d40 DMA1_Channel4_5_IRQHandler + 0x08003d40 EXTI0_1_IRQHandler + 0x08003d40 USB_IRQHandler + 0x08003d40 SPI2_IRQHandler + 0x08003d40 WWDG_IRQHandler + 0x08003d40 TIM2_IRQHandler + 0x08003d40 DMA1_Channel2_3_IRQHandler + 0x08003d40 USART2_IRQHandler + 0x08003d40 FLASH_IRQHandler + 0x08003d40 USART1_IRQHandler + 0x08003d40 TIM1_BRK_UP_TRG_COM_IRQHandler + *fill* 0x08003d42 0x2 .text.HAL_Init - 0x08003d30 0x28 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o - 0x08003d30 HAL_Init + 0x08003d44 0x28 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o + 0x08003d44 HAL_Init .text.HAL_InitTick - 0x08003d58 0x68 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o - 0x08003d58 HAL_InitTick + 0x08003d6c 0x68 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o + 0x08003d6c HAL_InitTick .text.HAL_IncTick - 0x08003dc0 0x24 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o - 0x08003dc0 HAL_IncTick + 0x08003dd4 0x24 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o + 0x08003dd4 HAL_IncTick .text.HAL_GetTick - 0x08003de4 0x14 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o - 0x08003de4 HAL_GetTick + 0x08003df8 0x14 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o + 0x08003df8 HAL_GetTick .text.HAL_Delay - 0x08003df8 0x48 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o - 0x08003df8 HAL_Delay + 0x08003e0c 0x48 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o + 0x08003e0c HAL_Delay .text.HAL_CAN_Init - 0x08003e40 0x1fc ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_can.o - 0x08003e40 HAL_CAN_Init + 0x08003e54 0x1fc ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_can.o + 0x08003e54 HAL_CAN_Init .text.HAL_CAN_Start - 0x0800403c 0x8c ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_can.o - 0x0800403c HAL_CAN_Start + 0x08004050 0x8c ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_can.o + 0x08004050 HAL_CAN_Start .text.HAL_CAN_AddTxMessage - 0x080040c8 0x1a4 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_can.o - 0x080040c8 HAL_CAN_AddTxMessage + 0x080040dc 0x1a4 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_can.o + 0x080040dc HAL_CAN_AddTxMessage .text.__NVIC_SetPriority - 0x0800426c 0xdc ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o + 0x08004280 0xdc ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o .text.SysTick_Config - 0x08004348 0x48 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o + 0x0800435c 0x48 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o .text.HAL_NVIC_SetPriority - 0x08004390 0x2a ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o - 0x08004390 HAL_NVIC_SetPriority + 0x080043a4 0x2a ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o + 0x080043a4 HAL_NVIC_SetPriority .text.HAL_SYSTICK_Config - 0x080043ba 0x1a ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o - 0x080043ba HAL_SYSTICK_Config + 0x080043ce 0x1a ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o + 0x080043ce HAL_SYSTICK_Config .text.HAL_GPIO_Init - 0x080043d4 0x2d0 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o - 0x080043d4 HAL_GPIO_Init + 0x080043e8 0x2d0 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o + 0x080043e8 HAL_GPIO_Init .text.HAL_GPIO_DeInit - 0x080046a4 0x190 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o - 0x080046a4 HAL_GPIO_DeInit + 0x080046b8 0x190 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o + 0x080046b8 HAL_GPIO_DeInit .text.HAL_GPIO_WritePin - 0x08004834 0x3a ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o - 0x08004834 HAL_GPIO_WritePin + 0x08004848 0x3a ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o + 0x08004848 HAL_GPIO_WritePin .text.HAL_GPIO_TogglePin - 0x0800486e 0x36 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o - 0x0800486e HAL_GPIO_TogglePin + 0x08004882 0x36 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o + 0x08004882 HAL_GPIO_TogglePin .text.HAL_I2C_Init - 0x080048a4 0x14c ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.o - 0x080048a4 HAL_I2C_Init + 0x080048b8 0x14c ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.o + 0x080048b8 HAL_I2C_Init .text.HAL_I2C_DeInit - 0x080049f0 0x60 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.o - 0x080049f0 HAL_I2C_DeInit + 0x08004a04 0x60 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.o + 0x08004a04 HAL_I2C_DeInit .text.HAL_I2C_Mem_Write - 0x08004a50 0x25c ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.o - 0x08004a50 HAL_I2C_Mem_Write + 0x08004a64 0x25c ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.o + 0x08004a64 HAL_I2C_Mem_Write .text.HAL_I2C_Mem_Read - 0x08004cac 0x268 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.o - 0x08004cac HAL_I2C_Mem_Read + 0x08004cc0 0x268 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.o + 0x08004cc0 HAL_I2C_Mem_Read .text.I2C_RequestMemoryWrite - 0x08004f14 0xc8 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.o + 0x08004f28 0xc8 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.o .text.I2C_RequestMemoryRead - 0x08004fdc 0xc4 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.o + 0x08004ff0 0xc4 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.o .text.I2C_Flush_TXDR - 0x080050a0 0x44 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.o + 0x080050b4 0x44 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.o .text.I2C_WaitOnFlagUntilTimeout - 0x080050e4 0xb0 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.o + 0x080050f8 0xb0 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.o .text.I2C_WaitOnTXISFlagUntilTimeout - 0x08005194 0x8c ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.o + 0x080051a8 0x8c ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.o .text.I2C_WaitOnSTOPFlagUntilTimeout - 0x08005220 0x86 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.o - *fill* 0x080052a6 0x2 + 0x08005234 0x86 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.o + *fill* 0x080052ba 0x2 .text.I2C_IsErrorOccurred - 0x080052a8 0x1f0 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.o + 0x080052bc 0x1f0 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.o .text.I2C_TransferConfig - 0x08005498 0x74 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.o + 0x080054ac 0x74 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.o .text.HAL_I2CEx_ConfigAnalogFilter - 0x0800550c 0x98 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.o - 0x0800550c HAL_I2CEx_ConfigAnalogFilter + 0x08005520 0x98 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.o + 0x08005520 HAL_I2CEx_ConfigAnalogFilter .text.HAL_I2CEx_ConfigDigitalFilter - 0x080055a4 0x98 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.o - 0x080055a4 HAL_I2CEx_ConfigDigitalFilter + 0x080055b8 0x98 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.o + 0x080055b8 HAL_I2CEx_ConfigDigitalFilter .text.HAL_RCC_OscConfig - 0x0800563c 0x70c ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o - 0x0800563c HAL_RCC_OscConfig + 0x08005650 0x70c ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o + 0x08005650 HAL_RCC_OscConfig .text.HAL_RCC_ClockConfig - 0x08005d48 0x1b4 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o - 0x08005d48 HAL_RCC_ClockConfig + 0x08005d5c 0x1b4 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o + 0x08005d5c HAL_RCC_ClockConfig .text.HAL_RCC_GetSysClockFreq - 0x08005efc 0xe8 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o - 0x08005efc HAL_RCC_GetSysClockFreq + 0x08005f10 0xe8 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o + 0x08005f10 HAL_RCC_GetSysClockFreq .text.HAL_RCCEx_PeriphCLKConfig - 0x08005fe4 0x1dc ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.o - 0x08005fe4 HAL_RCCEx_PeriphCLKConfig - .text.memset 0x080061c0 0x10 C:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp\libc_nano.a(libc_a-memset.o) - 0x080061c0 memset + 0x08005ff8 0x1dc ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.o + 0x08005ff8 HAL_RCCEx_PeriphCLKConfig + .text.memset 0x080061d4 0x10 C:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp\libc_nano.a(libc_a-memset.o) + 0x080061d4 memset .text.__libc_init_array - 0x080061d0 0x48 C:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp\libc_nano.a(libc_a-init.o) - 0x080061d0 __libc_init_array + 0x080061e4 0x48 C:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp\libc_nano.a(libc_a-init.o) + 0x080061e4 __libc_init_array *(.glue_7) - .glue_7 0x08006218 0x0 linker stubs + .glue_7 0x0800622c 0x0 linker stubs *(.glue_7t) - .glue_7t 0x08006218 0x0 linker stubs + .glue_7t 0x0800622c 0x0 linker stubs *(.eh_frame) - .eh_frame 0x08006218 0x0 C:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v6-m/nofp/crtbegin.o + .eh_frame 0x0800622c 0x0 C:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v6-m/nofp/crtbegin.o *(.init) - .init 0x08006218 0x4 C:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v6-m/nofp/crti.o - 0x08006218 _init - .init 0x0800621c 0x8 C:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v6-m/nofp/crtn.o + .init 0x0800622c 0x4 C:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v6-m/nofp/crti.o + 0x0800622c _init + .init 0x08006230 0x8 C:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v6-m/nofp/crtn.o *(.fini) - .fini 0x08006224 0x4 C:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v6-m/nofp/crti.o - 0x08006224 _fini - .fini 0x08006228 0x8 C:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v6-m/nofp/crtn.o - 0x08006230 . = ALIGN (0x4) - 0x08006230 _etext = . + .fini 0x08006238 0x4 C:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v6-m/nofp/crti.o + 0x08006238 _fini + .fini 0x0800623c 0x8 C:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v6-m/nofp/crtn.o + 0x08006244 . = ALIGN (0x4) + 0x08006244 _etext = . -.vfp11_veneer 0x08006230 0x0 - .vfp11_veneer 0x08006230 0x0 linker stubs +.vfp11_veneer 0x08006244 0x0 + .vfp11_veneer 0x08006244 0x0 linker stubs -.v4_bx 0x08006230 0x0 - .v4_bx 0x08006230 0x0 linker stubs +.v4_bx 0x08006244 0x0 + .v4_bx 0x08006244 0x0 linker stubs -.iplt 0x08006230 0x0 - .iplt 0x08006230 0x0 C:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v6-m/nofp/crtbegin.o +.iplt 0x08006244 0x0 + .iplt 0x08006244 0x0 C:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v6-m/nofp/crtbegin.o -.rodata 0x08006230 0x170c - 0x08006230 . = ALIGN (0x4) +.rodata 0x08006244 0x170c + 0x08006244 . = ALIGN (0x4) *(.rodata) - .rodata 0x08006230 0x40 C:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v6-m/nofp\libgcc.a(divdf3.o) + .rodata 0x08006244 0x40 C:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v6-m/nofp\libgcc.a(divdf3.o) *(.rodata*) .rodata.TempTable - 0x08006270 0x13b0 ./Core/Src/HTPA_32x32d.o - 0x08006270 TempTable + 0x08006284 0x13b0 ./Core/Src/HTPA_32x32d.o + 0x08006284 TempTable .rodata.XTATemps - 0x08007620 0x1c ./Core/Src/HTPA_32x32d.o - 0x08007620 XTATemps + 0x08007634 0x1c ./Core/Src/HTPA_32x32d.o + 0x08007634 XTATemps .rodata.YADValues - 0x0800763c 0x2d0 ./Core/Src/HTPA_32x32d.o - 0x0800763c YADValues + 0x08007650 0x2d0 ./Core/Src/HTPA_32x32d.o + 0x08007650 YADValues .rodata.AHBPrescTable - 0x0800790c 0x10 ./Core/Src/system_stm32f0xx.o - 0x0800790c AHBPrescTable + 0x08007920 0x10 ./Core/Src/system_stm32f0xx.o + 0x08007920 AHBPrescTable .rodata.aPLLMULFactorTable.1 - 0x0800791c 0x10 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o + 0x08007930 0x10 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o .rodata.aPredivFactorTable.0 - 0x0800792c 0x10 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o - 0x0800793c . = ALIGN (0x4) + 0x08007940 0x10 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o + 0x08007950 . = ALIGN (0x4) -.ARM.extab 0x0800793c 0x0 - 0x0800793c . = ALIGN (0x4) +.ARM.extab 0x08007950 0x0 + 0x08007950 . = ALIGN (0x4) *(.ARM.extab* .gnu.linkonce.armextab.*) - 0x0800793c . = ALIGN (0x4) + 0x08007950 . = ALIGN (0x4) -.ARM 0x0800793c 0x8 - 0x0800793c . = ALIGN (0x4) - 0x0800793c __exidx_start = . +.ARM 0x08007950 0x8 + 0x08007950 . = ALIGN (0x4) + 0x08007950 __exidx_start = . *(.ARM.exidx*) - .ARM.exidx 0x0800793c 0x8 C:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v6-m/nofp\libgcc.a(_divdi3.o) - 0x08007944 __exidx_end = . - 0x08007944 . = ALIGN (0x4) + .ARM.exidx 0x08007950 0x8 C:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v6-m/nofp\libgcc.a(_divdi3.o) + 0x08007958 __exidx_end = . + 0x08007958 . = ALIGN (0x4) -.preinit_array 0x08007944 0x0 - 0x08007944 . = ALIGN (0x4) - 0x08007944 PROVIDE (__preinit_array_start = .) +.preinit_array 0x08007958 0x0 + 0x08007958 . = ALIGN (0x4) + 0x08007958 PROVIDE (__preinit_array_start = .) *(.preinit_array*) - 0x08007944 PROVIDE (__preinit_array_end = .) - 0x08007944 . = ALIGN (0x4) + 0x08007958 PROVIDE (__preinit_array_end = .) + 0x08007958 . = ALIGN (0x4) -.init_array 0x08007944 0x4 - 0x08007944 . = ALIGN (0x4) - 0x08007944 PROVIDE (__init_array_start = .) +.init_array 0x08007958 0x4 + 0x08007958 . = ALIGN (0x4) + 0x08007958 PROVIDE (__init_array_start = .) *(SORT_BY_NAME(.init_array.*)) *(.init_array*) - .init_array 0x08007944 0x4 C:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v6-m/nofp/crtbegin.o - 0x08007948 PROVIDE (__init_array_end = .) - 0x08007948 . = ALIGN (0x4) + .init_array 0x08007958 0x4 C:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v6-m/nofp/crtbegin.o + 0x0800795c PROVIDE (__init_array_end = .) + 0x0800795c . = ALIGN (0x4) -.fini_array 0x08007948 0x4 - 0x08007948 . = ALIGN (0x4) +.fini_array 0x0800795c 0x4 + 0x0800795c . = ALIGN (0x4) [!provide] PROVIDE (__fini_array_start = .) *(SORT_BY_NAME(.fini_array.*)) *(.fini_array*) - .fini_array 0x08007948 0x4 C:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v6-m/nofp/crtbegin.o + .fini_array 0x0800795c 0x4 C:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v6-m/nofp/crtbegin.o [!provide] PROVIDE (__fini_array_end = .) - 0x0800794c . = ALIGN (0x4) - 0x0800794c _sidata = LOADADDR (.data) + 0x08007960 . = ALIGN (0x4) + 0x08007960 _sidata = LOADADDR (.data) -.rel.dyn 0x0800794c 0x0 - .rel.iplt 0x0800794c 0x0 C:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v6-m/nofp/crtbegin.o +.rel.dyn 0x08007960 0x0 + .rel.iplt 0x08007960 0x0 C:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v6-m/nofp/crtbegin.o -.data 0x20000000 0xc load address 0x0800794c +.data 0x20000000 0xc load address 0x08007960 0x20000000 . = ALIGN (0x4) 0x20000000 _sdata = . *(.data) @@ -3132,11 +3132,11 @@ LOAD C:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.ext *fill* 0x20000009 0x3 0x2000000c _edata = . -.igot.plt 0x2000000c 0x0 load address 0x08007958 +.igot.plt 0x2000000c 0x0 load address 0x0800796c .igot.plt 0x2000000c 0x0 C:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v6-m/nofp/crtbegin.o 0x2000000c . = ALIGN (0x4) -.bss 0x2000000c 0x89c load address 0x08007958 +.bss 0x2000000c 0x89c load address 0x0800796c 0x2000000c _sbss = . 0x2000000c __bss_start__ = _sbss *(.bss) @@ -3295,7 +3295,7 @@ LOAD C:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.ext 0x200008a8 __bss_end__ = _ebss ._user_heap_stack - 0x200008a8 0x600 load address 0x08007958 + 0x200008a8 0x600 load address 0x0800796c 0x200008a8 . = ALIGN (0x8) [!provide] PROVIDE (end = .) 0x200008a8 PROVIDE (_end = .) @@ -3577,22 +3577,22 @@ LOAD C:/ST/STM32CubeIDE_1.18.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.ext .debug_macro 0x00018095 0x1b6 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o .debug_macro 0x0001824b 0x1b6 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.o -.debug_line 0x00000000 0xc415 - .debug_line 0x00000000 0xf71 ./Core/Src/HTPA_32x32d.o - .debug_line 0x00000f71 0x8b9 ./Core/Src/main.o - .debug_line 0x0000182a 0x7b0 ./Core/Src/stm32f0xx_hal_msp.o - .debug_line 0x00001fda 0x772 ./Core/Src/stm32f0xx_it.o - .debug_line 0x0000274c 0x79d ./Core/Src/system_stm32f0xx.o - .debug_line 0x00002ee9 0x9e0 ./Core/Src/tts.o - .debug_line 0x000038c9 0x8d ./Core/Startup/startup_stm32f042k6tx.o - .debug_line 0x00003956 0x994 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o - .debug_line 0x000042ea 0x11a1 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_can.o - .debug_line 0x0000548b 0xa3c ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o - .debug_line 0x00005ec7 0xae6 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o - .debug_line 0x000069ad 0x3728 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.o - .debug_line 0x0000a0d5 0x87b ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.o - .debug_line 0x0000a950 0xed8 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o - .debug_line 0x0000b828 0xbed ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.o +.debug_line 0x00000000 0xc418 + .debug_line 0x00000000 0xf74 ./Core/Src/HTPA_32x32d.o + .debug_line 0x00000f74 0x8b9 ./Core/Src/main.o + .debug_line 0x0000182d 0x7b0 ./Core/Src/stm32f0xx_hal_msp.o + .debug_line 0x00001fdd 0x772 ./Core/Src/stm32f0xx_it.o + .debug_line 0x0000274f 0x79d ./Core/Src/system_stm32f0xx.o + .debug_line 0x00002eec 0x9e0 ./Core/Src/tts.o + .debug_line 0x000038cc 0x8d ./Core/Startup/startup_stm32f042k6tx.o + .debug_line 0x00003959 0x994 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o + .debug_line 0x000042ed 0x11a1 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_can.o + .debug_line 0x0000548e 0xa3c ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o + .debug_line 0x00005eca 0xae6 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o + .debug_line 0x000069b0 0x3728 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.o + .debug_line 0x0000a0d8 0x87b ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.o + .debug_line 0x0000a953 0xed8 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o + .debug_line 0x0000b82b 0xbed ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.o .debug_str 0x00000000 0x88c39 .debug_str 0x00000000 0x88c39 ./Core/Src/HTPA_32x32d.o