:::

論壇索引


Board index » All Posts (jxchenpp01)




Re: 剛看到MPLAB X有6.00,有人用過了嗎?
#1
中級會員
中級會員


連上官網,應該是新增如下功能,參考如下
MPLAB X IDE brings a host of features to help you quickly debug your projects and minimize your development time. Some newer features include:

Data Visualizer: No need to purchase extra visualizations tools since real-time streaming data can be viewed in Data Visualizer
I/O View: Pin states can be verified and manipulated with I/O View for fast hardware verification
Helpful Design Resources: Save time with useful links to software libraries, datasheets and user guides that are provided automatically
Easy to Use: Register and bit definitions are now just a click away
Includes the MPLAB Integrated Programming Environment (IPE) for production-level programming

發表於: 2/15 17:52
頂部


Re: MHC 創建 Keil 問題
#2
中級會員
中級會員


Hi Liba
感謝~~~~

發表於: 2021/10/31 0:36
頂部


Re: MHC 創建 Keil 問題
#3
中級會員
中級會員


Hi Libra
已發信給你再麻煩你看看

發表於: 2021/10/29 9:49
頂部


MHC 創建 Keil 問題
#4
中級會員
中級會員


1. 使用MPLAB X IDE 叫出之前專案檔,在TOOLS->EMBEDDED->MPLAB Harmony 3 configuator 叫出配置檔

在file -> save configuation,之後關閉MPLAB X IDE


D:\Harmony3\mhc\runmhc.bat 單獨叫出 MPLAB Harmony configuator 配置檔

在file -> open configuation,叫出 專案夾路徑\firmware\src\config\default

選擇編譯器->Keil,然後按下generate code ,然後找到對應產生Keil 專案檔,在keil 編譯有錯



使用Keil 編譯錯誤如下:
compiling plib_sercom2_i2c_master.c...
compiling plib_sercom3_usart.c...
../src/main.c(124): error: unknown type name 'CAN_MSG_RX_FRAME_ATTRIBUTE'
static CAN_MSG_RX_FRAME_ATTRIBUTE msgFrameAttr = CAN_MSG_RX_DATA_FRAME;
^
../src/main.c(124): error: use of undeclared identifier 'CAN_MSG_RX_DATA_FRAME'
static CAN_MSG_RX_FRAME_ATTRIBUTE msgFrameAttr = CAN_MSG_RX_DATA_FRAME;
^
../src/main.c(587): warning: implicit declaration of function 'CAN0_TxCallbackRegister' is invalid in C99 [-Wimplicit-function-declaration]
CAN0_TxCallbackRegister( APP_CAN_Callback, (uintptr_t)APP_STATE_CAN_TRANSMIT );
^
../src/main.c(589): warning: implicit declaration of function 'CAN0_MessageTransmit' is invalid in C99 [-Wimplicit-function-declaration]
if (CAN0_MessageTransmit(messageID, messageLength, message, CAN_MODE_FD_WITH_BRS, CAN_MSG_ATTR_TX_FIFO_DATA_FRAME) == false)
^
../src/main.c(589): error: use of undeclared identifier 'CAN_MODE_FD_WITH_BRS'
if (CAN0_MessageTransmit(messageID, messageLength, message, CAN_MODE_FD_WITH_BRS, CAN_MSG_ATTR_TX_FIFO_DATA_FRAME) == false)
^
../src/main.c(589): error: use of undeclared identifier 'CAN_MSG_ATTR_TX_FIFO_DATA_FRAME'
if (CAN0_MessageTransmit(messageID, messageLength, message, CAN_MODE_FD_WITH_BRS, CAN_MSG_ATTR_TX_FIFO_DATA_FRAME) == false)
^
../src/main.c(603): error: use of undeclared identifier 'CAN_MODE_FD_WITH_BRS'
if (CAN0_MessageTransmit(messageID, messageLength, message, CAN_MODE_FD_WITH_BRS, CAN_MSG_ATTR_TX_FIFO_DATA_FRAME) == false)
^
../src/main.c(603): error: use of undeclared identifier 'CAN_MSG_ATTR_TX_FIFO_DATA_FRAME'
if (CAN0_MessageTransmit(messageID, messageLength, message, CAN_MODE_FD_WITH_BRS, CAN_MSG_ATTR_TX_FIFO_DATA_FRAME) == false)
^
../src/main.c(611): warning: implicit declaration of function 'CAN0_RxCallbackRegister' is invalid in C99 [-Wimplicit-function-declaration]
CAN0_RxCallbackRegister( APP_CAN_Callback, (uintptr_t)APP_STATE_CAN_RECEIVE, CAN_MSG_ATTR_RX_BUFFER );
^
../src/main.c(611): error: use of undeclared identifier 'CAN_MSG_ATTR_RX_BUFFER'
CAN0_RxCallbackRegister( APP_CAN_Callback, (uintptr_t)APP_STATE_CAN_RECEIVE, CAN_MSG_ATTR_RX_BUFFER );
^
../src/main.c(615): warning: implicit declaration of function 'CAN0_MessageReceive' is invalid in C99 [-Wimplicit-function-declaration]
if (CAN0_MessageReceive(&rx_messageID, &rx_messageLength, rx_message, ×tamp, CAN_MSG_ATTR_RX_BUFFER, &msgFrameAttr) == false)
^
../src/main.c(615): error: use of undeclared identifier 'CAN_MSG_ATTR_RX_BUFFER'
if (CAN0_MessageReceive(&rx_messageID, &rx_messageLength, rx_message, ×tamp, CAN_MSG_ATTR_RX_BUFFER, &msgFrameAttr) == false)
^
../src/main.c(623): error: use of undeclared identifier 'CAN_MSG_ATTR_RX_FIFO0'
CAN0_RxCallbackRegister( APP_CAN_Callback, (uintptr_t)APP_STATE_CAN_RECEIVE, CAN_MSG_ATTR_RX_FIFO0 );
^
../src/main.c(627): error: use of undeclared identifier 'CAN_MSG_ATTR_RX_FIFO0'
if (CAN0_MessageReceive(&rx_messageID, &rx_messageLength, rx_message, ×tamp, CAN_MSG_ATTR_RX_FIFO0, &msgFrameAttr) == false)
^
../src/main.c(635): error: use of undeclared identifier 'CAN_MSG_ATTR_RX_BUFFER'
CAN0_RxCallbackRegister( APP_CAN_Callback, (uintptr_t)APP_STATE_CAN_RECEIVE, CAN_MSG_ATTR_RX_BUFFER );
^
../src/main.c(639): error: use of undeclared identifier 'CAN_MSG_ATTR_RX_BUFFER'
if (CAN0_MessageReceive(&rx_messageID, &rx_messageLength, rx_message, ×tamp, CAN_MSG_ATTR_RX_BUFFER, &msgFrameAttr) == false)
^
../src/main.c(647): error: use of undeclared identifier 'CAN_MSG_ATTR_RX_FIFO1'
CAN0_RxCallbackRegister( APP_CAN_Callback, (uintptr_t)APP_STATE_CAN_RECEIVE, CAN_MSG_ATTR_RX_FIFO1 );
^
../src/main.c(651): error: use of undeclared identifier 'CAN_MSG_ATTR_RX_FIFO1'
if (CAN0_MessageReceive(&rx_messageID, &rx_messageLength, rx_message, ×tamp, CAN_MSG_ATTR_RX_FIFO1, &msgFrameAttr) == false)
^
../src/main.c(665): error: use of undeclared identifier 'CAN_MODE_FD_WITH_BRS'
if (CAN0_MessageTransmit(messageID, messageLength, message, CAN_MODE_FD_WITH_BRS, CAN_MSG_ATTR_TX_FIFO_DATA_FRAME) == false)
^
../src/main.c(665): error: use of undeclared identifier 'CAN_MSG_ATTR_TX_FIFO_DATA_FRAME'
if (CAN0_MessageTransmit(messageID, messageLength, message, CAN_MODE_FD_WITH_BRS, CAN_MSG_ATTR_TX_FIFO_DATA_FRAME) == false)
^
../src/main.c(679): error: use of undeclared identifier 'CAN_MODE_FD_WITH_BRS'
if (CAN0_MessageTransmit(messageID, messageLength, message, CAN_MODE_FD_WITH_BRS, CAN_MSG_ATTR_TX_FIFO_DATA_FRAME) == false)
^
../src/main.c(679): error: use of undeclared identifier 'CAN_MSG_ATTR_TX_FIFO_DATA_FRAME'
if (CAN0_MessageTransmit(messageID, messageLength, message, CAN_MODE_FD_WITH_BRS, CAN_MSG_ATTR_TX_FIFO_DATA_FRAME) == false)
^
../src/main.c(694): error: use of undeclared identifier 'CAN_MODE_NORMAL'
if (CAN0_MessageTransmit(messageID, messageLength, message, CAN_MODE_NORMAL, CAN_MSG_ATTR_TX_FIFO_DATA_FRAME) == false)
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]

Attach file:



jpg  產生程式碼.jpg (61.70 KB)
110549_617a3b921d4ee.jpg 625X657 px

jpg  修改keil編譯.jpg (357.64 KB)
110549_617a3c23f10af.jpg 1783X1027 px

jpg  open_configuator.jpg (67.39 KB)
110549_617a3c33ed7c5.jpg 832X494 px

發表於: 2021/10/28 13:57
頂部


Re: 知識列車 III 之 MU 選粹 線上研討會 - 完轉 MPLAB X IDE 技巧與提示實戰
#5
中級會員
中級會員


HI Ryang
感謝提供訊息~~~~~~~~

發表於: 2021/10/26 13:04
頂部


Re: ATSAMC21J18A WDT
#6
中級會員
中級會員


Hi Libra
好的

發表於: 2021/9/8 12:19
頂部


Re: ATSAMC21J18A FLASH 模凝 EEPROM
#7
中級會員
中級會員


Hi Libra
好的

發表於: 2021/9/8 12:18
頂部


ATSAMC21J18A WDT
#8
中級會員
中級會員


關於WDT ,我找不到SAM2001 &SAM2002 WDT 教學 , 進入Harmony 有選項可以設定WDT ,在SYS_Initialize() 他並沒有初始化,
去那邊對應API 可以設定WDT 時間,與清除WDT 功能

發表於: 2021/9/3 10:06
頂部


ATSAMC21J18A FLASH 模凝 EEPROM
#9
中級會員
中級會員


看了datasheet 首頁提到,可以配置eeprom如下:
1/2/4/8 KB independent self-programmable Flash for EEPROM emulation
請教這個區塊要如何使用 Harmony 去配置

發表於: 2021/9/2 11:42
頂部


Re: ATSAMC21j18a adc 參考電壓pin
#10
中級會員
中級會員


Hi Libra
如果要設定我想要內部參考電壓,那應該怎樣處理,
我還是不是很了解,用Bandgap電壓可以當成校準值

發表於: 2021/8/30 16:35

Edited by jxchenpp01 on 2021年08月30日 16:56:22
Edited by jxchenpp01 on 2021年08月30日 16:56:55
頂部



(1) 2 3 4 5 »



:::

會員登入

知識列車系列 IV – 2022 MU選粹網路研討會

http://www.microchip.com.tw/modules/tad_link/index.php?cate_sn=1
[ more... ]
:::

Microchip連結

https://www.facebook.com/microchiptechnologytaiwan/
https://mu.microchip.com/page/tmu
http://www.microchip.com.tw/modules/tadnews/page.php?ncsn=2&nsn=41
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... ]

教育訓練中心

課程 - 台北教育訓練中心
課程 - 新竹教育訓練中心
課程 - 高雄教育訓練中心
教育訓練中心介紹
購買 - 實驗工具
臺灣實驗板介紹與資源