搜尋

已選項目

搜尋結果

搜尋I2C access EEPROM , 共找到 12 筆
  • 排序
  • 依時間
  • 依熱門度
培訓  學習  入門  影片長度 - 9:1
NuMicro M031/M032 Series I2C Sample Code : Demonstrate how to access EEPROM via I2C interface. #I2C #Training #Level1 #Workshop #SampleCode #InterIntegratedCircuit #EEPROM #WriteMultiBytesTwoRegs #ReadMultiBytesTwoRegs #Read #Program #TxBuffer #RxBuffer #StatusRegister #ControlRegister #NuMicro #Nuvoton #SampleCode #Basic #General #Training #Learning #en - For more information, please visit Nuvoton Technology Website: https://bit.ly/3hVdcmC buy now: https://direct.nuvoton.com/ contact us: SalesSupport@nuvoton.com
培訓  學習  入門  影片長度 - 7:34
NuMicro M031/M032 Series SPI Sample Code : Demonstrate how to access SPI Flash via SPI interface. 【Datasheet of SPI Flash W25Q35】 https://www.winbond.com/resource-files/W25Q32JV%20RevI%2005042021%20Plus.pdf #SPI #Training #Level1 #Workshop #SampleCode #SerialPeripheralIngerface #SPIFlash #W25Q35 #ReadID #Read #Program #Basic #General #Training #Learning #en - For more information, please visit Nuvoton Technology Website: https://bit.ly/3hVdcmC buy now: https://direct.nuvoton.com/ contact us: SalesSupport@nuvoton.com
培訓  學習  影片長度 - 6:24
新唐 NuMicro 微控制器家族 I2C 範例程式介紹 - 演示如何透過 I2C 介面來對EEPROM做資料的存取。 #Training #Basic #zh-Hant #Learning - 更多產品資訊,請至新唐科技網站 https://bit.ly/3hVdcmC 購買管道:https://direct.nuvoton.com/tw 聯絡我們:SalesSupport@nuvoton.com
培訓  學習  影片長度 - 20:7
Nuvoton NuMicro Family microcontroller I2C basic function introduction. Use M031/M032 Series as an example. #Training #Basic #en #Learning - For more information, please visit Nuvoton Technology Website: https://bit.ly/3hVdcmC buy now: https://direct.nuvoton.com/ contact us: SalesSupport@nuvoton.com
創新產品  工具  學習  影片長度 - 7:51
影片中介紹新唐科技MPU N9H30 Linux與Non-OS開發環境建置,以NuMaker-emWin-RDK-N9H30為範例,由開發板介紹開始,到BSP與相關軟體下載。 - 新唐科技提供 emWin 開發平台其採用新唐的 N9H30 微處理器系列,此為一套完整的人機顯示介面解決平台,支援最高解析度為 1024 x 768 像素顯示器,因 N9H30 系列採用 ARM926EJ-S 為內核,運行速度達 300 MHz,最高可驅動彩色 1024 x 768 像素並行端口(Parallel Port),內建 TFT LCD 控制器與 2D 圖形加速器,該系列內建最高達 64 MB DDRII SDRAM 記憶體,讓開發者在使用 emWin 軟體時,具備設計彈性。 以下將帶給各位如何將 Linux OS 與 Non-OS code 燒錄至開發板,以 NuMaker-emWin-RDK-N9H30 做示範,這部影片中所有指令與網址都會放在下方影片內容給大家參考,User Manual 相關文件都放在新唐官方網站 https://www.nuvoton.com/products/gui-solution/gui-reference-design/numaker-emwin-rdk-n9h30/ 我們先示範將 Linux OS 建置到 N9H30 開發板,到新唐的 Github 網站 OpenNuvoton 找尋我們所使用的開發板 N9H30 並下載新唐提供的 VMware 映像 https://github.com/OpenNuvoton/MPU-Family VMware 主程式則需要到該公司的官方網站下載: https://www.vmware.com/tw/products/workstation-player/workstation-player-evaluation.html 首先我們開啟 VMware 主程式,找尋我們剛剛下載的 ubuntu_NUC970_980_Linux 資料夾,點選 Ubuntu 64-bit_nuvoton.vmx,點選 Play virtual machine,密碼請輸入 user,第一次打開會需要一點時間,開機完成後打開 Terminal,再來進入 NUC970_Buildroot-master 資料夾 進入資料夾後,我們先更新Buildroot工具,輸入以下指令: git reset --hard git pull 更新完成後,進入dl資料夾,先將既有的 Linux kernel 與 u-boot 刪除,輸入以下指令: sudo rm -rf linux-master.tar.gz uboot-master.tar.gz 輸入完後,輸入密碼 user 輸入完成後,離開dl資料夾,進入 buildroot 資料夾,下 make clean 以上動作只需要在更新時使用,接下來我們要設定開發板的編譯設定,先進入 configs 資料夾找尋開發板名稱,找到名稱後回到 buildroot,輸入 make nuvoton_n9h30_emwin_defconfig 產生configuration file,設定完成後輸入 make 開始編譯,編譯時間大約為三小時。 編譯完成後,執行以下步驟 1.修改nuc970_evb.h,47~50行 ~$gedit /output/build/uboot-master/include/configs/nuc970_evb.h #define CONFIG_SYS_USE_SPIFLASH /* #define CONFIG_ENV_IS_IN_NAND */ #define CONFIG_ENV_IS_IN_SPI_FLASH 2. 修改uboot configuration ~/output/build/uboot-master$ make menuconfig -> Device Drivers -> SPI Support [*] NUC970/N9H30 SPI driver Select NUC970/N9H30 SPI in Quad mode or Normal mode (Quad mode) ---> -> SPI Flash Support [*] Legacy SPI Flash Interface support [*] SPI flash Bank/Extended address register support [*] Winbond SPI flash support -> Command line interface -> Device access commands [*] sf 3.重新編譯,並重新燒錄u-boot.bin ~/Buildroot$ make uboot-rebuild 編譯完成後,請將以下兩個檔案複製至 windows 下 /NUC970_Buildroot-master/output/images/uImage /NUC970_Buildroot-master/output/build/uboot-master/u-boot.bin 並且建立記事本 env-nor.txt,內容如下 baudrate=115200 bootdelay=1 stderr=serial stdin=serial stdout=serial setspi=sf probe 0 50000000 loadkernel=sf read 0x7fc0 0x200000 0x600000 bootcmd=run setspi;run loadkernel;bootm 0x7fc0 bootargs=noinitrd root=/dev/mtdblock2 rw rootfstype=jffs2 console=ttyS0 rdinit=/sbin/init mem=32M mtdparts=m25p80:0x200000@0x0(u-boot),0x600000@0x200000(kernel),-(user) ignore_loglevel 再來我們則需要安裝 NuWriter 所需要的相關檔案,NuWriter 是新唐提供的燒錄工具,提供在 PC上使用的軟體及其原始碼,使用者可以依照需求自行開發功能 https://github.com/OpenNuvoton/MPU-Family 下載完成後,打開 NUC970_NuWriter-master,到 Driver 資料夾安裝 WinUSB4NuVCOM.exe,安裝完後,到 NuWriter 資料夾底下的 Release 執行 NuWriter,依據自身開發板,選擇晶片編號,我們要把 Image 燒錄到 SPI Flash, 因此選擇 SPI 這邊需要將開發板的 Power-On Setting 全都撥到 ON 的位置 ,並且按壓一次 Reset 鍵,回到 NuWriter 確認綠燈連結至開發板,如果沒有,請點選 Re-Connect 重新連結,確認完後開始燒錄Image: u-boot.bin 燒錄至 0xe00000 env-nor.txt 燒錄至 0x80000 uImage 燒錄至 0x200000 等燒入完成後將開發板上的 Power Setting 都撥到 OFF 的位置,按壓一次 Reset 鍵,即可開始從SPI-NOR 開機,開機完成後,我們先到 /etc/init.d 底下找尋範例程式 rcS,輸入 chmod 777 rcS 調整權限後,即可在開發板螢幕上看到相關應用,編譯與燒錄程式就到這邊告一段落。 接下來為大家帶來 Non-OS code 編譯與燒錄,請大家先到以下網址下載 MDK-Arm https://www.keil.com/download/product/ 後續再下載新唐提供的 Non-OS BSP 包 https://github.com/OpenNuvoton/MPU-Family BSP 包裡面含有 Keil 詳細的開發環境設定手冊可以參閱,使用 Keil 則需要購買相關的 license,下載安裝完成後,打開 Keil uVision,點選左上角 File,選擇 Open,到剛剛下載的 BSP 包裡面, 依序選擇 BSP、SampleCode、emWin_SimpleDemo、KEIL、emWin_SimpleDemo.uvproj 再來我們點選 Option for Target,點選 Device,選擇 NuMicro ARM9 Database、N9H_series 完成後點選 Rebuild,編譯完成後即會產出 sample code的binary 檔案。 編譯完成後,打開NuWriter,重新連接開發板,連接完成後,選擇 SPI,依循以下路徑找尋我們剛剛編譯的程式 \N9H30_emWin_Non-OS_BSP_v1.04.000\N9H30_emWin_Non-OS_BSP_v1.04.000\BSP\SampleCode\emWin_SimpleDemo\KEIL\obj\emWin_SimpleDemo_FW070TFT_24BPP.bin 選擇完後,依照畫面設定,並燒錄至 0x0 的位置,燒錄完成後,將 Power-On Setting 改為 SPI 開機,即可在開發板上看到範例程式。 以上是這次的教學影片,後續我們還會為遠端監控功能和一些新的設計做更多介紹,感謝您的收看,歡迎訂閱我們的頻道,如果您想知道更多資訊歡迎聯絡我們! - 更多產品資訊,請至新唐科技網站 https://bit.ly/3hVdcmC 購買管道:https://direct.nuvoton.com/tw 聯絡我們: SalesSupport@nuvoton.com #Basic #Product #Tool #Learning #zh-Hant
影片長度 - 2:41
NuMicro® M031BT BLE 5.0 低功耗藍牙微控制器系列,以 Arm® Cortex®-M0 為核心,工作頻率高達 48 MHz,內建最高 128 KB Flash 和 16 KB SRAM,提供 BLE 5.0 和 2.4 GHz 雙模功能。相較於傳統集成簡單周邊的 BLE SoC,NuMicro® M031BT 系列內建豐富周邊與優異類比控制功能,實現一顆微控制器取代 BLE SoC 加控制晶片的方案,不僅大幅縮小 PCB 尺寸,QFN48封裝面積僅有 5mm x 5mm,也降低射頻佈局困難度,加上新唐參考設計方案與範例代碼,使得低功耗藍芽的應用開發變得相當容易。 NuMicro® M031BT 系列針對射頻應用提供高達 +8 dBm 的射頻發射功率、-94 dBm 的良好接收靈敏度、1 Mb/s 或 2 Mb/s 的傳輸速度,並且能在 2.4GHz 干擾嚴重的環境提供突出的抗噪表現,提升通訊距離和可靠性,滿足智慧家庭、消費電子以及工業物聯網等應用場景的需求。 NuMicro® M031BT 系列運作於 1.8V 至 3.6 V 工作電壓,內建 32 位硬體乘法器/除法器、高達 5 通道 PDMA、16 通道 12 位2 MSPS 高採樣率的 ADC 可運行在 1.8V 低電壓,提供精確且快速地效能表現,12 路 96 MHz PWM 可快速響應和精準的控制外部裝置。此外,M031BT 亦提供了豐富的周邊,例如 1 組 24 MHz SPI/I2S、3 組 6 MHz UART 並可支援單線式傳輸、2 組 I2C、1 組高彈性通用串行控制接口 (USCI) 可設為 UART, I2C 或 SPI。 NuMicro® M031BT 系列為了保護開發者的智慧財產權,內嵌一個額外的安全保護 Flash 區塊 (SPROM, Security Protection ROM),提供一個獨立且安全加密執行區域以保護關鍵程式代碼。記憶體鎖定功能 (Flash lock bits) 設計提供韌體防止外界存取或寫入保護。每一顆M031BT 具有一個 96 位元晶片唯一序號 (Unique Identification, UID) 及一個 128 位元唯一客戶序號 (Unique Customer Identification, UCID),大幅提升產品的保密與代碼安全性。 NuMicro® M031BT series: An low-power BLE 5.0 and 2.4GHz dual-mode microcontroller series by Arm® Cortex®-M0 core operating up to 48 MHz, with up to 128 KB Flash and 16 KB SRAM. In addition to the BLE 5.0 and 2.4GHz RF functions, the NuMicro® M031BT series built-in rich peripherals and analog control functions realize wireless connectivity. The 5mm x 5mm QFN48 package greatly reduces the PCB size and reduces RF layout difficulty. Furthermore, Nuvoton's reference design and rich sample code make the application development for low-power microcontroller with BLE/2.4G RF easier. The NuMicro® M031BT series provides up to +8 dBm RF transmit power, a good receiving sensitivity of -94 dBm, 1 Mb/s, or 2 Mb/s transmission speed RF applications, and outstanding anti-noise performance in 2.4GHz interference environments to ensure communication distance and reliability. With these, the M031BT series are expected to meet the needs of application scenarios such as industrial Internet of Things (IIoT), smart home, consumer electronics, etc. The NuMicro® M031BT series operates from 1.8V to 3.6V. It features a built-in 32-bit hardware divider, up to 5-channel PDMA, a 16-channel 12-bit 2 MSPS high sampling rate ADC that can run down to 1.8V low voltage, and 12-channel PWM running up to 96 MHz that can quickly respond and accurately control external devices. Besides, the M031BT also provides many peripherals such as one set of 24 MHz SPI/I2S, three sets of 6 MHz UART supporting single-wire transmission, two sets of I2C, and one set of highly flexible universal serial control interface (USCI) that can be configured as UART, I2C or SPI. To protect the intellectual property rights, the NuMicro® M031BT series is embedded with an additional security protection Flash block (Security Protection ROM, SPROM) to provide an independent and secure encrypted execution area to protect critical program code. Flash lock bits are designed to provide firmware to prevent external access or write protection. There is a 96-bit unique chip identification (Unique Identification, UID) and a 128-bit unique customer identification (UCID) on each M031BT, which significantly improves product confidentiality and code security. Nuvoton provides complete development tools, such as the NuMaker-M031BT evaluation board, software development kits, and sample codes, as well as free downloadable Keil MDK to speed up the end-product evaluation and development cycle. - 更多產品資訊,請至新唐科技網站 https://bit.ly/3hVdcmC 購買管道:https://direct.nuvoton.com/tw 聯絡我們:SalesSupport@nuvoton.com
培訓  工具  學習  影片長度 - 5:9
Hello everyone, I am Chris, the field application engineer from Nuvoton Technology. Today, I will introduce the application and principle of programmable seriel I/O aka PSIO on M251/M252. The programmable serial I/O of NuMicro M251/M252 series can generate arbitrary waveforms and combine them to achieve data transmission and reception of specific serial communication protocols. Of course, standard serial communication can also be achieved, such as UART SPI I2C Usually, it is common to use Timer+GPIO to achieve these specific communication protocols, but it is more complicated and requires frequent CPU intervention. When we use PSIO, this not only simplifies the complexity of the operation but also reduces the burden on the CPU. The saved CPU performance could be distributed in other places. Since all hardware operations do not require software intervention, the timing control is more precise. The principle of PSIO is to use a slot controller to control the pin input and output or determine the state, and it can also control the duration of these states. Each slot controller has eight slots, which can be used as eight settings, and the registers corresponding to each slot can access the data that needs to be input and output, and can also set the time for the current pin to maintain this state. Each slot can reach a checkpoint, usually 1 to 1, 2 to 2, 3 to 3, and so on. Each checkpoint can set the pin status of the corresponding slot within the corresponding time. Next, let’s take a look at a simple output-only example In the initial stage, we first set the state of the pin to be high before SLOT has started, so the output is high Then when the Slot controller receives the start signal, SLOT0 is set to output low level according to the setting of CP0 and waits for the time of SLOT0 to expire. Then SLOT1 is set to output low level according to the setting of CP1 and waits for the time of SLOT1 to expire. And so on, followed by SLOT2 output low level SLOT3 low level SLOT4 high level SLOT5 high level After SLOT5, since SLOT6 is not set, the waveform of the protocol can be completed with only six slots Between the time of the next data transmission, we set the interval low, so the output is low at this time Users can complete different protocols according to these simple operations. In the related resources section, we have provided two PSIO application notes. There are two protocol examples with more detailed operations and descriptions. If you want to know more details about PSIO, please download it from the URL in the video. Several sample codes of different protocols are also provided in BSP. That’s all for this tutorial. Thank you for watching it. Welcome to subscribe to our channel. If you want to know more information, please contact us. #Tool #Training #Learning #Intermediate #en - For more information, please visit Nuvoton Technology Website: https://bit.ly/3hVdcmC Buy now: https://direct.nuvoton.com/numaker-m251sd Contact us: SalesSupport@nuvoton.com
培訓  工具  學習  影片長度 - 8:37
NuMaker-IoT-M487 (5) Connect to Pelion Device Management on Mbed OS Hello everyone, I am Morgan, the principal engineer of Nuvoton Technology. Today, I will show you how to connect to Pelion Device Management with Mbed OS on NuMaker-IoT-M487 development board. Because the demonstration needs to store certificate, a MicroSD card is required. Open Chrome browser, enter the URL https://cloud.mbed.com/quick-start If you didn’t use Pelion Device Management before, you need to activate your Mbed account to access Pelion. Click the “Activate your free access”. Then log in your Mbed account. Click “Activate Pelion Device Management account“… Select the “Start the Connect Tutorial” Then scroll down to select NuMaker-IoT-M487 (WiFi) --After selected, scroll down and click “Get started”-- If you have completed previous tutorial, the NuMaker-IoT-M487 board has been selected in your Mbed account. Please click the “2.2” to import the Pelion Connect Tutorial into your Online Compiler. It shows the import dialog box, please click Import. Wait for a moment while importing the sample code. Click “mbed-os-example-pelion” project name, Then click “Pelion Device Management” on menu bar, select “Manage Connect Certificates” in pull-down menu to create a Pelion certificate. You need to provide API key. You can create a new one here. Log in your mbed account. Accept Then click New API key Assign an API Key name Click Close After created an API key, back to online compiler, Then click Manage Connect Certificate again. API Key automatically filled here. Click OK. Click “Create”, then assign a name for the certificate. Click OK. Click the certificate just created to select it, then click OK. The online compiler will automatically update source code with the selected certificate. Click “Pelion Device Management” on menu bar again, select “Apply Update Certificate”. An “Update Certificates” dialog box appears. Create it. Click Download Private Key and save it. Please make sure that NuMaker-IoT-M487 board already selected in the upper right corner. If not, please refer Nuvoton IoT Tutorial series “Get Started with Mbed OS” which has a detailed description of how to add a board. In order to use Wi-Fi, you have to configure SSID and password to match your Wi-Fi access point setting. In the mbed_app.json file, the default Wi-Fi security set to WPA and WPA2 in “nsapi.default-wifi-security” field. Please modify the field “nsapi.default-wifi-ssid” to your Wi-Fi SSID Then modify “nsapi.default-wifi-password” to your Wi-Fi password. Click on “Compile” to build it. Have to wait for a while. Then you can see the last message is “Success!” at the bottom of this page. The browser will download the binary firmware file directly after a successful compiling. It will be saved in a default download folder or the folder based on your browser setting. In Chrome, you can click download file and select “Show in folder”. Then we connect the NuMaker-IoT-M487 USB port to your computer and make sure the onboard LED lights up. Let’s back to the download folder where you can see the binary firmware file (mbed-os-example-pelion.NUMAKER_IOT_M487.bin). Drag and drop the file to NuMicro MCU drive. You will see the copying progress dialog box. Please find the virtual COM port assigned for NuMaker-IoT-M487 in Device Manager. In the tutorial, the “Nu-Link Virtual Com Port” is COMx. Then use your terminal tool. Here we use Putty. Open the COMx port with 115200 baud rate, 8 bits, 1 stop bit, none parity, and no flow control settings. Then “Open” it. Press Reset button on board to run again. You can see the connection messages printed on terminal. It shows the board’s IP address obtained from the Wi-Fi access point, and the Endpoint Name. Then you can see the device resource in Pelion Device Management Portal. Log in Pelion Portal with the same Mbed account. Click Device directory. Find the device ID which should be registered state. Click the Device ID, it shows the Device details. Click RESOURCES, find the resource 3200/0/5501. Click the resource. Now, you can press keys in terminal to increase the counter. Or the counter automatically increase 1 by one second. The demo code also updates the counter to Pelion. You will see the value change in the graph. That’s all for this tutorial. Thank you for watching. Welcome to subscribe to our channel. If you want to know more information, please contact us at SalesSupport@nuvoton.com - For more information, please visit Nuvoton Technology Website: https://bit.ly/3hVdcmC Buy now: https://direct.nuvoton.com/tw/numaker-iot-m487 Contact us: SalesSupport@nuvoton.com #tool #training #learning #intermediate #en
前瞻應用  學習  影片長度 - 4:49
以新唐 NuMaker-IoT-M263A 為平台,使用 Mbed OS 進行開發,學習各種功能。觀看本片,您將學會使用 NuMaker-IoT-M263A 開發板配合 Mbed OS 與 Pelion 的範例程式連接 Pelion 裝置管理雲端。 哈囉大家好,我是新唐工程師 Miya,今天為大家介紹如何使用新唐 NuMaker IoT-M263A在 MbedOS 上連接 Pelion 雲端。 因為需要將下載後的憑證儲存於 MicoSD Card 所以操作前需要先將 MicoSD Card 置入卡槽中 。 接著請打開 Chrome 瀏覽器,輸入網址 https://cloud.mbed.com/quick-start 。需要先啟動免費帳號 點選中間上方 Activate your free access ,系統開啟的下一個頁面直接點 Log in , 輸入您的帳號密碼登入 。啟動後選擇中間選項 Start the Connect Tutorial ,系統會自動轉到這個頁面, 往下拉選取 NuMaker-IoT-M263A ,系統將導入此頁面, 點選 2.1 將 M263A 加進線上編譯平台。加入後系統會自動新增確認頁面, 告知板子已被加入平台, 接著點選 2.2 將 mbed-os-example-pelion 加入線上編譯平台 ,確認系統匯入 mbed-os-example-pelion 後 點 Import, Load code 中 請稍待片刻。 Load code 完成後,可以看到系統 已將 Sample code 載到頁面裡了 ,先點選 mbed-os-example-pelion program ,接著在 Online compiler IDE 環境的 menu bar 上, 到 Pelion Device Management 中, 下拉選取 "Manage Connect Certificates " 來建立 Pelion 憑證 。在跳出的 API Key 小視窗 按一下 OK,點 Create ,幫您的連接憑證命名 輸入好之後,按OK 。點選剛才建立的憑證 再按 OK, 確認後點 OK 。 點 Pelion Device Management ,選取 Apply Update Certificate, 會出現 Update Certificates 視窗 ,按Create, 點 Download Private Key 。 由於要使用 Wi-Fi ,所以需要將 SSID 及密碼 ,改成可符合您連線環境的設定 。找到 mbed_app.json 裡面 SSID 設定 "wifi-ssid" ,此版 sample code 在第 22 行 ,更改為您使用無線網路所設定的 SSID 。接著再找到 "wifi-password",設定 此版在第 23 行裡的 Password ,改成您無線網路連接設定的密碼 ,改好後存檔 。Compile。,現在 Compile 中 需要等待一下, 完成後看到最下方會秀出 "Success!" 。 系統會把 compile 完成的 bin 檔 放在 download 資料夾, 直接從下方進入, 上拉後點一下 "Show in folder" 。接著將 NuMaker-IoT-M263A 板子透過 USB 接上 PC ,確認板子有亮燈就是通電了。 回到剛才的資料夾, 可以看到多了一個剛才 compile 完成的 bin 檔 ,按右鍵傳送到 NuMicro MCU(F:) ,這邊分配到哪一槽要看各位的電腦決定, 有成功點選到的話,會出現傳送過去的畫面。 接著到電腦的裝置管理員,查看分配到的 port 編號, 在本機按右鍵 選管理 ,找到裝置管理員, 到連接埠 (COM和LPT) ,可以看到 USB 序列裝置 ,就知道這部 PC 分配給它的是 COM12 。 接下來使用終端機模擬軟體, 各位可以用自己熟悉的軟體操作即可 。設定 Serial line 為 COM12, Speed 為 115200 ,到 Serial 將 Flow control 改為 None ,接著 OPEN 。設定好之後 在板子上按一次 reset。 接著在終端機摸擬軟體,就可以看到 目前板子已經成功連接無線網路 ,看到雲端回傳的 Endpoint name,就代表連接成功囉 !以上是這次的教學影片, 感謝您的收看 ,如果您想知道更多資訊, 歡迎聯絡我們。 - 更多產品資訊,請至新唐科技網站 https://bit.ly/3hVdcmC 購買管道:https://direct.nuvoton.com/tw/numaker-iot-m263a 聯絡我們: SalesSupport@nuvoton.com #application #learning #intermediate #zh-Hant
培訓  工具  學習  影片長度 - 5:29
Hello everyone, I am Morgan, the principal engineer of Nuvoton Technology. Today, I will show you how to use Wi-Fi with Mbed OS on NuMaker-IoT-M487 development board. First, open Chrome browser, enter the URL https://ide.mbed.com Please make sure that NuMaker-IoT-M487 board already selected in the upper right corner after you log in. If not, please refer Nuvoton IoT Tutorial series “Get Started with Mbed OS” which has a detailed description of how to add a board. Click the “New” on the upper left, a “Create new program” window will be displayed. You can see that the Platform has been set to NuMaker-IoT-M487. In the Template field, select the "NuMaker WiFi TCP Example" for this tutorial. Then click OK. Now you can see that the sample code has loaded on the page. Click on “mbed_app.json” to open it. In order to use Wi-Fi, you have to configure SSID and password to match your Wi-Fi access point setting. In the mbed_app.json file, the default Wi-Fi security set to WPA and WPA2 in “nsapi.default-wifi-security” field. Please modify the field “nsapi.default-wifi-ssid” to your Wi-Fi SSID Then modify “nsapi.default-wifi-password” to your Wi-Fi password. Click on “Compile” to build it. It is in compiling, please wait a moment. Then you can see the last message is “Success!” at the bottom of this page. The browser will download the binary firmware file directly after a successful compiling. It will be saved in a default download folder or the folder based on your browser setting. In Chrome, you can click download file and select “Show in folder”. Then we connect the NuMaker-IoT-M487 USB port to your computer and make sure the onboard LED lights up. Let’s back to the download folder where you can see the binary firmware file (NuMaker-mbed-wifi-tcp.NUMAKER_IOT_M487.bin). Drag and drop the file to NuMicro MCU drive. You will see the copying progress dialog box. Please find the virtual COM port assigned for NuMaker-IoT-M487 in Device Manager. In the demonstration, the “Nu-Link Virtual Com Port” is COMx. Then use your terminal tool. Here we use Putty. Open the COMx port with 115200 baud rate, 8 bits, 1 stop bit, none parity, and no flow control settings. Then “Open” it. Press Reset button on board to run again. You can see the connection messages printed on terminal. It shows the board’s IP address obtained from the Wi-Fi access point, sends a TCP/HTTP connection to server, and the result of return. That’s all for this tutorial. Thank you for watching. Welcome to subscribe to our channel. If you want to know more information, please contact us at SalesSupport@nuvoton.com - For more information, please visit Nuvoton Technology Website: https://bit.ly/3hVdcmC Buy now: https://direct.nuvoton.com/tw/numaker-iot-m487 Contact us: SalesSupport@nuvoton.com #Tool #Training #Learning #Intermediate #en
培訓  工具  學習  影片長度 - 6:47
以新唐 NuMaker-IoT-M487 為平台,使用 Mbed OS 進行開發,學習各種功能。觀看本片,您將學會使用 NuMaker-IoT-M487 開發板配合 Mbed OS 與 Pelion 的範例程式連接 Pelion。 哈囉大家好,我是新唐工程師 Miya,今天為大家介紹如何使用新唐 NuMaker IoT-M487 在 MbedOS 跟 Pelion 上連接雲端。 因為憑證下載需求,所以操作前請先準備好一張 Format 好的 MicoSD Card 待用。 打開 Chrome 瀏覽器輸入網址"https://cloud.mbed.com/quick-start" 需要先啟動免費帳號,點選中間上方”Activate your free access” 後,下一個頁面點 Log in 登入您的帳號密碼,Log in。 啟動後,選擇中間選項"Start the Connect Tutorial",系統會自動轉到這個頁面,往下拉選取 NuMaker-IoT-M487 (WiFi)。 選好後,點"Get started",系統將導入此頁面,點選 1.2,將 pelion-example-common example 加進線上編譯平台。 確認系統匯入 pelion-example-common 後,點 Import。 Load code 中,請稍待片刻。 先點選"pelion-example-common program.",接著在 Online compiler IDE 環境的 menu bar 上,到 Pelion Device Management 中下拉選取"Manage Connect Certificates"來建立 Pelion 憑證。 API Key 這邊按一下 OK。 點"Create",輸入您想存的連接憑證名字,之後按 OK。 點一下您建立的憑證,再按 OK,OK。 點 Pelion Device Management 選取"Apply Update Certificate."會出現 Update Certificates 視窗,按 Create,點"Download Private Key"。 接著先確認右上方板子已經有帶出”NuMaker-IoT-M487 及板子小圖示”了,如果沒有可參考教學影片”step by step 讓你了解如何運行 Mbed OS”,裡面有詳細的示範怎麼新增板子的方法! 由於要使用 Wi-Fi,所以需要將 SSID 及密碼改成可符合您連線環境的設定。 找到 mbed_app.json 裡面 SSID 設定"wifi-ssid",此版 sample code 在第 9 行,更改為您使用無線網路所設定的 SSID (我使用的是 nu),接著再找到"wifi-password"設定,此版在第 10 行裡的 Password 改成您無線網路連接設定的密碼,改好後存檔,Compile,現在 Compile 中,需要等待一下,完成後看到最下方會秀出"Success!"。 系統會把 compile 完成的 bin 檔放在 download 資料夾, 直接從下方進入,上拉後,點一下”Show in folder”。 接著需要先把 format 過的 Micro SD Card 插入卡槽,再將 NuMaker-IoT-M487 板子跟 PC 接上 USB,確認板子有亮燈就是通電了。 回到剛才的資料夾,可以看到多了一個剛才 compile 完成的 bin 檔,按右鍵傳送到 NuMicro MCU(E:) 這邊分配到哪一槽要看各位的電腦決定!有成功點選到的話會出現傳送過去的畫面。 接著到電腦的裝置管理員查看分配到的 port 編號,在本機按右鍵,選管理,找到裝置管理員,到連接埠(COM 和 LPT) 可以看到 USB 序列裝置,就知道這部 PC 分配給它的是 COM9。 接下來使用終端機模擬軟體,各位可以用自己熟悉的軟體操作即可,設定 Serial line 為 COM9, Speed 為 115200,到 Serial 將 Flow control 改為 None,接著 OPEN。 設定好之後,在板子上按一次 reset,接著在終端機摸擬軟體就可以看到目前板子已經成功連接無線網路,看到雲端回傳的 Endpoint name 就代表連接成功囉! 以上是這次的教學影片,感謝您的收看。歡迎訂閱我們的頻道。 如果您想知道更多資訊歡迎聯絡我們! - 更多產品資訊,請至新唐科技網站 https://bit.ly/3hVdcmC 購買管道:https://direct.nuvoton.com/tw/numaker-iot-m487 聯絡我們: SalesSupport@nuvoton.com #Tool #Training #Learning #Intermediate #zh-Hant
影片長度 - 10:56
NuMicro® Family ARM Cortex™ -M0 32位MCU NUC100 Series I2C