From 259ee6b17aaabda4d8cd7170ddee9dc708eb311b Mon Sep 17 00:00:00 2001 From: Chun-Chieh Li Date: Tue, 24 Aug 2021 15:29:53 +0800 Subject: [PATCH] M2354: Enhance TF-M SDH stability 1. Lower TF-M SDH clock to avoid premature timeout 2. Re-initialize TF-M SDH on (timeout) failure --- .../COMPONENT_TFM_S_FW/bl2.bin | Bin 39048 -> 39064 bytes .../COMPONENT_TFM_S_FW/tfm_s.bin | Bin 323872 -> 323872 bytes 2 files changed, 0 insertions(+), 0 deletions(-) diff --git a/targets/TARGET_NUVOTON/TARGET_M2354/TARGET_TFM/TARGET_NU_M2354/COMPONENT_TFM_S_FW/bl2.bin b/targets/TARGET_NUVOTON/TARGET_M2354/TARGET_TFM/TARGET_NU_M2354/COMPONENT_TFM_S_FW/bl2.bin index 336b4357d58eb912879a8a5e92565ace568d40e7..5240d6d1632d0f3ed2964fd3114aa1a58e7d8d92 100644 GIT binary patch delta 1879 zcmYjQ4NOy46u#%RuTTMPbqy#qyjrm|OhJ(`G-yk)p(;@}jUu4N6Pc2{-c3#^Nn|$9r-}%n_?t8cI zZDhiJpbvX6u~0ojGi8{ z{|c*-J-waxdvcVwr~jfbt<}3OM|UyL-xYQfX%-HH?CT0S9wm*1QU;RaQD!kseMtA~ z@hF?Zp0;PPyWAc3u~xQXh8S!5IUq4n{v?o4TjaeP=kG8yiE;tX6R)J4V1Ig@Zik;~ zLMba=!|pw9uomUiyKhncbLMo194{`=Edq(R>ZSrM@safaTX~bd4WJpDId_^4DcLB3^-^0 z+Tc(mb&L+GzUw62!UMy+l91kpM#Cxnb19@!vE7hpiVLgwE{`%TT$@mDEQ?w$*@MTS zlW$<9aku_N(ACKsxp`nU=(TBTj86WI9~yK9Xqs6CUkYb<8bbRx0)n)a`lZ37HmbbA>byG3e;<+wu!ct@ zECx8vE6f)F?qGJJ3(jJ7;tIIRI}={AL0r$TCFe-Gl-{RA#pZV5vSmO>rCjyZmV7Q=%veDb?z>xb8Xf{C_}Y-|@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jZi`g|10;Z z3YzfZ3OiJyHh(cVF)zO_Vqz+l8QAl&XX9+HJhU)|8B>@bJ;sEBI0(fR1v*%QWd+IV z!FxGq^zD)uTmL;&ArBYL2GR$Zw?-JWW^fYo;+X926v7e zI@2sKuu``0i;I~4JJ*(Q&DuEv?8PMKa@c{@&Sc`#P80EvGlK5nzH={eWl=J5OHmcL zP`7Rse84N#xm9orHA3pZyU%NYf_G#2fiz?0F2?c*eT2Xo#?0if#zBP_R6fL>1KWb9@3;wvn%>05 HgF*iR(ZH}< diff --git a/targets/TARGET_NUVOTON/TARGET_M2354/TARGET_TFM/TARGET_NU_M2354/COMPONENT_TFM_S_FW/tfm_s.bin b/targets/TARGET_NUVOTON/TARGET_M2354/TARGET_TFM/TARGET_NU_M2354/COMPONENT_TFM_S_FW/tfm_s.bin index ad65b0e296c38a0bda41bbdcc22d482e12f6ee30..77360540d2c8a24ce433d530215cc58ec303cdd6 100644 GIT binary patch delta 5461 zcmZu#3sh5Ay54)AlRyGURFt;{&=!lf2x3ud8xxEekf+MiYecMZ)LTYn)y`M~6+fPmcpKLlDCv-tV`_iLYX zIKg&(wC(!n>Ixx5cU~l0ZWFDB5kioEiD-4elJnNjh5X2oJq{yE-ad?!)RBoJQvFkI zhE!@!>QyadVzg7}vB!xPMjP!%lq*x{2D^||Cwl$kv3Hf$x!-zbaX8&=y|(xkHCxZ+ zWYSyKF}cUbyx6ClLRva*(}XYE)qkBzwA%5`gB*nWj#_DN-M2W;dr0M9xaI=w%ADL57r+G!|82nf8nz}-#&^X zF+>Z#-&m(E8SVEES!NNa`9Evsl0d%(StH1rf7?r!lrmajy}NV@{j)XL{0e=;o@f3t zfKIoMFMW;Cm#uqVUqYAK@4tTBZ%)M-5w?N5QV?MUAyp2P@uMKDn2-Ux7sx6i4%s!b ztU%d%X?p^_U>E*4UPC*qQSV354*R_Kdjy(cHylo<0M;Yh0j$ACufp$#M-6npb;hw6 z_`TxTM7r1h&asc_q?`T8r-}2x<7D?&=7b1`O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