STM32 MCUs Products

Ask questions, find answers, and share insights on STM32 products and their technical features.

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Delay function with timer

Posted on February 22, 2013 at 09:12Hi, I am trying to make a simple delay function using a timer but i get weird results .Here is some of the code void TIMERS_init(){   TIM3->PSC = 23999; // f timer = fclk / 24000 => 1kHz TIM3->ARR = 0xFFFF; TIM3->...

raducara by Associate II
  • 1828 Views
  • 6 replies
  • 0 kudos

Vbus Detection

Posted on February 28, 2013 at 16:47Hi,I'm developing a self powered USB FS Peripheral Only Device. To detect a USB cable connection to Host I assume to use SRQINT bit in OTG_FS_GINTST register.But for some reason I can not initially clear this bit....

dimax by Senior
  • 478 Views
  • 1 replies
  • 0 kudos

Time triggered CAN

Posted on March 01, 2013 at 06:03Hello! I want to use STM32F105 in time triggered communication mode (RM0008, p637). In this mode internal counter used to capture sample point of SOF. The question is how can I use this counter: clear, read, write an...

Allocating Dynamic IP Adderss

Posted on February 27, 2013 at 12:57Hi,     Is there any way of assigning the IP address Dynamically (as it is done in the computers network configuration) im using stm32f107rb .... If it is possible then could you please tell me about that thing......

STM32F103C6 HardFault after erase flash with IWDG active

Posted on February 26, 2013 at 17:41Hi, I'm new to Cortex M3. I've a custom boot working correctly: first I erase the 32K flash and after I write the memory with no problems.I need to activate the Independent Watchdog, and when I do it the microcont...

xbalmes by Associate II
  • 1344 Views
  • 4 replies
  • 0 kudos

Input capture timer - measure the correct frequency

Posted on April 17, 2012 at 15:01Hi, I want to capture a signal with 30Hz frequency by a timer input capture. The timer is already working but the measured frequency is not 30Hz. I always measure a frequency of 29.85Hz or 30.3Hz. Are there any mist...

mfcprog by Associate II
  • 2316 Views
  • 10 replies
  • 0 kudos

Using __attribute__((__section__())) stops code running?

Posted on November 23, 2012 at 03:16 Hi all, Bit of a strange one... When i include this line in one of my C source files, my software no longer starts up after reset correctly (jumps off into no-mans land). const unsign...

mwp by Senior
  • 1054 Views
  • 6 replies
  • 0 kudos

strcat method does not work

Posted on August 20, 2012 at 15:14Hi, When I use strcat to append a string to a destination string. It does not work. I did it like this. char *item_list = ''''; strcat(item_list,''hello''); When I set a break point and check the item_list, it is st...

chai by Associate II
  • 4060 Views
  • 24 replies
  • 0 kudos