Search found 11 matches

by Renato
Sat Aug 08, 2020 7:38 pm
Forum: General discussion
Topic: Internal temperature sensor
Replies: 11
Views: 14317

Re: Internal temperature sensor

Great. Below some observations. Your comment please. static int32_t readVref() { #ifdef __LL_ADC_CALC_VREFANALOG_VOLTAGE return (__LL_ADC_CALC_VREFANALOG_VOLTAGE(analogRead(AVREF), LL_ADC_RESOLUTION)); // VRef result more accurate #else return (VREFINT * ADC_RANGE / analogRead(AVREF)); // ADC sample...
by Renato
Thu Aug 06, 2020 3:09 pm
Forum: General discussion
Topic: Internal temperature sensor
Replies: 11
Views: 14317

Internal temperature sensor

Any simple example of use internal temperature sensor to read ambient temperature ?
(Arduino / STM32G071)
Tks
by Renato
Wed Jun 24, 2020 3:50 pm
Forum: IDE's
Topic: Bootload command no longer responds
Replies: 7
Views: 7183

Re: Bootload command no longer responds

That's it ! Thanks.
by Renato
Tue Jun 23, 2020 8:09 pm
Forum: IDE's
Topic: Bootload command no longer responds
Replies: 7
Views: 7183

Re: Bootload command no longer responds

Well, I am far from being an STM32 MCU expert. I am learning. Analyzing the pattern 11, I deduce that having recorded the first time, the last 3 options are eliminated. The second option there are 2 bits to consider. I conclude then that CubePRG could have changed these bits and canceled this bootlo...
by Renato
Tue Jun 23, 2020 2:38 pm
Forum: IDE's
Topic: Bootload command no longer responds
Replies: 7
Views: 7183

Re: Bootload command no longer responds

fpiSTM wrote: Tue Jun 23, 2020 6:08 am So you flash over serial ? Yes
when you told a new load does not occur ? Exactly. Seems like not entry in boot mode, because after reset, immediately starting pre loaded code execution.
You reset it before the load with the correct bootX config ? Yes. BOOT0 pin to 3.3V and reset
by Renato
Tue Jun 23, 2020 2:13 am
Forum: IDE's
Topic: Bootload command no longer responds
Replies: 7
Views: 7183

Bootload command no longer responds

Arduino IDE, board STM32G071RB select, but using STM32G071KB. First load of the code occurs correctly via USART1. A new load does not occur because the microcontroller does not respond to the bootload command (BOOT0 to 1 and reset). After reset the preloaded code continues running. What could be hap...
by Renato
Fri May 29, 2020 2:17 am
Forum: IDE's
Topic: Blue Pill clock define
Replies: 10
Views: 14863

Re: Blue Pill clock define

stas2z wrote: Tue May 26, 2020 10:58 pm 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
by Renato
Tue May 26, 2020 9:23 pm
Forum: IDE's
Topic: Blue Pill clock define
Replies: 10
Views: 14863

Re: Blue Pill clock define

I do not have the hardware to test yet. Previously I'm studing how to use STM32G0 with low power run mode. My doubt is if can I use only: RCC_OscInitStruct.HSIState = RCC_HSI_ON; /** 16 MHz */ RCC_OscInitStruct.HSIDiv = RCC_HSI_DIV8; /** 2 MHz ahed */ or have to use like below (code generate by Cube...
by Renato
Tue May 26, 2020 12:09 am
Forum: IDE's
Topic: Blue Pill clock define
Replies: 10
Views: 14863

Re: Blue Pill clock define

Please, show a short SystemClock_Config example when I want 2 MHz cpu clock, with internal RC oscilator HSI 16 MHz.
Thanks
by Renato
Wed Feb 26, 2020 9:59 pm
Forum: IDE's
Topic: Blue Pill clock define
Replies: 10
Views: 14863

Blue Pill clock define

Using Arduino IDE how can I set Blue Pill cpu clock to 1 MHz, for example?

Go to advanced search