Search found 131 matches

by stas2z
Wed Jun 03, 2020 4:09 pm
Forum: General discussion
Topic: STM32F103 Strange Behavior
Replies: 5
Views: 1132

Re: STM32F103 Strange Behavior

I can assume the OP issue can be caused by different vector table offset, for binary compiled for usb bootloader it will be 0x2000 or 0x5000 for old one, but binary which is compiled to use without bl should have zero vector table offset so binary, which compiled and work with prototype will not wor...
by stas2z
Tue Jun 02, 2020 8:31 am
Forum: STM32F1 based boards
Topic: RobotDyn Black Pill APM32F103CB 128KB
Replies: 7
Views: 1825

Re: RobotDyn Black Pill APM32F103CB 128KB

There is no FPU inside, already discussed here
by stas2z
Mon Jun 01, 2020 8:04 pm
Forum: STM boards (Discovery, Eval, Nucleo, ...)
Topic: NUCLEO L053R8
Replies: 1
Views: 549

Re: NUCLEO L053R8

What is your problem?
According to reference manual you need to set GPIOC->MODER as 01010101010101010101010101010101 in binary to choose output mode for every port of GPIOC
in hex it will be 0x55555555

Code: Select all

GPIOC->MODER |= 0x55555555;
by stas2z
Fri May 29, 2020 5:40 am
Forum: IDE's
Topic: Blue Pill clock define
Replies: 10
Views: 2794

Re: Blue Pill clock define

Yes, you need whole SystemClock_Config from cube, and don't call it from loop or from anywhere else, it will be called at preinit So, I supose that Arduino IDE find this information in specific folder. What I need to do in instalation process to integrate Arduino IDE and CubeMx to take this ? Tks N...
by stas2z
Thu May 28, 2020 8:00 pm
Forum: General discussion
Topic: 1.7 MHz Generation
Replies: 2
Views: 694

Re: 1.7 MHz Generation

EDITED

sorry for misunderstanding

if you need to configure your timer to exact 1.7M frequency you need to use smth like

Code: Select all

MyTim->setOverflow(1700000, HERTZ_FORMAT);
when you configure yr timer instance
by stas2z
Tue May 26, 2020 10:58 pm
Forum: IDE's
Topic: Blue Pill clock define
Replies: 10
Views: 2794

Re: Blue Pill clock define

Yes, you need whole SystemClock_Config from cube, and don't call it from loop or from anywhere else, it will be called at preinit
by stas2z
Tue May 26, 2020 3:20 am
Forum: General discussion
Topic: Use Serial.available with CubeMX
Replies: 2
Views: 827

Re: Use Serial.available with CubeMX

Usually it doesnt use polling. Serial.available returns amount of unread data in the rx buffer. That buffer filled by reading serial with serial interrupt handler.
by stas2z
Sun May 24, 2020 12:09 pm
Forum: General discussion
Topic: DAC with DMA: DMA interrupt not working
Replies: 1
Views: 753

Re: DAC with DMA: DMA interrupt not working

Code: Select all

extern "C" void DMA1_Channel1_IRQHandler(void)
by stas2z
Thu May 21, 2020 10:52 am
Forum: General discussion
Topic: Hardware flow control for USART2 port on STM32F103RC
Replies: 5
Views: 970

Re: Hardware flow control for USART2 port on STM32F103RC

Flow control doesnt supported by core yet
by stas2z
Thu May 21, 2020 10:34 am
Forum: General discussion
Topic: std::function / STL usage?
Replies: 3
Views: 761

Re: std::function / STL usage?

With arm gcc it supports most stl features (except some thread/mutex related at least)

Go to advanced search