README.md 3.4 KB
Newer Older
Thomas_Fly's avatar
Thomas_Fly 已提交
1
# Maxim-MAX32660- EVSYS说明
Thomas_Fly's avatar
Thomas_Fly 已提交
2 3 4

## 简介

Thomas_Fly's avatar
Thomas_Fly 已提交
5 6 7 8 9 10 11 12 13 14
该文件夹主要存放所有主芯片为MAX32660的板级支持包。开发板上面的主芯片是[MAX32660](https://www.maximintegrated.com/en/products/microcontrollers/MAX32660.html)

芯片Datasheet: [MAX32660_datasheet](https://datasheets.maximintegrated.com/en/ds/MAX32660.pdf)

芯片User Guide:[MAX32660_UserGuide](https://pdfserv.maximintegrated.com/en/an/AN6659.pdf)

开发板介绍页面:  [MAX32660-EVSYS](https://www.maximintegrated.com/en/products/microcontrollers/MAX32660-EVSYS.html)

开发板datasheet: [MAX32660-EVSYS.pdf)](https://datasheets.maximintegrated.com/en/ds/MAX32660-EVSYS.pdf)

Thomas_Fly's avatar
Thomas_Fly 已提交
15
支持IDE: [keil pack](http://www.mxim.net/microcontroller/pack/Maxim.MAX32660.1.2.0.pack)[eclipse](https://www.maximintegrated.com/en/design/software-description.html/swpart=SFW0001500A)
Thomas_Fly's avatar
Thomas_Fly 已提交
16

Thomas_Fly's avatar
Thomas_Fly 已提交
17 18 19 20
本文主要内容如下:

- 开发板资源介绍

Thomas_Fly's avatar
Thomas_Fly 已提交
21
## MAX32660芯片介绍
Thomas_Fly's avatar
Thomas_Fly 已提交
22

Thomas_Fly's avatar
Thomas_Fly 已提交
23
- RAM  96KB    0x20000000~0x20018000
Thomas_Fly's avatar
Thomas_Fly 已提交
24

Thomas_Fly's avatar
Thomas_Fly 已提交
25
- ROM  256KB   0x0 ~ 0x40000
Thomas_Fly's avatar
Thomas_Fly 已提交
26

Thomas_Fly's avatar
Thomas_Fly 已提交
27
- 16KB I-cache
Thomas_Fly's avatar
Thomas_Fly 已提交
28

Thomas_Fly's avatar
Thomas_Fly 已提交
29
- UART 2个  UART0  UART1
Thomas_Fly's avatar
Thomas_Fly 已提交
30

Thomas_Fly's avatar
Thomas_Fly 已提交
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
- GPIO  14个

- I2C  2个 Master/Slave 高速3.4Mbps

- ARM Cortex-M4F, 96MHz

- MPU

- SPI 2个  Master/Slave 

- I2S  Master/Slave

- 4 channel DMA

- 3个 32bit  Timer
Thomas_Fly's avatar
Thomas_Fly 已提交
46

Thomas_Fly's avatar
Thomas_Fly 已提交
47
- Watchdog 
Thomas_Fly's avatar
Thomas_Fly 已提交
48

Thomas_Fly's avatar
Thomas_Fly 已提交
49
- RTC
Thomas_Fly's avatar
Thomas_Fly 已提交
50

Thomas_Fly's avatar
Thomas_Fly 已提交
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
  

## 开发板介绍

MAX32660-EVSYS是美信官方的开发板,搭载MAX32660芯片,基于ARM Cortex-M4F内核,最高主频96MHz,具有丰富的外设资源,内核带有FPU。

开发板外观如下图所示

![](doc/images/board.jpg)

MAX32660-EVSYS开发板常用 **板载资源** 如下:

- MCU:MAX32660
- 板载设
  - LED:1个,GPIO P0_13 ,高电平点亮,低电平灭 。
  - 按键:1个,GPIO P0_12,   按下低电平,松开高电平。
- 调试接口:板载CMSIS-DAP调试器。
Thomas_Fly's avatar
Thomas_Fly 已提交
68 69 70 71 72

## 外设支持

本 BSP 目前对外设的支持情况如下:

Thomas_Fly's avatar
Thomas_Fly 已提交
73 74
| **片上外设** | **支持情况** |       **备注**        |
| :----------- | :----------: | :-------------------: |
Thomas_Fly's avatar
Thomas_Fly 已提交
75
| GPIO         |     支持     |                       |
Thomas_Fly's avatar
Thomas_Fly 已提交
76 77
| UART         |     支持     | UART0, UART1(console) |
| PWM          |              |                       |
Thomas_Fly's avatar
Thomas_Fly 已提交
78
| SPI          |     支持     |      SPI0, SPI1       |
Thomas_Fly's avatar
Thomas_Fly 已提交
79 80
| RTC          |              |                       |
| I2S          |              |                       |
J
jackis 已提交
81
| I2C          |     支持     |      I2C0, I2C1       |
Thomas_Fly's avatar
Thomas_Fly 已提交
82 83
| TIMER        |              |                       |
| Watchdog     |              |                       |
Thomas_Fly's avatar
Thomas_Fly 已提交
84 85 86 87 88



### 进阶使用

Thomas_Fly's avatar
Thomas_Fly 已提交
89
此 BSP 默认只开启了串口 的功能,更多高级功能需要利用 env 工具对 BSP 进行配置,步骤如下:
Thomas_Fly's avatar
Thomas_Fly 已提交
90 91 92 93 94

1. 在 bsp 下打开 env 工具。

2. 输入`menuconfig`命令配置工程,配置好之后保存退出。

95
4. 输入`scons --target=mdk5/vsc命令重新生成工程。
Thomas_Fly's avatar
Thomas_Fly 已提交
96 97 98

## 注意事项

99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
目前支持keil和GCC环境



## FAQ

###  GCC环境如何调试使用

第一步,需要配置arm-none-eabi-gcc路径到系統环境变量中去或者在rtconfig.py中EXEC_PATH  修改路径

第二步,添加openocd的路径,如果你安装了eclipse,添加以下路径到系统环境变量中

`C:\Maxim\Toolchain\bin`

完成这两部就可以用vscode打开bsp目录了。

快捷键ctrl+shift+b可以执行scons编译命令

快捷键F5可以进入调试命令

如果需要调试之前执行build命令,在luanch.json里面打开注释

```
            //"preLaunchTask": "build"
```




Thomas_Fly's avatar
Thomas_Fly 已提交
128

Thomas_Fly's avatar
Thomas_Fly 已提交
129 130 131 132 133
## 联系人信息

维护人:

-  [supperthomas], 邮箱:<78900636@qq.com>