【window下配置Maxim SDK环境】

简介: 【window下配置Maxim SDK环境】

1. 前言

MAX78000FTHR为快速开发平台,帮助工程师利用MAX78000 Arm® Cortex® M4F处理器快速实施超低功耗、人工智能(AI)方案,器件集成卷积神经网络加速器。本文为MAX78000羽毛板搭建window开发环境。


下图为板载资源

1.png

具体硬件介绍见

2. Maxim SDK下载

🥳🥳🥳温馨提示:接下来需要安全上网,否则一定会失败哟!


官网地址:https://www.maximintegrated.com/en/design/software-description.html/swpart=SFW0010820A


2.png

3. Maxim SDK安装

3.1 安装详解

下载完成后,双击安装

3.png

看到上面的提示点击下一步

4.png

此过程需要远程连接maxin官网,一定要安全上网

5.png

修改安装位置,下一步

6.png

勾选VS code支持,只选择MAX7800,下一步

7.png

接受许可,下一步

8.png

默认下一步

9.png

需要4.43GB,点击安装


10.png

3.2 安装完成

11.png

在搜索栏中找到这全家桶,


  • Eclipse就是🎏调试编译下载🎏全覆盖的UI编程软件;
  • Maxim就是🎏辅助下载🎏的软件;
  • MinGW就是命令行方式的🎏编译下载🎏的软件;

4. 测试环境

4.1 新建Hello word demo


12.png

点击Eclipse,这个是检查更新,不急

13.png

新建一个demo,file>new>Project

14.png

选择Maxim Microcontrollers,下一步

15.png

配置默认工作位置,首先helloworld吧,下一步

16.png

按照我的配置就好,finish

17.png

打开Helloword demo如下

main.c

/******************************************************************************
 * Copyright (C) 2022 Maxim Integrated Products, Inc., All Rights Reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included
 * in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES
 * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 *
 * Except as contained in this notice, the name of Maxim Integrated
 * Products, Inc. shall not be used except as stated in the Maxim Integrated
 * Products, Inc. Branding Policy.
 *
 * The mere transfer of this software does not imply any licenses
 * of trade secrets, proprietary technology, copyrights, patents,
 * trademarks, maskwork rights, or any other form of intellectual
 * property whatsoever. Maxim Integrated Products, Inc. retains all
 * ownership rights.
 *
 ******************************************************************************/
/**
 * @file    main.c
 * @brief   Hello World!
 * @details This example uses the UART to print to a terminal and flashes an LED.
 */
/***** Includes *****/
#include <stdio.h>
#include <stdint.h>
#include "mxc_device.h"
#include "led.h"
#include "board.h"
#include "mxc_delay.h"
/***** Definitions *****/
/***** Globals *****/
/***** Functions *****/
// *****************************************************************************
int main(void)
{
    int count = 0;
    printf("Hello World!\n");
    while (1) {
        LED_On(LED1);
        MXC_Delay(500000);
        LED_Off(LED1);
        MXC_Delay(500000);
        printf("count : %d\n", count++);
    }
}

18.png



大家插入系统demo可以看看readme.md,分别实验验证

19.png

4.2 编译调试下载

将Maxim通过安卓数据线连接到电脑上

连接正常会出现DAPLINK 的U盘,如下查看

21.png

如果故障了,可参照官网刷固件还原!


4.2.1 clean

鼠标右键项目,点击clean project,清除原有编译结果(clean)


22.png

显示清除成功


23.png

4.2.2 build

鼠标右键项目,点击build project,编译项目(build)

24.png

呼吸灯,打印Hello World!程序,生成elf为编译成功

25.png

4.2.3 Openocd

现在下载程序,采用Openocd


鼠标右键项目,点击Debug as,选择Debug configurations(Debug)

26.png

选择GDB Openocd Debugging下的Helloworld,点击Debug就开始下载程序啦!

27.png

打印如下,就下载成功啦!



Open On-Chip Debugger 0.11.0+dev-g56a818e4c (2022-11-16-05:46)
Licensed under GNU GPL v2
For bug reports, read
  http://openocd.org/doc/doxygen/bugs.html
DEPRECATED! use 'adapter driver' not 'interface'
Started by GNU MCU Eclipse
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : CMSIS-DAP: SWD  supported
Info : CMSIS-DAP: Atomic commands supported
Info : CMSIS-DAP: FW Version = 0254
Info : CMSIS-DAP: Serial# = 04440001405d035900000000000000000000000097969906
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : clock speed 2000 kHz
Info : SWD DPIDR 0x2ba01477
Info : max32xxx.cpu: Cortex-M4 r0p1 processor detected
Info : max32xxx.cpu: target has 6 breakpoints, 4 watchpoints
Info : max32xxx.cpu: external reset detected
Info : starting gdb server for max32xxx.cpu on 3333
Info : Listening on port 3333 for gdb connections
Info : accepting 'gdb' connection on tcp/3333
target halted due to debug-request, current mode: Thread 
xPSR: 0x21030000 pc: 0x10002524 msp: 0x2001ffc0
Warn : Prefer GDB command "target extended-remote :3333" instead of "target remote :3333"
Info : SWD DPIDR 0x2ba01477
target halted due to debug-request, current mode: Thread 
xPSR: 0x81000000 pc: 0x00002124 msp: 0x20003ff0
Info : SWD DPIDR 0x2ba01477
target halted due to debug-request, current mode: Thread 
xPSR: 0x81000000 pc: 0x00002124 msp: 0x20003ff0
Info : Padding image section 0 at 0x10008b04 with 12 bytes
Info : SWD DPIDR 0x2ba01477
target halted due to debug-request, current mode: Thread 
xPSR: 0x81000000 pc: 0x00002124 msp: 0x20003ff0
===== arm v7m registers
(0) r0 (/32): 0x10000000
(1) r1 (/32): 0xe000ed08
(2) r2 (/32): 0x00000001
(3) r3 (/32): 0x40000000
(4) r4 (/32): 0x00000000
(5) r5 (/32): 0x00000000
(6) r6 (/32): 0x00000000
(7) r7 (/32): 0x00000000
(8) r8 (/32): 0x00000000
(9) r9 (/32): 0x00000000
(10) r10 (/32): 0x00000000
(11) r11 (/32): 0x00000000
(12) r12 (/32): 0x20003fc8
(13) sp (/32): 0x20003ff0
(14) lr (/32): 0x0000211d
(15) pc (/32): 0x100004b4 (dirty)
(16) xPSR (/32): 0x81000000
(17) msp (/32): 0x20003ff0
(18) psp (/32): 0x00000000
(20) primask (/1): 0x00
(21) basepri (/8): 0x00
(22) faultmask (/1): 0x00
(23) control (/3): 0x00
(42) d0 (/64): 0x0000000000000000
(43) d1 (/64): 0x0000000000000000
(44) d2 (/64): 0x0000000000000000
(45) d3 (/64): 0x0000000000000000
(46) d4 (/64): 0x0000000000000000
(47) d5 (/64): 0x0000000000000000
(48) d6 (/64): 0x0000000000000000
(49) d7 (/64): 0x0000000000000000
(50) d8 (/64): 0x0000000000000000
(51) d9 (/64): 0x0000000000000000
(52) d10 (/64): 0x0000000000000000
(53) d11 (/64): 0x0000000000000000
(54) d12 (/64): 0x0000000000000000
(55) d13 (/64): 0x0000000000000000
(56) d14 (/64): 0x0000000000000000
(57) d15 (/64): 0x0000000000000000
(58) fpscr (/32): 0x00000000
===== Cortex-M DWT registers



5. 实验效果

此时板载绿灯一直闪烁,


复位或者F8开始运行程序

29.png30.jpeg


打开串口调试助手,我用的Serial studio,设置好115200波特率,选择端口连接,调试如下

31.png

6.小结

通过对这篇文章我们掌握了window下配置Maxim SDK环境,接下来会有许多有趣的实验,尝试与Arduino通讯做语音小车,进而丰富我们的生活。🛹🛹🛹从而实现对外部世界进行感知,充分认识这个有机与无机的环境,科学地合理地进行创作和发挥效益,然后为人类社会发展贡献一点微薄之力。🤣🤣🤣

目录
相关文章
|
1月前
|
Java 应用服务中间件 开发工具
如何使用支付宝沙箱环境支付并公网调用sdk创建支付单服务
如何使用支付宝沙箱环境支付并公网调用sdk创建支付单服务
|
6月前
|
监控 Java 开发工具
基于Eclipse+SDK+ADT+DDMS的安卓开发环境完整搭建过程
基于Eclipse+SDK+ADT+DDMS的安卓开发环境完整搭建过程
50 0
基于Eclipse+SDK+ADT+DDMS的安卓开发环境完整搭建过程
|
1月前
|
JSON JavaScript 前端开发
全面的.NET微信网页开发之JS-SDK使用步骤、配置信息和接口请求签名生成详解
全面的.NET微信网页开发之JS-SDK使用步骤、配置信息和接口请求签名生成详解
|
10月前
|
Java 开发工具 Android开发
Android Studio (Android SDK) 配置与使用
Android Studio (Android SDK) 配置与使用
1424 0
|
11月前
|
API PHP 开发工具
漏刻有时API接口实战开发系列(11):腾讯云短信3.0sms开发SDK环境部署及配置的实战总结
漏刻有时API接口实战开发系列(11):腾讯云短信3.0sms开发SDK环境部署及配置的实战总结
208 0
|
11月前
|
API 开发工具 Android开发
Android(二) 基于 eclipse 的 Android配置 安装SDK ADT
Android(二) 基于 eclipse 的 Android配置 安装SDK ADT
276 0
|
11月前
|
算法 开发工具 Android开发
Android Proguard不混淆所有SDK(忽略配置设置)
Android Proguard不混淆所有SDK(忽略配置设置)
224 0
|
开发工具 Android开发
Appium 移动端自动化 - Android SDK的安装与配置,使用安卓SDK连接手机实例演示
Appium 移动端自动化 - Android SDK的安装与配置,使用安卓SDK连接手机实例演示
148 0
|
1月前
|
JavaScript Java Maven
云效产品使用常见问题之android sdk 构建出aar后,上传到私有maven仓库失败如何解决
云效作为一款全面覆盖研发全生命周期管理的云端效能平台,致力于帮助企业实现高效协同、敏捷研发和持续交付。本合集收集整理了用户在使用云效过程中遇到的常见问题,问题涉及项目创建与管理、需求规划与迭代、代码托管与版本控制、自动化测试、持续集成与发布等方面。
|
8月前
|
API 开发工具 Android开发
解决 Android App 上架 Google play后 ,签名变更,第三方sdk无法登录
解决 Android App 上架 Google play后 ,签名变更,第三方sdk无法登录
180 0