这是一个从闲鱼购买的STM32F103VE开发板,原始资料缺失。本README记录了目前已还原的硬件接口信息和测试程序。
- STM32F103VE
/********************************** (C) COPYRIGHT ******************************* | |
* File Name : VendorDefinedDev.C | |
* Author : WCH | |
* Version : V1.7 | |
* Date : 2023/05/31 | |
* Description : CH554模拟USB Module(CH554),厂商自定义接口设备,需要安装驱动, | |
驱动搜索CH37XDRV或者安装ISPTool会自动安装该设备类驱动,该设备类除了控制传输外,还是直插端点2批量上下传和端点1 | |
中断上传,可以通过372DEBUG.EXE获取其他USB调试工具进行收发数据演示 | |
********************************************************************************* |
source [find interface/cmsis-dap.cfg] | |
transport select swd | |
set CHIPNAME stm32h7b0xx | |
if {![info exists OCTOSPI1]} { | |
set OCTOSPI1 1 | |
set OCTOSPI2 0 | |
} | |
source [find target/stm32h7x.cfg] |
/********************************** (C) COPYRIGHT ******************************* | |
* File Name : Main.c | |
* Author : WCH | |
* Version : V1.1 | |
* Date : 2022/01/25 | |
* Description : 模拟USB复合设备,键鼠,支持类命令 | |
********************************************************************************* | |
* Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd. | |
* Attention: This software (modified or not) and binary are used for | |
* microcontroller manufactured by Nanjing Qinheng Microelectronics. |
/********************************** (C) COPYRIGHT ******************************* | |
* File Name : Main.c | |
* Author : WCH | |
* Version : V1.1 | |
* Date : 2022/01/25 | |
* Description : 模拟兼容HID设备 | |
********************************************************************************* | |
* Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd. | |
* Attention: This software (modified or not) and binary are used for | |
* microcontroller manufactured by Nanjing Qinheng Microelectronics. |
package com.example.bleapplication; | |
import android.annotation.SuppressLint; | |
import android.bluetooth.BluetoothGattCharacteristic; | |
import android.bluetooth.BluetoothGattDescriptor; | |
import android.bluetooth.BluetoothGattService; | |
import android.bluetooth.BluetoothManager; | |
import android.content.Context; | |
import android.os.Bundle; | |
import android.util.Log; |
#include <stdio.h> | |
#include "py/runtime.h" | |
#include "py/mphal.h" | |
STATIC mp_obj_t pytest_test(void) | |
{ | |
printf("pytest module"); | |
return mp_obj_new_int(0); | |
} |
import numpy as np | |
import os | |
from tensorflow import keras | |
from tensorflow.keras.models import Sequential | |
from tensorflow.keras.layers import Dense | |
from tensorflow.keras.callbacks import EarlyStopping, TensorBoard | |
from scikeras.wrappers import KerasClassifier | |
from sklearn.model_selection import GridSearchCV | |
from datetime import datetime |