Search found 39 matches

by Alextrical
Fri May 19, 2023 11:42 am
Forum: General discussion
Topic: Reserve last page of Flash for virtual EEPROM
Replies: 2
Views: 661

Re: Reserve last page of Flash for virtual EEPROM

Sounds good, and that is probably what I will end up doing for my local setup, but that is unlikely to survive across updates. However I'm thinking more for a larger scale in a system like Marlin? Where an end user can specify that they want to use the virtual EEPROM from a configuration option, but...
by Alextrical
Fri May 19, 2023 7:30 am
Forum: General discussion
Topic: Reserve last page of Flash for virtual EEPROM
Replies: 2
Views: 661

Reserve last page of Flash for virtual EEPROM

Hi All I'm currently trying to reserve the last page of Flash memory for use with the Virtual EEPROM, however I'm struggling to get the program space to not overlap, as this does not seem to change when the virtual EEPROM is enabled. Is there a way to set the maximum 'program storage space' from wit...
by Alextrical
Wed Aug 24, 2022 1:05 pm
Forum: General discussion
Topic: Emulated EEPROM not storing values
Replies: 7
Views: 2037

Re: Emulated EEPROM not storing values

In short the fix was adding

Code: Select all

#define FLASH_BANK_NUMBER       FLASH_BANK_1
to the Variant*.h file
by Alextrical
Wed Aug 24, 2022 1:02 pm
Forum: General discussion
Topic: Emulated EEPROM not storing values
Replies: 7
Views: 2037

Re: Emulated EEPROM not storing values

I have it working with your advice, "Flash_Bank_Number" should set automatically with the following logic shouldn't it? /* Be able to change FLASH_BANK_NUMBER to use if relevant */ #if !defined(FLASH_BANK_NUMBER) && defined(FLASH_BANK_1) #if defined(FLASH_BANK_2) #define FLASH_BANK...
by Alextrical
Wed Aug 24, 2022 12:16 pm
Forum: General discussion
Topic: Emulated EEPROM not storing values
Replies: 7
Views: 2037

Re: Emulated EEPROM not storing values

I have tried setting the following with no avail so far. #define FLASH_BANK_1 #define FLASH_PAGE_NUMBER 63 #define FLASH_PAGE_SIZE 0x800 #define FLASH_END 0x0801FFFF #define FLASH_BANK1_END 0x0801FFFF #define FLASH_BASE_ADDRESS 0x0801F800 the memory config for 128K is the following 2022-08-24_13-14....
by Alextrical
Wed Aug 24, 2022 7:38 am
Forum: General discussion
Topic: Emulated EEPROM not storing values
Replies: 7
Views: 2037

Re: Emulated EEPROM not storing values

Thank you, I think that's exactly what I'm looking for :)
I'm guessing that these would need to be adjusted per Variant?

Is the solution to set the values in the Variant file, similar to this?
by Alextrical
Tue Aug 23, 2022 7:38 pm
Forum: General discussion
Topic: Emulated EEPROM not storing values
Replies: 7
Views: 2037

Emulated EEPROM not storing values

Hi all I'm currently experiencing a issue on a STM32G0B1CBT with the ability to store and retrieve values from the emulated EEPROM. Using the example sketch found on the projects Git repo here I'm expecting the serial output to be 0 254 0 254 0 254 however it rapidly outputs 0 0 0 0 0 0 Using a STM3...
by Alextrical
Tue Aug 23, 2022 7:03 pm
Forum: IDE's
Topic: Arduino 2.0 RC9 not compiling generic F, G, H & L series
Replies: 3
Views: 5997

Re: Arduino 2.0 RC9 not compiling generic F, G, H & L series

Currently testing on Arduino RC9.2 (Flatpak and Appimage on Fedora), I can confirm that the issue isn't reproducible now.
Presumably it was as you mentioned, an local installation issue.

Thank you. I believe this is all resolved. sorry for the inconvenience.
by Alextrical
Tue Aug 23, 2022 8:54 am
Forum: General discussion
Topic: Single pin Hardware serial
Replies: 11
Views: 2936

Re: Single pin Hardware serial

I just found the solution, and then saw your response. You are 100% correct. This allows me to set Bit15 of CR2, :D It turns out that also calling __HAL_RCC_USART2_CLK_ENABLE(); before setting the bit works TX is now using the RX Pin. Woo Serial2.begin(9600); USART2->CR1 &= ~(1 << 0); // UE = 0....
by Alextrical
Mon Aug 22, 2022 4:31 pm
Forum: General discussion
Topic: Single pin Hardware serial
Replies: 11
Views: 2936

Re: Single pin Hardware serial

It seems like I'm not able to set the register bit with the USART2->CR2 |= 1 << 15; command the CR2 register looks empty before and after writing the value. CR1 is empty until Serial2.begin is issued too. HardwareSerial Serial2(USART2); void setup() { Serial.begin(9600); while (!Serial) { ; // wait ...

Go to advanced search