Search found 35 matches

by mlundin
Tue Jan 05, 2021 4:24 pm
Forum: General discussion
Topic: Compensate for LSE error
Replies: 10
Views: 402

Re: Compensate for LSE error

I dont have the hardware to test but if the LSE runs correctly when not sleeping then my wild guess would be that the core somehow switches to LSI when sleeping.
by mlundin
Mon Dec 07, 2020 9:14 pm
Forum: General discussion
Topic: a little question about gpio_read_bit
Replies: 5
Views: 370

Re: a little question about gpio_read_bit

F3 is bit 3 returns 2^3 = 8, and F5 gives 2^5 = 32
by mlundin
Thu Dec 03, 2020 7:20 pm
Forum: General discussion
Topic: Reversed question marks reading GPS module
Replies: 6
Views: 336

Re: Reversed question marks reading GPS module

What model/maker of board and what board settings in the Arduino IDE, there are many boards with STM32F103C, thats just the processor variant ?
by mlundin
Thu Dec 03, 2020 6:41 pm
Forum: General discussion
Topic: Reversed question marks reading GPS module
Replies: 6
Views: 336

Re: Reversed question marks reading GPS module

Please use the appropriate forum section for your question or comment. This section is for forum rules and similar administrative stuff. Second in order to answer your question we must know what board you are using. But from the results you get it seems that the Serial1 object is connected to the FT...
by mlundin
Thu Dec 03, 2020 3:03 pm
Forum: STM boards (Discovery, Eval, Nucleo, ...)
Topic: b-g431b-esc1 and Serial2 RX
Replies: 4
Views: 392

Re: b-g431b-esc1 and Serial2 RX

On this board the USART2_TX and USART2_RX are connected to the ST_LINK as long as the daughterboard is connected. Take a look at Fig 18 in the documentation. This means that your FTDI board is battling the ST_LINK when trying to pull the RX signal low. Serial should work through STLink if your proje...
by mlundin
Mon Nov 30, 2020 7:03 pm
Forum: PR's bugs and enhancements
Topic: [Closed] Error in cores/arduino/HardwareTimer.cpp
Replies: 1
Views: 508

[Closed] Error in cores/arduino/HardwareTimer.cpp

I think there is a typo in cores/arduino/HardwareTimer.cpp line 1251

Code: Select all

#if defined(TIM22_BASE)
  if (instance == TIM22) {
    index = TIMER2_INDEX;
  }
#endif
this should probably be

Code: Select all

#if defined(TIM22_BASE)
  if (instance == TIM22) {
    index = TIMER22_INDEX;
  }
#endif
by mlundin
Sat Nov 28, 2020 9:07 am
Forum: General discussion
Topic: [Solved] I need to return a single value from incoming serial data...
Replies: 37
Views: 2601

Re: I need to return a single value from incoming serial data...

So without bothering about code syntax lets consider what you want to do. So first lets be clear that button up and down is not quite the same as button pressed and released. Second dont mix up loop() /* do this forever */ Read any new characters from the scales, Serial2, and store them in an array....
by mlundin
Fri Nov 27, 2020 10:23 am
Forum: General discussion
Topic: incorrect micros() value for stm32f411re
Replies: 17
Views: 954

Re: incorrect micros() value for stm32f411re

Sorry, I dont have a problem, but [mention]ldelana[/mention] did mention the 767ZI in some earlier posts and I was simply explaning his results. Interference from Serial IRQ so make measured intervals both longer and shorter, depending on whether the first or second time sample is delayed.
by mlundin
Fri Nov 27, 2020 10:01 am
Forum: General discussion
Topic: incorrect micros() value for stm32f411re
Replies: 17
Views: 954

Re: incorrect micros() value for stm32f411re

If you check the STM32Duino source code for the variant NUCLEO_F767ZI: https://github.com/stm32duino/Arduino_Core_STM32/blob/master/variants/NUCLEO_F767ZI/variant.cpp you can see that it is configured with the HSI clock as source for the PLL. This clock has an accuracy on the order of 0.5 to 1% that...
by mlundin
Fri Nov 27, 2020 8:10 am
Forum: General discussion
Topic: [Solved] I need to return a single value from incoming serial data...
Replies: 37
Views: 2601

Re: I need to return a single value from incoming serial data...

Too bad but not much we can help with, your code is incomplete so we cannot test it.

How is the button connected ? What do you do in the setup function? What, if anything, happens when you run the program?

Go to advanced search