cubemx

f_mount() returns FA_DISK_ERR

末鹿安然 提交于 2020-07-10 10:19:46
问题 I have made few changes in my source code after suggestion form everyone.For connecting FATFS API with SPI interface i have followed this code.. https://github.com/eziya/STM32_SPI_SDCARD/blob/master/Src/fatfs_sd.c and changed my user_diskio.c accordingly. After doing all those things then also my SD Card returns FA_DISK_ERROR . I have changed SD Card slot as well as SD Card. But nothing Changed. My user_diskio.c look like this: #include <string.h> #include "ff_gen_drv.h" #include "fatfs_sd.h"

ST Motor Control Workbench STM32CubeMX Problem

左心房为你撑大大i 提交于 2020-06-17 10:28:13
问题 I am trying to generate ST Motor Control Workbench project but when I click generation button I get this error : "STM32CubeMX not found - ver. "4.25.0" or higher is required" I allready have STM32CubeMX version 4.26 by the way I had version 5.0 but I read on a blog that MC Workbench doeesn't support versions newer than 5.0 that's why I uninstalled 5.0 and installed 4.26 but I still get the same error. Is there any idea? 来源: https://stackoverflow.com/questions/62029414/st-motor-control

ST Motor Control Workbench STM32CubeMX Problem

时光毁灭记忆、已成空白 提交于 2020-06-17 10:26:26
问题 I am trying to generate ST Motor Control Workbench project but when I click generation button I get this error : "STM32CubeMX not found - ver. "4.25.0" or higher is required" I allready have STM32CubeMX version 4.26 by the way I had version 5.0 but I read on a blog that MC Workbench doeesn't support versions newer than 5.0 that's why I uninstalled 5.0 and installed 4.26 but I still get the same error. Is there any idea? 来源: https://stackoverflow.com/questions/62029414/st-motor-control

How can I add I-CUBE-LRWAN libraries to a new project?

荒凉一梦 提交于 2020-03-05 05:40:31
问题 I am working with STM32 B-L072Z-LRWAN1 discovery kit. How can I add I-CUBE-LRWAN libraries externally, after i have created a project on CubeMX for B-L072Z-LRWAN1 discovery kit. Because project which i have created have not radio libraries. I am coding with System Workbench. Before this project, i used Ping-Pong example. It was divergent for create a fresh project. So i am trying to make a new project for Lora. Thanks for answers. 回答1: I'm going to answer it from te point of view of a Keil

CubeMX-generated USB HID device sends wrong data when both endpoint and PMA address are changed

可紊 提交于 2020-02-04 03:47:26
问题 I'm debugging a problem with a composite device that I'm creating, and have recreated the issue in freshly-CubeMX-generated HID-only code, to make it easier to resolve. I've added small amount of code to main() to let me send USB HID mouse-clicks, and flash an LED, when the blue-button is pressed. ... uint8_t click_report[CLICK_REPORT_SIZE] = {0}; extern USBD_HandleTypeDef hUsbDeviceFS; ... int main(void) { ... while (1) { /* USER CODE END WHILE */ /* USER CODE BEGIN 3 */ if(HAL_GPIO_ReadPin

HAL_SetDate sets the year to wrong value

醉酒当歌 提交于 2020-01-01 07:01:05
问题 I'm using STM32F030RCT6 with CubeMX. Device is a datalogger and RTC is the main thing that cannot fail. On Errata Sheet there is something about RTC Shadow Register. I configured CubeMX to not generate MX_RTC_Init() function and it has been working normally so far. (I'm using LSE) I need to update the time/date from GSM time but when I set the year to 18 with HAL_SetDate() and after a small delay I read with HAL_GetDate() , sDate.Year gave me 20 . Apart from Year , the other values are