2015-12-30 12:45 AM
I use last stm32cube.
I use stm32f4-discovery and enable usb cdc and freertos. when connect usb cable , my pc do not detect usb device. when i don't select freertos my pc detect usb device but caution in device manger on COM port.that example work property on stm32f1. with freertos and without freertos. #stm32f4-discover2015-12-30 02:59 AM
Hiaskari.nima,
1-Verify the stack and heap values of your project. refer to this . 2-If you are configuring your project with STM32CubeMx, verify priorities. Refer to this . -Shahrzad-2015-12-30 05:52 AM
I post my stm32cube project here.
please see that . that project work in stm32f103 by default configuration i change heap size and stack site to 0x8000 and 0x4000 . but it dos't work. ________________ Attachments : buck_discovery.ioc : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HtqX&d=%2Fa%2F0X0000000aXm%2FgfPDglEieD5e4cA113vjGt03VYO8zpJhqZnTlUw5CeM&asPdf=false2015-12-30 09:40 PM
Please Help me.
2015-12-30 10:57 PM
Ohh . I found it. There is a problem in stm32cube library .
code generator do not create HAL_IncTick() function in sys_tick handleri change this function and work.void SysTick_Handler(void){ /* USER CODE BEGIN SysTick_IRQn 0 */ HAL_IncTick(); // <<<<<<< add manualy /* USER CODE END SysTick_IRQn 0 */ osSystickHandler(); /* USER CODE BEGIN SysTick_IRQn 1 */ /* USER CODE END SysTick_IRQn 1 */}2016-01-21 09:15 AM
I confirm the bug.
2016-02-05 08:50 AM
Hello,
this will be fixed in 4.13 release. On top, there will be the possibility to change the HAL timebase source from the default systick time base. This is strongly recommended when using an RTOS.2016-02-06 02:17 PM
when HAL depends so strongly on Tick for timeouts should then the Systick ISR be an unique ISR priority higher than all other modules (i.e. USB) ?
Currently all priorities are by default 0. I do change them by myself. Regards, Adib. --