Search found 22 matches
- Sat May 02, 2020 1:40 am
- Forum: General discussion
- Topic: Starting ADC with DMA Mode causes chip to freeze
- Replies: 8
- Views: 6698
Starting ADC with DMA Mode causes chip to freeze
As explained by the thread title, my stm32f103c8t6 (blue pill) freezes when i call HAL_ADC_Start_DMA() function, i use STM32Core 1.8.0. here is my whole code : #include <hd44780.h> #include <hd44780ioClass/hd44780_pinIO.h> // Arduino pin i/o class header #include "stm32f1xx_hal.h" #include...
- Sat Jan 11, 2020 5:50 am
- Forum: General discussion
- Topic: Compile time so slow
- Replies: 34
- Views: 22149
Re: Compile time so slow
So, all we have to do is just wait for Arduino IDE to be patched? Yes... but this point is open since a long time, so I don't think this will be solved soon. Maybe this will be better with the new IDE... You mean using other IDE rather than Arduino IDE?, do you have any recommendation on that?
- Sat Jan 11, 2020 3:13 am
- Forum: General discussion
- Topic: Compile time so slow
- Replies: 34
- Views: 22149
Re: Compile time so slow
So, all we have to do is just wait for Arduino IDE to be patched?
- Fri Jan 10, 2020 4:08 pm
- Forum: General discussion
- Topic: Compile time so slow
- Replies: 34
- Views: 22149
Re: Compile time so slow
Hi Eldi4, I guess you build under Windows ? This is related to Arduino IDE. If you have an antivirus (mainly real-time protection) you can try to disable it. For example on Linux, I build a sketch in few seconds while the same one on Windows builds in one or more minutes. Yes, i use version 1903 of...
- Fri Jan 10, 2020 1:41 pm
- Forum: General discussion
- Topic: Compile time so slow
- Replies: 34
- Views: 22149
Compile time so slow
Did anyone had any idea on this problem?, I am using Arduino IDE 1.8.10, STM32Core, compiling time always take 1 minute or more, which is absolutely annoying, i havent tested on another core though, but it doesnt matter, i just use stm32core these times.
- Sun Jan 05, 2020 12:34 pm
- Forum: General discussion
- Topic: analogWrite changes HardwareTimer settings
- Replies: 5
- Views: 7335
Re: analogWrite changes HardwareTimer settings
My timer overflow value acually is variative, so it needs to adapt to it, if i explicitly call it like that, then it will unsynchronized once the overflow value changed.
- Sun Jan 05, 2020 11:40 am
- Forum: General discussion
- Topic: analogWrite changes HardwareTimer settings
- Replies: 5
- Views: 7335
Re: analogWrite changes HardwareTimer settings
Ah i see, thank you, so i just need to analogWriteFrequency(timer.getOverflow(HERTZ_FORMAT));
- Sun Jan 05, 2020 10:16 am
- Forum: General discussion
- Topic: analogWrite changes HardwareTimer settings
- Replies: 5
- Views: 7335
analogWrite changes HardwareTimer settings
Hello there, I have some problem related to HardwareTimer, when i call analogWrite(PB8,x) on blue pill it somehow changes the TIM4 settings, I set the timer interrupt firing frequency of 200Hz, but when i called analogWrite(PB8,x) the interrupt fire at 1kHz, that's not what i want, does anyone know ...
- Fri Dec 20, 2019 1:32 pm
- Forum: General discussion
- Topic: Weird HardwareTimer behavior
- Replies: 8
- Views: 7013
Re: Weird HardwareTimer behavior
Thanks a lot for the help, will check it out immediately, for now i'll use non-adjustable speed data shifting using : static inline void shiftData8( byte data, bool upperOrLower){ uint8_t sspi_i; // Send 8 bits, with the MSB first. for (sspi_i = 0x80; sspi_i != 0x00; sspi_i >>= 1) { if (data & s...
- Fri Dec 20, 2019 11:46 am
- Forum: General discussion
- Topic: Weird HardwareTimer behavior
- Replies: 8
- Views: 7013
Re: Weird HardwareTimer behavior
Ahh, i got it now, so i set the prescalerFactor to 2 and overflow to 360, and then changes the loop value to 101000, the led blink every 1 second. When i set the overflow to 36, and changes the loop value to 501000, it blink every 2 second (which show 250K "wfi" tick/s), which it should no...