打印

请教下, 利用在 V7 里面的 u盘历程升级hal库或者 usb库后,貌似识别不到u盘,有谁遇到过吗 ?

[复制链接]
196|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
USB, U盘, IO, ST, RS
请教下, 利用在 V7 里面的 u盘历程升级hal库或者 usb库后,貌似识别不到u盘,有谁遇到过吗 ?

v7 里面的 usb 库版本是:
  * @version V3.2.2
  * @date    07-July-2015


hal 库版本:
/**
* @brief STM32H7xx HAL Driver version number V1.3.0
   */
#define __STM32H7xx_HAL_VERSION_MAIN   (0x01) /*!< [31:24] main version */
#define __STM32H7xx_HAL_VERSION_SUB1   (0x03) /*!< [23:16] sub1 version */
#define __STM32H7xx_HAL_VERSION_SUB2   (0x00) /*!< [15:8]  sub2 version */
#define __STM32H7xx_HAL_VERSION_RC     (0x00) /*!< [7:0]  release candidate */
#define __STM32H7xx_HAL_VERSION         ((__STM32H7xx_HAL_VERSION_MAIN << 24)
                                        |(__STM32H7xx_HAL_VERSION_SUB1 << 16)
                                        |(__STM32H7xx_HAL_VERSION_SUB2 << 8 )
                                        |(__STM32H7xx_HAL_VERSION_RC))


这个 v1.3.0 hal 驱动库版本升级到 v1.5.0,  usb 库保持不变的话, 读写u盘都正常,

但是 把上述任一 一个库 版本升级 就都不行了, 比如把
hal 升级到 1.6.0 或者
usb 库升级到 /**
  ******************************************************************************
  * @file    usbh_msc.c
  * @author  MCD Application Team
  * @brief   This file implements the MSC class driver functions
  *          ===================================================================
  *                                MSC Class  Description
  *          ===================================================================
  *           This module manages the MSC class V1.0 following the "Universal
  *           Serial Bus Mass Storage Class (MSC) Bulk-Only Transport (BOT) Version 1.0
  *           Sep. 31, 1999".
  *           This driver implements the following aspects of the specification:
  *             - Bulk-Only Transport protocol
  *             - Subclass : SCSI transparent command set (ref. SCSI Primary Commands - 3 (SPC-3))
  *
  *  @endverbatim
  *
  ******************************************************************************
  * @attention
  *
  * <h2><center>© Copyright (c) 2015 STMicroelectronics.
  * All rights reserved.</center></h2>
  *
  * This software component is licensed by ST under Ultimate Liberty license
  * SLA0044, the "License"; You may not use this file except in compliance with
  * the License. You may obtain a copy of the License at:
  *                      www.st.com/SLA0044
  *
  ******************************************************************************
  */

再或者 hal 库与 usb 都同时升级,结果都不行 ??????????

应用部分都保持不变, 程序编译都是没有发生任何警告与错误提示

使用特权

评论回复

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

384

主题

384

帖子

0

粉丝