Search found 34 matches

by heliochronix
Thu Feb 25, 2021 8:41 am
Forum: Small Change Requests
Topic: Adding Dual-Bank EFL Support to F429/F439 Topic is solved
Replies: 22
Views: 9765

Re: Adding Dual-Bank EFL Support to F429/F439 Topic is solved

Thank you! That's good to know for future reference. It looks like it hasn't changed yet, so it is doubtful it will I'm guessing. The new patch file does not modify these files and uses the CMSIS header values as-is. It should just modify hal_efl_lld.c and hal_efl_lld.h for the F4xx devices.
by heliochronix
Thu Feb 25, 2021 6:55 am
Forum: Small Change Requests
Topic: Adding Dual-Bank EFL Support to F429/F439 Topic is solved
Replies: 22
Views: 9765

Re: Adding Dual-Bank EFL Support to F429/F439 Topic is solved

Ah fascinating. Okay, good to know. I can probably make it use the existing values for now. They are definitely inconsistent with the Reference Manual, so if future updates fix that issue it will probably break the driver anyway, but I've made the appropriate changes and attached the file below. Jus...
by heliochronix
Thu Feb 25, 2021 1:37 am
Forum: Small Change Requests
Topic: Adding Dual-Bank EFL Support to F429/F439 Topic is solved
Replies: 22
Views: 9765

Re: Adding Dual-Bank EFL Support to F429/F439 Topic is solved

Hello again! I've implemented the EFL driver for the STM32F427/429/437/439 devices that support dual bank operations. I've managed to test this new code fairly thoroughly on an STM32F439VI, and it works nicely. I found some bugs with what looked like manual edits of the CMSIS files for these devices...
by heliochronix
Tue Feb 23, 2021 4:20 pm
Forum: Small Change Requests
Topic: Adding Dual-Bank EFL Support to F429/F439 Topic is solved
Replies: 22
Views: 9765

Re: Adding Dual-Bank EFL Support to F429/F439 Topic is solved

Okay, sounds good! I've set it to use the value FXCoder suggested (STM32_FLASH_DUAL_BANK_PERMANENT). I have it pretty much complete and just need to test it a bit on our device. We're hoping to see this added to stable_20.3.x if possible. It would not break any existing code I think. Would it be bet...
by heliochronix
Tue Feb 23, 2021 6:31 am
Forum: Small Change Requests
Topic: Adding Dual-Bank EFL Support to F429/F439 Topic is solved
Replies: 22
Views: 9765

Re: Adding Dual-Bank EFL Support to F429/F439 Topic is solved

I'm not sure I understand. The registry depends on device name as defined in the board file, does it not? How do we differentiate between the 2MB and 1MB devices in the registry otherwise? Apologies, I think your message changed. Would a runtime check of flash size be acceptable as well? Or jus...
by heliochronix
Tue Feb 23, 2021 2:20 am
Forum: Small Change Requests
Topic: Adding Dual-Bank EFL Support to F429/F439 Topic is solved
Replies: 22
Views: 9765

Re: Adding Dual-Bank EFL Support to F429/F439 Topic is solved

Okay, I'm taking a look at the registry option. It will involve making a duplicate of the entire stm32_registry section for these 4 devices to differentiate between G and I suffix devices as follows... #elif defined(STM32F439xx) || defined(STM32F429xx) #define STM32F429_439xx #define STM32F4XX #elif...
by heliochronix
Mon Feb 22, 2021 5:40 pm
Forum: Small Change Requests
Topic: Adding Dual-Bank EFL Support to F429/F439 Topic is solved
Replies: 22
Views: 9765

Re: Adding Dual-Bank EFL Support to F429/F439 Topic is solved

The STM32F439VG is switchable though. and such a change would cause this 1MB device to permanently be considered dual-banked. The only devices which are dual bank but not switchable are 2MB devices (that is, anything suffixed with an "I" as follows: STM32F4xxxI). It seems to me we'd either...
by heliochronix
Sat Feb 20, 2021 11:49 pm
Forum: Small Change Requests
Topic: Adding Dual-Bank EFL Support to F429/F439 Topic is solved
Replies: 22
Views: 9765

Re: Adding Dual-Bank EFL Support to F429/F439 Topic is solved

The bit field is defined in the header files, that is not really the problem. Rather, take for example the STM32F439VI (the device we are working with). This device is a 2MB flash device with dual bank support, but it is not configurable via the FLASH_OPTCR_DB1M bit because that bit is only for the ...
by heliochronix
Fri Feb 19, 2021 11:48 pm
Forum: Small Change Requests
Topic: Adding Dual-Bank EFL Support to F429/F439 Topic is solved
Replies: 22
Views: 9765

Re: Adding Dual-Bank EFL Support to F429/F439 Topic is solved

Reading some of the other code, I may have answered my own question. It seems it's supposed to be a descriptor of the entire flash memory, with a dual bank descriptor combining both banks together as one. However, I've ran into another issue.. Part of the difficulty of implementing dual bank support...
by heliochronix
Fri Feb 19, 2021 10:54 pm
Forum: Small Change Requests
Topic: Adding Dual-Bank EFL Support to F429/F439 Topic is solved
Replies: 22
Views: 9765

Re: Adding Dual-Bank EFL Support to F429/F439 Topic is solved

Thank you for your feedback Giovanni! If I may ask a couple questions about implementation... I'm trying to define the "flash_descriptor_t" structs for these STM32F4xx devices, and I'm not exactly sure what the correct way to do this is. Is a given "flash_descriptor_t" supposed t...

Go to advanced search