Search found 94 matches
- Mon Dec 07, 2020 9:14 pm
- Forum: General discussion
- Topic: a little question about gpio_read_bit
- Replies: 5
- Views: 3372
Re: a little question about gpio_read_bit
F3 is bit 3 returns 2^3 = 8, and F5 gives 2^5 = 32
- Thu Dec 03, 2020 7:20 pm
- Forum: General discussion
- Topic: Reversed question marks reading GPS module
- Replies: 6
- Views: 4593
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 ?
- Thu Dec 03, 2020 6:41 pm
- Forum: General discussion
- Topic: Reversed question marks reading GPS module
- Replies: 6
- Views: 4593
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...
- Thu Dec 03, 2020 3:03 pm
- Forum: STM boards (Discovery, Eval, Nucleo, ...)
- Topic: b-g431b-esc1 and Serial2 RX
- Replies: 4
- Views: 6252
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...
- Mon Nov 30, 2020 7:03 pm
- Forum: PR's bugs and enhancements
- Topic: [Closed] Error in cores/arduino/HardwareTimer.cpp
- Replies: 1
- Views: 9131
[Closed] Error in cores/arduino/HardwareTimer.cpp
I think there is a typo in cores/arduino/HardwareTimer.cpp line 1251
this should probably be
Code: Select all
#if defined(TIM22_BASE)
if (instance == TIM22) {
index = TIMER2_INDEX;
}
#endif
Code: Select all
#if defined(TIM22_BASE)
if (instance == TIM22) {
index = TIMER22_INDEX;
}
#endif
- 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: 21095
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....
- Fri Nov 27, 2020 10:23 am
- Forum: General discussion
- Topic: incorrect micros() value for stm32f411re
- Replies: 18
- Views: 10232
Re: incorrect micros() value for stm32f411re
Sorry, I dont have a problem, but @ldelana 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.
- Fri Nov 27, 2020 10:01 am
- Forum: General discussion
- Topic: incorrect micros() value for stm32f411re
- Replies: 18
- Views: 10232
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...
- 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: 21095
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?
How is the button connected ? What do you do in the setup function? What, if anything, happens when you run the program?
- Thu Nov 26, 2020 9:46 pm
- Forum: General discussion
- Topic: incorrect micros() value for stm32f411re
- Replies: 18
- Views: 10232
Re: incorrect micros() value for stm32f411re
I ran your code, from first post, on a DISCO F4 and the results are perfect. fin=800Hz and period:1250.00 freq:800.00, occasionally period is 1251.
What system clock configuration is active on your boards ?
What system clock configuration is active on your boards ?