Search found 21 matches

by picclock
Wed Apr 06, 2022 11:42 am
Forum: General discussion
Topic: stm32f rtc memory space?
Replies: 5
Views: 4649

Re: stm32f rtc memory space?

@ fpiSTM
I have examined the two header files, STM32RTC.h and rtc.h (and the cpp file) but I cannot find any info on reserved bu ram use.
Do you know which ram locations are used, or where they might be declared.
Best Regards
picclock
by picclock
Tue Apr 05, 2022 5:45 am
Forum: General discussion
Topic: stm32f rtc memory space?
Replies: 5
Views: 4649

stm32f rtc memory space?

I am using STM32RTC arduino library, stm32f401, with battery powered backup registers (20x32bit).
Do the rtc registers, (hour, min day etc.) affect or use any of the backup register space ?.
I intend to use the internal rc clock as accuracy is fairly unimportant.

Any help much appreciated.

Best ...
by picclock
Thu Nov 18, 2021 4:40 pm
Forum: General discussion
Topic: Serial event not running
Replies: 2
Views: 3816

Re: Serial event not running

@fpiSTM
Thanks for the link, much appreciated. It will take me more than a minute or two to get around that.

From a quick scan this looks like the simplest option :

Serial.setRx(PA10); // using pin name
Serial.setTx(PA9);
Serial.begin(9600);

Just checked it out and it works a charm ...
by picclock
Thu Nov 18, 2021 2:52 pm
Forum: General discussion
Topic: Serial event not running
Replies: 2
Views: 3816

Serial event not running

I'm using ST Link V2 for programming and an ftdi serial adapter connected to PA9, PA10 on an stm32F401.
This works fine for serial print of data to the Arduino serial monitor.

However I cannot get it to input characters, as the serial event function is not called.

Using the example serial event ...
by picclock
Sat Nov 06, 2021 10:25 am
Forum: General discussion
Topic: eeprom in flash memory for STM32F401
Replies: 10
Views: 12324

Re: eeprom in flash memory for STM32F401

ag123
Thanks for the info. I had realised after further reading that I can only access the 80bytes (20 words) of the rtc area. 80 bytes is pushing it for my storage needs but I think its possible with a bit of careful programming (fudging ;) ), converting the 32 bit words to 8/16 bit integers and ...
by picclock
Sat Nov 06, 2021 6:35 am
Forum: General discussion
Topic: eeprom in flash memory for STM32F401
Replies: 10
Views: 12324

Re: eeprom in flash memory for STM32F401

@ag123 This solution resulted in an unrecognised F401, which I recovered using STLINK V2 and releasing the reset whilst pressing connect on the Cube programmer.

Reading more info I have discovered that this chip has 2k of battery backed up RAM. This seems like a simpler approach and requires only a ...
by picclock
Thu Nov 04, 2021 12:32 pm
Forum: General discussion
Topic: eeprom in flash memory for STM32F401
Replies: 10
Views: 12324

Re: eeprom in flash memory for STM32F401

fpiSTM wrote: Thu Nov 04, 2021 10:30 am Try the builtin EEPROM library
I thought I was onto a winner when EEProm.size reported 16384, but trying to write or put anything crashes the code. Can read lots of ff's though :?

Will try ag123 solution.

Many Thanks

picclock
by picclock
Thu Nov 04, 2021 8:01 am
Forum: General discussion
Topic: eeprom in flash memory for STM32F401
Replies: 10
Views: 12324

Re: eeprom in flash memory for STM32F401

@GonzoG
Thanks for the clarification, the datasheet was a bit ambiguous about that ( at least to me ).
I can live with a 16k block, and 10k erase write cycles is plenty for my purpose.

So any info on how to implement this much appreciated ;)

Best Regards

picclock
by picclock
Wed Nov 03, 2021 3:14 pm
Forum: General discussion
Topic: eeprom in flash memory for STM32F401
Replies: 10
Views: 12324

eeprom in flash memory for STM32F401

I'm trying to get this to work, but there does not seem to be a library which is compatible (FlashStorage_STM32F1 will not work with 32F401).
I need about 100 bytes or so of EEProm memory, or flash memory which can be written to under program control. 401 has 256k which seems to be in a large chunk ...
by picclock
Sun Aug 15, 2021 12:24 pm
Forum: Libraries & Hardware
Topic: SD Card Using SPI2
Replies: 10
Views: 25551

Re: SD Card Using SPI2

Thankyou for that post. It saved the day :D , and possibly my sanity.

for the first time I have a fully functioning SDFat on SPI2.

Definitely worth a virtual Beer !!!

Best Regards

picclock

Go to advanced search