• 大小: 0.46M
    文件类型: .zip
    金币: 2
    下载: 3 次
    发布日期: 2021-02-22
  • 语言: C/C++
  • 标签: STM32  STM3  boot  can  AD  

资源简介


资源截图

代码片段和文件信息

import tkinter as tk
import serial
import binascii
import time
import sys
import serial.tools.list_ports
import tkinter.filedialog
from tkinter import messagebox ttk

PAD_X = 2
PAD_Y = 2

PAGE_SIZE = 1024
CAN_ID = 0x78E

CRC_TABLE = (0x00000000 0x04C11DB7 0x09823B6E 0x0D4326D9
             0x130476DC 0x17C56B6B 0x1A864DB2 0x1E475005
             0x2608EDB8 0x22C9F00F 0x2F8AD6D6 0x2B4BCB61
             0x350C9B64 0x31CD86D3 0x3C8EA00A 0x384FBDBD)

def dword(value):
    return value & 0xFFFFFFFF

def crc32_fast(crc data):
    crc data = dword(crc) dword(data)
    crc ^= data
    for _ in range(8):
        crc = dword(crc << 4) ^ CRC_TABLE[crc >> 28]
    return crc

def crc32_fast_block(crc buffer):
    for data in buffer:
        crc = crc32_fast(crc data)
    return crc

def crc32_fast_bytes(crc bytes_data):
    if len(bytes_data) & 3:
        raise ValueError(‘bytes_data length must be multiple of four‘)
    for index in range

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-10-26 14:49  stm32-can-bootloader-master\
     文件        4063  2016-10-26 14:49  stm32-can-bootloader-master\CANBOOT.ioc
     文件         430  2016-10-26 14:49  stm32-can-bootloader-master\CANBOOT.xml
     目录           0  2016-10-26 14:49  stm32-can-bootloader-master\Drivers\
     目录           0  2016-10-26 14:49  stm32-can-bootloader-master\Drivers\CMSIS\
     目录           0  2016-10-26 14:49  stm32-can-bootloader-master\Drivers\CMSIS\Device\
     目录           0  2016-10-26 14:49  stm32-can-bootloader-master\Drivers\CMSIS\Device\ST\
     目录           0  2016-10-26 14:49  stm32-can-bootloader-master\Drivers\CMSIS\Device\ST\STM32F1xx\
     目录           0  2016-10-26 14:49  stm32-can-bootloader-master\Drivers\CMSIS\Device\ST\STM32F1xx\Include\
     文件      927261  2016-10-26 14:49  stm32-can-bootloader-master\Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f103xb.h
     文件        8815  2016-10-26 14:49  stm32-can-bootloader-master\Drivers\CMSIS\Device\ST\STM32F1xx\Include\stm32f1xx.h
     文件        3335  2016-10-26 14:49  stm32-can-bootloader-master\Drivers\CMSIS\Device\ST\STM32F1xx\Include\system_stm32f1xx.h
     目录           0  2016-10-26 14:49  stm32-can-bootloader-master\Drivers\CMSIS\Device\ST\STM32F1xx\Source\
     目录           0  2016-10-26 14:49  stm32-can-bootloader-master\Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\
     目录           0  2016-10-26 14:49  stm32-can-bootloader-master\Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\gcc\
     文件       11536  2016-10-26 14:49  stm32-can-bootloader-master\Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\gcc\startup_stm32f103xb.S
     文件       16392  2016-10-26 14:49  stm32-can-bootloader-master\Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\system_stm32f1xx.c
     目录           0  2016-10-26 14:49  stm32-can-bootloader-master\Drivers\CMSIS\Include\
     文件        7265  2016-10-26 14:49  stm32-can-bootloader-master\Drivers\CMSIS\Include\arm_common_tables.h
     文件        3942  2016-10-26 14:49  stm32-can-bootloader-master\Drivers\CMSIS\Include\arm_const_structs.h
     文件      252339  2016-10-26 14:49  stm32-can-bootloader-master\Drivers\CMSIS\Include\arm_math.h
     文件       24423  2016-10-26 14:49  stm32-can-bootloader-master\Drivers\CMSIS\Include\cmsis_armcc.h
     文件       55083  2016-10-26 14:49  stm32-can-bootloader-master\Drivers\CMSIS\Include\cmsis_armcc_V6.h
     文件       41435  2016-10-26 14:49  stm32-can-bootloader-master\Drivers\CMSIS\Include\cmsis_gcc.h
     文件       37218  2016-10-26 14:49  stm32-can-bootloader-master\Drivers\CMSIS\Include\core_cm0.h
     文件       44796  2016-10-26 14:49  stm32-can-bootloader-master\Drivers\CMSIS\Include\core_cm0plus.h
     文件      103909  2016-10-26 14:49  stm32-can-bootloader-master\Drivers\CMSIS\Include\core_cm3.h
     文件      114498  2016-10-26 14:49  stm32-can-bootloader-master\Drivers\CMSIS\Include\core_cm4.h
     文件      139660  2016-10-26 14:49  stm32-can-bootloader-master\Drivers\CMSIS\Include\core_cm7.h
     文件        3620  2016-10-26 14:49  stm32-can-bootloader-master\Drivers\CMSIS\Include\core_cmFunc.h
     文件        3636  2016-10-26 14:49  stm32-can-bootloader-master\Drivers\CMSIS\Include\core_cmInstr.h
............此处省略51个文件信息

评论

共有 条评论