• slider image 442
  • slider image 477
  • slider image 479
  • slider image 480
  • slider image 481
  • slider image 482
:::


Browsing this Thread:   1 Anonymous Users






Re: NVIC_SystemReset() 如何讓 GPIO 保持不變動.
#4
初級會員
初級會員


查看用戶資訊
Kevin 老師好您,

好的,也在擔心是否會連同外部一起 RESET,

SAM MCU 是否有只做 core reset 的 Command?
還是如果要切換 BL / APP,只有 jump 可以用?

謝謝老師的回覆。


參照:

KevinLu wrote:
Lexus_NX 你好,在 SAML22 MCU 中使用 RESET 功能後,會將 PORT 重置至初始狀態,暫存器的初始狀態可以參考 Datasheet 中的 "29. PORT - I/O Pin Controller" 章節。

發表於: 2022/7/11 17:31
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: NVIC_SystemReset() 如何讓 GPIO 保持不變動.
#3
管理員
管理員


查看用戶資訊
Lexus_NX 你好,在 SAML22 MCU 中使用 RESET 功能後,會將 PORT 重置至初始狀態,暫存器的初始狀態可以參考 Datasheet 中的 "29. PORT - I/O Pin Controller" 章節。

發表於: 2022/7/11 16:36
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: NVIC_SystemReset() 如何讓 GPIO 保持不變動.
#2
初級會員
初級會員


查看用戶資訊
用的 mcu 是 L22 ,在網上找到 的是這個例子。
https://microchipsupport.force.com/s/a ... re-reset-on-SAMD21-SAMW25

雖沒有做出指定 address 跳轉,用 NVIC_SystemReset() 可以達到跳轉功能。

因文章中說,NVIC_SystemReset() 是 core software reset。
想應該不會動到 GPIO,

但目前會掉電。

發表於: 2022/7/8 17:29
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


NVIC_SystemReset() 如何讓 GPIO 保持不變動.
#1
初級會員
初級會員


查看用戶資訊
老師們好:

由於有 bootloader + Application 的應用,目前使用 NVIC_SystemReset() 來做跳轉,
因為有 GPIO 用來做 output power latch,如果GPIO 有變動,系統會掉電。

請問如何讓 GPIO 保持不變動。
想法是在 PORT_Initialize() 中
不設定 PORT_DIR / PORT_OUT
只設定 PORT_PINCFG / PORT_PMUX

但沒有成功,是否有範例可以參考?

有請各位老師幫忙指導解答。
Thank you very much.

發表於: 2022/7/8 12:34
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部







You can view topic.
不可以 發起新主題
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.

[進階搜尋]


:::

Microchip連結

https://www.facebook.com/microchiptechnologytaiwan/
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=13
https://mu.microchip.com/page/tmu
http://elearning.microchip.com.tw/modules/tad_link/index.php?cate_sn=1
https://page.microchip.com/APAC-PrefCenters-TW.html
http://www.microchip.com/
http://www.microchip.com/treelink
http://www.microchipdirect.com/
http://www.microchip.com.cn/newcommunity/index.php?m=Video&a=index&id=103
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=2
http://www.microchip.com.tw/Data_CD/eLearning/index.html
http://www.microchip.com.tw/RTC/RTC_DVD/
https://www.microchip.com/development-tools/
https://www.youtube.com/user/MicrochipTechnology
[ more... ]

教育訓練中心

!開發工具購買
辦法說明 [業界客戶] [教育單位]
----------------------------------
!校園樣品申請
辦法說明 [教師資格] [學生資格]
----------------------------------