Skip to main content
umitguleer
Associate II
December 29, 2015
Question

USB MSC write problem

  • December 29, 2015
  • 1 reply
  • 565 views
Posted on December 29, 2015 at 16:18

Hi everyone,

I have some problem with my STM32F105RC board.for USB MSC application.

I can write usb stick perfectly but some usb is problem and I can not write. That's why 

USB always busy with something and I take a communication error from my modbus designed. I think, it is always here;

static void BSP_Delay(uint32_t nTime, uint8_t unit)

{

  

  BSP_delay = nTime;

  BSP_SetTime(unit);  

  while(BSP_delay != 0);

  TIM_Cmd(TIM2,DISABLE);

}

so can you give me some advice??

#stm32f105rc #usb-msc
This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
December 30, 2015
Posted on December 30, 2015 at 01:33

You'd have to dig into whether the timer is setup/enabled, and if variables here are volatile. Evaluate what it's using the delay for.

My preference would be to setup the timer to free run, and mark time against the count.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..