stm32

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

STM32 Freezing periphirals when pausing the debugger

て烟熏妆下的殇ゞ 提交于 2020-06-14 08:35:12
问题 Debugger can stop execution of code in Cortex when it reaches a breakpoint or user pauses the execurion of code. But does debugger freeze other periphirals like DMA, UART and TIMERS when cortex stops execuring the code in pause state? 回答1: You can only hold time/r depend peripherals. I call the following code on entering the main function: DBGMCU->APB1FZ |= DBGMCU_APB1_FZ_DBG_TIM2_STOP | DBGMCU_APB1_FZ_DBG_TIM3_STOP | DBGMCU_APB1_FZ_DBG_TIM4_STOP | DBGMCU_APB1_FZ_DBG_TIM5_STOP); DBGMCU-

FATFS can't initialize the SD card

你说的曾经没有我的故事 提交于 2020-06-03 17:25:22
问题 So I'm using an STM32F407 and trying to write to an SD card with FATFS. I have used the CubeMX to generate the code for both the FAT layer and 4bit SDIO configuration software. I have added the following code to main to test whether the code works. UINT bw; f_mount(&FatFs, "", 0); /* Give a work area to the default drive */ /* Create a file */ if(f_open(&Fil, "newfile.txt", FA_WRITE | FA_CREATE_ALWAYS) == FR_OK) { f_write(&Fil, "It works!\r\n", 11, &bw); /* Write data to the file */ f_close(

FATFS can't initialize the SD card

霸气de小男生 提交于 2020-06-03 17:24:32
问题 So I'm using an STM32F407 and trying to write to an SD card with FATFS. I have used the CubeMX to generate the code for both the FAT layer and 4bit SDIO configuration software. I have added the following code to main to test whether the code works. UINT bw; f_mount(&FatFs, "", 0); /* Give a work area to the default drive */ /* Create a file */ if(f_open(&Fil, "newfile.txt", FA_WRITE | FA_CREATE_ALWAYS) == FR_OK) { f_write(&Fil, "It works!\r\n", 11, &bw); /* Write data to the file */ f_close(

FATFS can't initialize the SD card

给你一囗甜甜゛ 提交于 2020-06-03 17:24:23
问题 So I'm using an STM32F407 and trying to write to an SD card with FATFS. I have used the CubeMX to generate the code for both the FAT layer and 4bit SDIO configuration software. I have added the following code to main to test whether the code works. UINT bw; f_mount(&FatFs, "", 0); /* Give a work area to the default drive */ /* Create a file */ if(f_open(&Fil, "newfile.txt", FA_WRITE | FA_CREATE_ALWAYS) == FR_OK) { f_write(&Fil, "It works!\r\n", 11, &bw); /* Write data to the file */ f_close(

STM32 DCMI using Hardware Sync(Embedded sync) cubeMX setting(BT656 or ITU656)

℡╲_俬逩灬. 提交于 2020-06-01 05:45:12
问题 I am currently making a system using digital camera. I succeeded to make it with dcmi external sync, but what I need to do is do the same thing with dcmi embedded sync(hardware sync) as known as BT.656. How should I set Frame Start Code, Frame End Code, Line End Code and Line Start Code in Parameter setting in the DCMI Configuration? Or is it something that I don't need to modify? The configuration window is shown below: 回答1: you could check my other post about DCMI configuration for STM32

STM32H7 DCMI with BT.656

瘦欲@ 提交于 2020-05-24 05:21:20
问题 I am currently making a system using digital camera, my camera resolution is 384x288 4:2:2 YCbCr. My camera works on BT.656 with embedded sync (without hardware sync). I configured STM32 DCMI with embedded sync and it didn't work. Then I started to debug it and found some weird STM32 DCMI issue: STM32 DCMI embedded for BT.656 is inverted. STM32 DCMI document (out of ST's AN5020): BT.656 Protocol (from here): I have 2 questions: Has anyone been able to make BT.656 work on STM32H7 or any

STM32H7 DCMI with BT.656

徘徊边缘 提交于 2020-05-24 05:21:10
问题 I am currently making a system using digital camera, my camera resolution is 384x288 4:2:2 YCbCr. My camera works on BT.656 with embedded sync (without hardware sync). I configured STM32 DCMI with embedded sync and it didn't work. Then I started to debug it and found some weird STM32 DCMI issue: STM32 DCMI embedded for BT.656 is inverted. STM32 DCMI document (out of ST's AN5020): BT.656 Protocol (from here): I have 2 questions: Has anyone been able to make BT.656 work on STM32H7 or any

YCbCr Video Input STM32F746

爷,独闯天下 提交于 2020-05-23 11:43:22
问题 I am working on STM32F746 based custom board which is integrated with LCD and a ADV7180 video decoder IC. I Configured the ADV7180 to run in the free run mode. Getting the Camera data using DCMI to a specified buffer. I am trying to Convert the YCbCr 4:2:2 data to the RBG data. I am getting the Line Events. . From the Live events I am executing the below piece of code to convert it to the RGB and then load the it to the LCD using ARGB888. LCD_FRAME_BUFFER 0xC0000000 LCD_FRAME_BUFFER_LAYER1

Is there a trade-off for memory to memory DMA transfer when the data size is small?

孤者浪人 提交于 2020-05-16 03:16:24
问题 As my understanding and research, I know that if the data size is small (that is, the device uses DMA to generate or consume a small amount of data), the overhead is increased because DMA transfer requires the DMA controller to perform operations, thereby unnecessarily increasing system cost. Is that correct and is there any more description to my question? 回答1: As @Vinci and @P__J__ already pointed out, A DMA controller works autonomously and doesn't create overhead on the CPU it supplements