Using the internal (HSI) generator f103c8t6

Post here all questions related to LibMaple core if you can't find a relevant section!
stm32_discover
Posts: 7
Joined: Thu Jan 23, 2020 12:00 pm

Re: Using the internal (HSI) generator f103c8t6

Post by stm32_discover »

Hi Steve,I checked the test sketch on the Maple mini Board, everything works with quartz, but it doesn't work without quartz

Code: Select all

#define USE_HSI_CLOCK 1

void setup() {
  // put your setup code here, to run once:
pinMode(PA0,OUTPUT);
pinMode(PA1,OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
digitalWrite(PA0,HIGH);
digitalWrite(PA1,HIGH);
delay(1000);
digitalWrite(PA0,LOW);
digitalWrite(PA1,LOW);
delay(1000);
}
stevestrong
Posts: 502
Joined: Fri Dec 27, 2019 4:53 pm
Answers: 8
Location: Munich, Germany
Contact:

Re: Using the internal (HSI) generator f103c8t6

Post by stevestrong »

You have to include

Code: Select all

#define USE_HSI_CLOCK 1
in the file "board.h" of your variant.

For example, bluepill board.h can be found here: https://github.com/rogerclarkmelbourne/ ... rd/board.h

or in the variant header: https://github.com/rogerclarkmelbourne/ ... /variant.h
Shashi Bhushan
Posts: 1
Joined: Thu Dec 24, 2020 4:41 pm

Re: Using the internal (HSI) generator f103c8t6

Post by Shashi Bhushan »

I am facing the same issue.

Tried the STM cube IDE with auto code generator and blinked LED using HSI clock selected.

Now running same LED Blinky code with Arduino it is not running. The board is custom and doesn't have crystal.

Done above all things but nothing worked !

Just want to enable HSI in Arduino and disable HSE.

My board is perfect and working ! blinking LED at PB12 using STM cube IDE and clock HSI ! :!: :!: :!: :!:

Code: Select all

#include <Arduino.h>
#define USE_HSI_CLOCK 1
 void setup()
  {
    pinMode(PB12,OUTPUT);
  }
void loop()
{
  digitalWrite(PB12,HIGH);
  delay(1000);
   digitalWrite(PB12,LOW);
   delay(1000);
}
Post Reply

Return to “General discussion”