本帖最后由 minDragon 于 2016-8-3 20:01 编辑
*非常荣幸收到来自21ic寄发的Nuleo STM32L432KC, 最新Nucleo 32系列的低功耗的L4样品。废话不多说,先上个靓照。(i5s的像素有点渣,将就一下)
-->ST一如既往的包装风格。
-->这是正面图,卡片还有IO的定义,非常贴心,哪里不会看哪里。
-->这是底面图,整个板子非常地简洁小巧可爱有没有。
*我们先来看看板子的特性:
STM32 microcontrollers in 32-pin packages
Extension with Arduino™ nano connectivity
ARM® mbed™-enabled (see http://mbed.org)
On-board ST-LINK/V2-1debugger/programmer with SWD connector:
– Selection-mode switch to use the kit asa standalone ST-LINK/V2-1
– USB re-enumeration capability. Threedifferent interfaces supported on USB:virtual COM port, mass storage, debugport
Flexible board power supply:
– USB VBUS– External source
Three LEDs:– USB communication (LD1), power LED(LD2), user LED (LD3)
Reset push-button
Supported by wide choice of IntegratedDevelopment Environments (IDEs) includingIAR™, Keil®, GCC-b
再来看下STM32L432KC这款低功耗芯片的主要特性:
- Ultra-low-power with FlexPowerControl
- 1.71 V to 3.6 V power supply
- -40 °C to 85/105/125 °C temperature range
- 8 nA Shutdown mode (2 wakeup pins)
- 28 nA Standby mode (2 wakeup pins)
- 280 nA Standby mode with RTC
- 1.0 μA Stop 2 mode, 1.28 μA Stop 2 with RTC
- 84 μA/MHz run mode
- Batch acquisition mode (BAM)
- 4 μs wakeup from Stop mode
- Brown out reset (BOR) in all modes except shutdown
- Interconnect matrix
- Core: ARM® 32-bit Cortex®-M4 CPU with FPU, Adaptive real-time accelerator (ART Accelerator™) allowing 0-wait-state execution from Flash memory, frequency up to 80 MHz, MPU, 100DMIPS/1.25DMIPS/MHz (Dhrystone 2.1), and DSP instructions
- Performance Benchmark
- 1.25 DMIPS/MHz (Drystone 2.1)
- 273.55 Coremark® (3.42 Coremark/MHz @ 80 MHz)
- Energy Benchmark
- Clock Sources
- 32 kHz crystal oscillator for RTC (LSE)
- Internal 16 MHz factory-trimmed RC (±1%)
- Internal low-power 32 kHz RC (±5%)
- Internal multispeed 100 kHz to 48 MHz oscillator, auto-trimmed by LSE (better than ±0.25 % accuracy)
- Internal 48 MHz with clock recovery
- 2 PLLs for system clock, USB, audio, ADC
- RTC with HW calendar, alarms and calibration
- Up to 3 capacitive sensing channels
- 11x timers: 1x 16-bit advanced motor-control, 1x 32-bit and 2x 16-bit general purpose, 2x 16-bit basic, 2x low-power 16-bit timers (available in Stop mode), 2x watchdogs, SysTick timer
- Up to 26 fast I/Os, most 5 V-tolerant
- Memories
- Up to 256 KB single bank Flash, proprietary code readout protection
- 64 KB of SRAM including 16 KB with hardware parity check
- Quad SPI memory interface
- Rich analog peripherals (independent supply)
- 1× 12-bit ADC 5 Msps, up to 16-bit with hardware oversampling, 200 μA/Msps
- 2x 12-bit DAC, low-power sample and hold
- 1x operational amplifier with built-in PGA
- 2x ultra-low-power comparators
- 13x communication interfaces
- USB 2.0 full-speed crystal less solution with LPM and BCD
- 1x SAI (serial audio interface)
- 2x I2C FM+(1 Mbit/s), SMBus/PMBus
- 3x USARTs (ISO 7816, LIN, IrDA, modem)
- 2x SPIs (3x SPIs with the Quad SPI)
- CAN (2.0B Active)
- SWPMI single wire protocol master I/F
- IRTIM (Infrared interface)
- 14-channel DMA controller
- True random number generator
- CRC calculation unit, 96-bit unique ID
- Development support: serial wire debug (SWD), JTAG, Embedded Trace Macrocell™
-
- 由于我对低功耗并不是特别了解,这里就不作这款芯片与其他低功耗的MCU进行对比论述。
-->上电前讲D2与相邻的GND通过短路帽相连,当与PC相连时可以看到LD1(USB communication)与LED2( power LED) 常亮红色,LED3(user LED)常闪烁绿色。
-->电脑可以看到可移动设备弹出,因为我的电脑没有装过ST-link的驱动,所以这里还得装下ST-link的驱动,为了后面的下载调试。
ST-link的驱动可以在ST官网下载http://www.st.com/content/st_com/en/products/embedded-software/development-tool-software/stsw-link009.html
但不知道为何,我从ST官网下载的这个驱动
我的win7-64bit 系统竟然安装不了!!!这个到是让我特别郁闷。。
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
今天在公司连接到xp系统,官网的 STSW-LINK009 驱动包可以安装,但仍然出现如下问题,这不清楚是这个安装包的问题还是我测试的两个系统有点问题。
在群友的提示下,下载了并安装了STVP工具:http://www.st.com/content/st_com/zh/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-programmers/stvp-stm32.html?dl=qpZrYwNzqQrmjPRKha0MMA%3D%3D%2CRGKCNJh%2FUvEnmj2%2BZdKBroeb5Qy%2BsgelH4JQt0l813F81ori1wFPh8whxVo%2FYyKO
如果出现和我一样的情况,可以尝试这个方法。
-->安装
-->重新和评估板相连,选择自动安装,安装完成提示要求重启,重启完成后可能还会出现下图提示,继续自动安装,
-->完成,可以使用了,昨晚郁闷了一晚上的事情总算解决了,但现在郁闷的是为什么那个STSW-LINK009 驱动包为什么不行还有待研究。
*来下载编译下载例程试试看
-->在ST官网下载相应的例程:http://www.st.com/content/st_com/zh/products/evaluation-tools/product-evaluation-tools/mcu-eval-tools/stm32-mcu-eval-tools/stm32-mcu-nucleo/nucleo-l432kc.html
当然,因为这是ST的新品,大家熟悉的keil也要使用到MDK5版本:
http://www.keil.com/dd2/Pack/#/eula-container
这里附上的是MDK的各种 sooftware pack,找到STML4系列的并下载安装。
-->试试ADC的例程,找到ADC_DMA_Transfer文件夹,打开工程并编译:
-->点击仿真,全速运行,LED1红绿交替闪烁。
*当然这款STM32L432KC同时可支持多种IDE,前面有的特性有提到,结合ST的STM32CubeMX, 加上大家所为熟悉的MDK或者其他IDE环境,相信会使开发者大大缩短开发周期,我这里就不一一演示。
*从外观上小巧,性能上强大,从特性也能看出功耗确实很低,有兴趣的朋友可以作更详细深入的测试研究。
*第一次发评测帖子,说得不妥的地方望大家指正。
-->关于STM32L432KC的资料均可以在此链接找到:
http://www.st.com/content/st_com/en/products/evaluation-tools/product-evaluation-tools/mcu-eval-tools/stm32-mcu-eval-tools/stm32-mcu-nucleo/nucleo-l432kc.html
|