项目作者: twopoint718

项目描述 :
Source code for programming the "hawk" dev board
高级语言: C
项目地址: git://github.com/twopoint718/hello-cortex-m0.git
创建时间: 2019-09-26T03:33:48Z
项目社区:https://github.com/twopoint718/hello-cortex-m0

开源协议:

下载


hello-cortex-m0

Source code for programming the hawk dev board.

This is a small breakout board with 4-6V voltage regulator (so you can power it using a wider range of voltages), an on-board LED, and… well that’s about it.
It’s based on a Microchip ATSAMD10C14A microcontroller.
This is an Arm Cortex-M0 in a 14-pin SOIC package.

Setup, Requirements, and Building

  1. Install the ARM GCC compiler and associated toolchain directly from Arm’s Developer page:
    GNU Arm Embedded Toolchain
    This is a cross compiler that runs on your desktop platform, but produces executables for a target.
    In this case of this compiler, Arm Cortex-M/R series.
  2. You should have at least the following programs in your PATH:
    • arm-none-eabi-gcc (compiler)
    • arm-none-eabi-ld (linker)
    • arm-none-eabi-as (assembler)
    • arm-none-eabi-objcopy (object-copier 😜)
  3. Compile and create a hex file using make:

    1. make
  4. Install the J-Link Software and Documentation Pack
  5. Upload the code to the dev board using the J-Link (or another debug probe).
    If using a J-Link, you can use the provided script, upload_firmware.sh, to upload the firmware:

    1. make flash
  6. ℹ️ Optional: You may also start the JLinkGDBServer, which came with the J-Link download.
    You may then connect to the board and do all the usual debugging things that you are used to.
    How exactly this is set up will vary a lot by editor & environment.