Search found 38 matches

by kvv213
Sun May 10, 2020 6:58 am
Forum: Libraries & Hardware
Topic: Wire does not always connect to I2C properly
Replies: 2
Views: 6219

Wire does not always connect to I2C properly

Hello All! I've faced a strange problem that I don't understand how to solve properly. I have stm32f103 chip that is connected with en EEPROM via I2C. I use STM32Duino core and work with EEPROM via Wire lib. In the most cases everything works well and I connect to I2C EEPROM and can read and can wri...
by kvv213
Tue Apr 14, 2020 1:20 pm
Forum: General discussion
Topic: EEPROM.put - where does it stores data?
Replies: 16
Views: 17792

Re: EEPROM.put - where does it stores data?

According to the credentials at h-file of my EEPROM (taken from Duino package) it is: EEPROM.h - EEPROM library Original Copyright (c) 2006 David A. Mellis. All right reserved. New version by Christopher Andrews 2015. It utilizes EERef class and it works with STM32F103 Flash chip :) I don't know how...
by kvv213
Tue Apr 14, 2020 5:39 am
Forum: General discussion
Topic: EEPROM.put - where does it stores data?
Replies: 16
Views: 17792

Re: EEPROM.put - where does it stores data?

Flash can hold the bootloader, your sketch, and simulated EEPROM ... flash is finite. You must use an STM32 aware lib for EEPROM, using an AVR library is not supported. Yep, it is. But how to check the lib to be STM32 compliant? I took the lib from STM32 Arduino Core and it stores values at flash d...
by kvv213
Wed Apr 08, 2020 5:20 pm
Forum: General discussion
Topic: EEPROM.put - where does it stores data?
Replies: 16
Views: 17792

Re: EEPROM.put - where does it stores data?

For the STM32 core, this is stored in the last page/sector of the flash. Thank you, yes, for STM32 Core. I found out a strange behaviour of put method of EEPROM lib. If I write an object with size around 0,5 kb then a part of my sketch memory is ruined. Variables values are destroyed... So, was lik...
by kvv213
Wed Apr 08, 2020 5:18 pm
Forum: General discussion
Topic: EEPROM.put - where does it stores data?
Replies: 16
Views: 17792

Re: EEPROM.put - where does it stores data?

That is strange: 1. "Two pages (sectors) of Flash memory " and where are they located in Chip Flash? 2. I use different EEPROM lib, that is called EEPROM.h not emulated_EEPROM. In Arduino 16-bit AVR, most of those uC's have dedicated EEPROM affixed to the uC die ... that is completely sep...
by kvv213
Tue Apr 07, 2020 7:19 pm
Forum: General discussion
Topic: EEPROM.put - where does it stores data?
Replies: 16
Views: 17792

Re: EEPROM.put - where does it stores data?

That is strange:

1. "Two pages (sectors) of Flash memory " and where are they located in Chip Flash?
2. I use different EEPROM lib, that is called EEPROM.h not emulated_EEPROM.
by kvv213
Tue Apr 07, 2020 6:35 pm
Forum: General discussion
Topic: EEPROM.put - where does it stores data?
Replies: 16
Views: 17792

EEPROM.put - where does it stores data?

Hi EveryGuruAtTheForum! I use EEPROM lib with my STM32F103 in my solution. It writes and reads some data from the flash memory of my chip. The usage of the lib is very simple just use EEPROM.put(int address, obj) and it does everything for you. But I'd like to understand where exactly at the flash m...
by kvv213
Sun Jan 19, 2020 8:50 am
Forum: General discussion
Topic: Correct usage of HAL functions in Arduino code
Replies: 26
Views: 24590

Re: Correct usage of HAL functions in Arduino code

If you and your boss and company lawyers have no concerns, then I will respect your selection as appropriate for your business case. While I believe the world is changing, I simply cannot recommend Arduino & 3rd party code as a proper foundation to build commercial products ...unless you are bu...
by kvv213
Sun Jan 19, 2020 12:09 am
Forum: General discussion
Topic: Correct usage of HAL functions in Arduino code
Replies: 26
Views: 24590

Re: Correct usage of HAL functions in Arduino code

... ... And it is great because me as a developer can use the framework that I know and I have access instantly to a such a great amount of libraries most of them work just perfectly without any additional tuning with STM32. & ... Imagine a situation when you are a firmware developer at a compa...
by kvv213
Sat Jan 18, 2020 7:27 pm
Forum: General discussion
Topic: Correct usage of HAL functions in Arduino code
Replies: 26
Views: 24590

Re: Correct usage of HAL functions in Arduino code

@mrburnette Don't agree with your option, here are my thoughts: ... At my current development I have to move from AVR platform (two different chips, not ATMEGA328) to STM32 (and here I had to switch to more advanced chip during development). PS. Sorry for the flame :) 6. Arduino code is lighter for...

Go to advanced search