发 帖  
原厂入驻New

[经验] 新唐ARM mbed平台

2019-9-18 09:05:16  152 ARM 物联网
分享
0
ARM® mbed™ 物联网设备平台基于ARM微处理器,能够最短的时间创建支持商用与互操作的互联物联网设备,同时跨细分市场的节点与云服务之间的互操作性可最大限度发挥物联网的潜力。

1.新唐ARM® mbed™ 平台页面
  • https://developer.mbed.org/platforms/nuvoton-M453/
  • https://developer.mbed.org/platforms/NUVoton-NUC472/


2.新唐ARM® mbed™ 特色
  • 微控制器以Cortex®-M4为核心
  • Flash/SRAM: M453 256KB/32KB,NUC472 512KB/1MB
  • 支持Arduino接脚
  • 支持CAN、rs485、USB.NUC472支持Ethernet
  • 提供三轴加速度计与三轴陀螺仪
  • 以扩充板支持Wi-Fi,Bluetooth,802.15.4,Thread等.




3.NuMaker-PFM-NUC472 Components
  • Main Chip: NUC472JI8AE
  • Core
  • Arm® Cortex®-M4F core running up to 84 MHz
  • Supports DSP extension and FPU
  • Memory
  • 512 Kbytes Flash memory
  • 64 Kbytes embedded SRAM
  • Peripherals
  • SPI (x4), I2C (x5), I2S (x2), UART (x6)
  • PWM (x16), GPIO (x114), CAN (x2)
  • USB OTG / Host / Device
  • Smart Card (x6), SDIO, Ethernet MAC, Crypto
  • ADC (2x16-ch), OP (x2), Comparator (x3)
  • Others
  • Nu-Link-Me ICE bridge
  • 1 Mbytes SRAM
  • 3-axis Accelerometer and Gyroscope (MPU6500)
  • audio Codec (NAU8822LYG)
  • RS232, RS485, CAN Transceivers
  • Ethernet
  • microsd Card socket
  • Buttons (x2)
  • Buzzer
  • RGB LED, Battery



4.NuMaker-PFM-NUC472 Pin-out

5.程序示例
Example: SD File System
•Access file system backed by SD card in SD bus mode
•Follow file system/block device introduced with Mbed OS 5.4
-NuMaker-mbed-SD-FileSystem-example (new)
-NuMaker-mbed-SDFileSystem-example (deprecated)


•Support target
-NuMaker-PFM-NUC472
-NuMaker-PFM-M453
•New program à Choose Template “NuMaker SD-File-System with SD mode”


Example: SD File System

// SD block device

NuSDBlockDevice bd;

// FAT file system mounted on path “/fs”

FATFileSystem fs("fs");
int main() {

  // Optional: Format SD card to FAT file system

  FATFileSystem::format(&bd);

  // Mount the SD card on “/fs” path

  fs.mount(&bd);

  // Open “/fs/test.txt” for write

  FILE* fd = fopen("/fs/test.txt", "w");

  // Write to “/fs/test.txt”

  fprintf(fd, “Hello file system\n");

  // Close “/fs/test.txt”

  fclose(fd);

  ... ...

相关经验

只有小组成员才能发言,加入小组>>

8个成员聚集在这个小组

加入小组

创建小组步骤

关闭

站长推荐 上一条 /10 下一条

快速回复 返回顶部 返回列表