• 大小: 140KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-06-15
  • 语言: 其他
  • 标签: uECC.h  micro_ecc_li  

资源简介

Nordic 52832 dfu 升级 keil编译 缺少的uECC.h和micro_ecc_lib_nrf52.lib相关文件。将micro-ecc拷入nRF5_SDK_14.2.0_17b948a\external\micro-ecc,然后将micro_ecc_lib_nrf52.lib复制到nRF5_SDK_14.2.0_17b948a\external\micro-ecc\nrf52hf_keil\armgcc和nRF5_SDK_14.2.0_17b948a\external\micro-ecc\nrf52nf_keil\armgcc文件下即可。重新编译文件nRF5_SDK_14.2.0_17b948a\examples\dfu\bootloader_secure_serial\pca10040\s132\arm5_no_packs。

资源截图

代码片段和文件信息

import os

c link asm utils = emk.module(“c“ “link“ “asm“ “utils“)

default_compile_flags = [“-fvisibility=hidden“ “-Wall“ “-Wextra“ “-Wshadow“ “-Werror“ “-Wno-missing-field-initializers“ “-Wno-unused-parameter“ \
    “-Wno-comment“ “-Wno-unused“ “-Wno-unknown-pragmas“]
default_link_flags = []
opt_flags = {“dbg“:[“-g“] “std“:[“-O2“] “max“:[“-O3“] “small“:[“-Os“]}
opt_link_flags = {“dbg“:[] “std“:[] “max“:[] “small“:[]}
c_flags = [“-std=c99“]
cxx_flags = [“-std=c++11“ “-Wno-reorder“ “-fno-rtti“ “-fno-exceptions“]
c_link_flags = []
cxx_link_flags = [“-fno-rtti“ “-fno-exceptions“]

def setup_build_dir():
    build_arch = None
    if “arch“ in emk.options:
        build_arch = emk.options[“arch“]
    elif not emk.cleaning:
        build_arch = “osx“
    emk.options[“arch“] = build_arch

    opt_level = None
    if “opt“ in emk.options:
        level = emk.options[“opt“]
        if level in opt_flags:
            opt_level = level
        else:
            emk.log.warning(“Unknown optimization level ‘%s‘“ % (level))
    elif not emk.cleaning:
        opt_level = “dbg“
    emk.options[“opt“] = opt_level

    dirs = [“__build__“]
    if build_arch:
        dirs.append(build_arch)
    if opt_level:
        dirs.append(opt_level)
    emk.build_dir = os.path.join(*dirs)

def setup_osx():
    global c
    global link

    flags = [(“-arch“ “x86_64“) “-fno-common“ “-Wnewline-eof“]
    c.flags.extend(flags)
    c.cxx.flags += [“-stdlib=libc++“]
    link.cxx.flags += [“-stdlib=libc++“]

    link_flags = [(“-arch“ “x86_64“)]
    link.local_flags.extend(link_flags)

def setup_avr():
    global c
    global link

    c.compiler = c.GccCompiler(“/Projects/avr-tools/bin/avr-“)
    c.flags += [“-mmcu=atmega256rfr2“ “-ffunction-sections“ “-fdata-sections“]
    link.linker = link.Gcclinker(“/Projects/avr-tools/bin/avr-“)
    link.flags += [“-mmcu=atmega256rfr2“ “-mrelax“ “-Wl--gc-sections“]
    link.strip = True

def setup_arm_thumb():
    global c
    global link
    global asm
    global utils

    asm.assembler = asm.GccAssembler(“/cross/arm_cortex/bin/arm-none-eabi-“)
    c.compiler = c.GccCompiler(“/cross/arm_cortex/bin/arm-none-eabi-“)
    link.linker = link.Gcclinker(“/cross/arm_cortex/bin/arm-none-eabi-“)

    c.flags.extend([“-mcpu=cortex-m0“ “-mthumb“ “-ffunction-sections“ “-fdata-sections“ “-fno-builtin-fprintf“ “-fno-builtin-printf“])
    c.defines[“LPC11XX“] = 1
    
    link.local_flags.extend([“-mcpu=cortex-m0“ “-mthumb“ “-nostartfiles“ “-nostdlib“ “-Wl--gc-sections“])
    link.local_flags.extend([“-Tflash.lds“ “-L/Projects/lpc11xx/core“ “/Projects/lpc11xx/core/“ + emk.build_dir + “/board_cstartup.o“])
    link.local_syslibs += [“gcc“]
    link.depdirs += [“/Projects/lpc11xx/stdlib“]

    def do_objcopy(produces requires):
        utils.call(“/cross/arm_cortex/bin/arm-none-eabi-objcopy“ “-O“ “binary“ requires[0] produces[0])

    def handle_exe(path):
        emk.depend(path “/Projects/lpc11xx/core/“ +

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-12-13 10:42  micro-ecc\
     文件          68  2017-06-20 09:52  micro-ecc\.gitignore
     文件       29100  2017-06-20 09:52  micro-ecc\asm_arm.inc
     文件       99386  2017-06-20 09:52  micro-ecc\asm_arm_mult_square.inc
     文件       51666  2017-06-20 09:52  micro-ecc\asm_arm_mult_square_umaal.inc
     文件       32314  2017-06-20 09:52  micro-ecc\asm_avr.inc
     文件      930168  2017-06-20 09:52  micro-ecc\asm_avr_mult_square.inc
     文件       50986  2017-06-20 09:52  micro-ecc\curve-specific.inc
     文件        4375  2017-06-20 09:52  micro-ecc\emk_project.py
     文件          54  2017-06-20 09:52  micro-ecc\emk_rules.py
     目录           0  2018-12-13 10:42  micro-ecc\examples\
     目录           0  2018-12-13 10:42  micro-ecc\examples\ecc_test\
     文件        2084  2017-06-20 09:52  micro-ecc\examples\ecc_test\ecc_test.ino
     文件         262  2017-06-20 09:52  micro-ecc\library.properties
     文件        1300  2017-06-20 09:52  micro-ecc\LICENSE.txt
     文件      157390  2018-12-13 10:12  micro-ecc\micro_ecc_lib_nrf52.lib
     文件        1784  2017-06-20 09:52  micro-ecc\platform-specific.inc
     文件        2511  2017-06-20 09:52  micro-ecc\README.md
     目录           0  2018-12-13 10:42  micro-ecc\scripts\
     文件        6518  2017-06-20 09:52  micro-ecc\scripts\mult_arm.py
     文件        5921  2017-06-20 09:52  micro-ecc\scripts\mult_avr.py
     文件        3325  2017-06-20 09:52  micro-ecc\scripts\mult_avr_extra.py
     文件        7075  2017-06-20 09:52  micro-ecc\scripts\square_arm.py
     文件        9357  2017-06-20 09:52  micro-ecc\scripts\square_avr.py
     目录           0  2018-12-13 10:42  micro-ecc\test\
     文件          69  2017-06-20 09:52  micro-ecc\test\emk_rules.py
     文件        2371  2017-06-20 09:52  micro-ecc\test\test_compress.c
     文件        2351  2017-06-20 09:52  micro-ecc\test\test_compute.c
     文件        2623  2017-06-20 09:52  micro-ecc\test\test_ecdh.c
     文件        1528  2017-06-20 09:52  micro-ecc\test\test_ecdsa.c
     文件        2669  2017-06-20 09:52  micro-ecc\test\test_ecdsa_deterministic.c.example
............此处省略4个文件信息

评论

共有 条评论