F0 EFL Patch

This forum is dedicated to feedback, discussions about ongoing or future developments, ideas and suggestions regarding the ChibiOS projects are welcome. This forum is NOT for support.
tecnologic
Posts: 124
Joined: Tue Jan 10, 2012 8:42 am
Has thanked: 21 times
Been thanked: 5 times

F0 EFL Patch

Postby tecnologic » Wed May 12, 2021 9:17 am

HI all,

i needed efl support for STM32F072 so i ported STM32F1 efl code to F0. I have no other F0 Hardware here so only tested on F072.

Regards

Tec
Attachments
f0_efl_patch.zip
(10.18 KiB) Downloaded 123 times

tecnologic
Posts: 124
Joined: Tue Jan 10, 2012 8:42 am
Has thanked: 21 times
Been thanked: 5 times

Re: F0 EFL Patch

Postby tecnologic » Wed May 12, 2021 9:25 am

Is it needed to take the sectors used in EFL MFS out of the linker script? So my device is 32 sectors and i use sector 30 and 31. From a first look it makes no difference if i use the stock .ld file or a modified one where the last 2 sectors are not in flash like below?

Code: Select all


/*
 * STM32F072xB memory setup.
 */
MEMORY
{
    flash0 (rx) : org = 0x08000000, len = 120k
    flash1 (rx) : org = 0x00000000, len = 0
    flash2 (rx) : org = 0x00000000, len = 0
    flash3 (rx) : org = 0x00000000, len = 0
    flash4 (rx) : org = 0x00000000, len = 0
    flash5 (rx) : org = 0x00000000, len = 0
    flash6 (rx) : org = 0x00000000, len = 0
    flash7 (rx) : org = 0x00000000, len = 0
    ram0   (wx) : org = 0x20000000, len = 16k
    ram1   (wx) : org = 0x00000000, len = 0
    ram2   (wx) : org = 0x00000000, len = 0
    ram3   (wx) : org = 0x00000000, len = 0
    ram4   (wx) : org = 0x00000000, len = 0
    ram5   (wx) : org = 0x00000000, len = 0
    ram6   (wx) : org = 0x00000000, len = 0
    ram7   (wx) : org = 0x00000000, len = 0
    eeprom (rw) : org = 0x0801E000, len = 8k
}

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: F0 EFL Patch

Postby Giovanni » Wed May 12, 2021 10:44 am

Hi,

Default ld files do not need to be "aware" of the rest of SW. If you use MFS on internal flash it is your responsibility to create ad-hoc ld files.

Different layers in the architectures.

Giovanni

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: F0 EFL Patch

Postby Giovanni » Thu Jun 03, 2021 10:34 am

Hi,

Added the patch but no testing on my side.

Giovanni


Return to “Development and Feedback”

Who is online

Users browsing this forum: No registered users and 35 guests