Search found 20 matches

by ManX84
Fri Nov 24, 2023 5:24 pm
Forum: General discussion
Topic: FlashStorage STM32 - How to save, update and read data for beginner
Replies: 3
Views: 10120

Re: FlashStorage STM32 - How to save, update and read data for beginner

@Greirat : Sorry but the FlashStorage_STM32 not working like you describe ! you describe the use of the "original" FlashStorage from cmaglie ! BUT the FlashStorage_STM32 is not a clone! it's just implement the eeprom like API So please test the code you gave before answered, especially for...
by ManX84
Tue Oct 24, 2023 7:45 am
Forum: General discussion
Topic: Speed Up your IO !!
Replies: 16
Views: 5498

Re: Speed Up your IO !!

dannyf Surely you are right but the objective was not to make an optimum code. Your position is the one of "advanced" or "specialist" but think about all beginners or hobbyist? these small post just illustrate how original STM32 arduino gpio writing is slow and how we can easily...
by ManX84
Mon Oct 23, 2023 9:47 pm
Forum: General discussion
Topic: Speed Up your IO !!
Replies: 16
Views: 5498

Re: Speed Up your IO !!

I play again a little and "Overclock" to 128MHz ... working at my room temperature ( I live in SIberia ! :mrgreen: )
by ManX84
Mon Oct 23, 2023 9:43 pm
Forum: General discussion
Topic: Speed Up your IO !!
Replies: 16
Views: 5498

Re: Speed Up your IO !!

GonzoG PLease give us your code ! (I do not pretend to get the fastest .. just starting to play) Next .. What is the STM32Duino system clock setting ?? well I have a stm32F103C8 and you could found the setting here : "C:\...\AppData\Local\arduino15\packages\STMicroelectronics\hardware\stm32\2....
by ManX84
Mon Oct 23, 2023 4:04 pm
Forum: General discussion
Topic: Speed Up your IO !!
Replies: 16
Views: 5498

Re: Speed Up your IO !!

Need Faster ?

Code: Select all

	// Here use a digitalWriteFast !
	do
	{
		digitalWriteFast(PC_13, 1);
		digitalWriteFast(PC_13, 0);
	} while (1);
F = 7 MHz! :mrgreen:
by ManX84
Mon Oct 23, 2023 3:33 pm
Forum: General discussion
Topic: Speed Up your IO !!
Replies: 16
Views: 5498

Speed Up your IO !!

Hello all, just a small example to illustrate how to speed up your IO. STM32 Arduino core use HAL interface to write or read IO. HAL is know to be very slow.. but how mutch slow? Here a test, made on STM32F108C: //Here a classical arduino write -> use STM32 HAL interface -> F = 396 KHz do { digitalW...
by ManX84
Fri Oct 20, 2023 2:38 pm
Forum: General discussion
Topic: Serial work only after disconnect/reconnect USB !??? (solved)
Replies: 8
Views: 2232

Re: Serial work only after disconnect/reconnect USB !???

@fpiSTM: Yes, this is an hard issue ! Why ? because when I started to work with this board I modified the stm32CubeProg.sh like it command RTS and DTR line (on my board RESET condition is achieved with RTS = 1 and DTR = 0, Boot mode is with RTS = 1 and DTR = 0 ). But I didn't release correctly these...
by ManX84
Fri Oct 20, 2023 1:51 pm
Forum: General discussion
Topic: Serial work only after disconnect/reconnect USB !??? (solved)
Replies: 8
Views: 2232

Re: Serial work only after disconnect/reconnect USB !???

@ag123 : HardwareSerial Serial1(PA10, PA9); void setup() { // Serial.setRx(PA10); // using pin name // Serial.setTx(PA9); // Serial.begin(115200); Serial1.begin(115200); while(!Serial1); } void loop() { Serial1.println("STM32Duino Forum !!!"); delay(200); } This code work, BUT only after c...

Go to advanced search