Page 1 of 1

[NUCLEO-H743ZI] - `RAM_D2' overflowed by 805,289,984 bytes error - Please help!

Posted: Fri Jul 16, 2021 8:17 pm
by ExDes
I followed the instructions provided in the readme file of the repository. All went well until I hit the linker. I received this message:

Code: Select all

LINK build-NUCLEO_H743ZI/firmware.elf
arm-none-eabi-ld: build-NUCLEO_H743ZI/firmware.elf section `.eth_buffers' will not fit in region `RAM_D2'
arm-none-eabi-ld: region `RAM_D2' overflowed by 805289984 bytes
Makefile:695: recipe for target 'build-NUCLEO_H743ZI/firmware.elf' failed
make: *** [build-NUCLEO_H743ZI/firmware.elf] Error 1
I searched the files for a setting that might correct this issue without success. I do need the Ethernet for this project. An overflow of 805,289,984 bytes seems somewhat excessive given the capacity of the processor. Any help would be appreciated.

Has anyone actually gotten this board to work?

Re: [NUCLEO-H743ZI] - `RAM_D2' overflowed by 805,289,984 bytes error - Please help!

Posted: Mon Jul 19, 2021 2:14 am
by jimmo
ExDes wrote:
Fri Jul 16, 2021 8:17 pm
Has anyone actually gotten this board to work?
This board does compile for me (although I do not have a physical board to test on). I'm using the very latest code from github (commit hash 9f71a11d3).

Can you provide the exact steps you used to compile it? Did you change any files?

Re: [NUCLEO-H743ZI] - `RAM_D2' overflowed by 805,289,984 bytes error - Please help!

Posted: Mon Jul 19, 2021 4:20 pm
by ExDes
Thank you for the reply jimmo. I also used the latest code from github and followed the instructions exactly. The build worked fine for the NUCLEO-F767, but I keep getting this error with the NUCLEO-H743. I used the default compiler specified, arm-none-eabi-gcc. The steps I used are as follows:

Code: Select all

    git clone https://github.com/micropython/micropython
    cd micropython
    make -C mpy-cross
    cd ports/stm32
    make BOARD=NUCLEO_H743ZI deploy
No changed were made to the micropython clone.

Re: [NUCLEO-H743ZI] - `RAM_D2' overflowed by 805,289,984 bytes error - Please help!

Posted: Tue Jul 20, 2021 12:27 am
by jimmo
ExDes wrote:
Mon Jul 19, 2021 4:20 pm
The build worked fine for the NUCLEO-F767, but I keep getting this error with the NUCLEO-H743. I used the default compiler specified, arm-none-eabi-gcc.
I just checked again... definitely working here for BOARD=NUCLEO_H743ZI

Which gcc version are you using? I have

Code: Select all

$ arm-none-eabi-gcc --version
arm-none-eabi-gcc (Arch Repository) 11.1.0

Re: [NUCLEO-H743ZI] - `RAM_D2' overflowed by 805,289,984 bytes error - Please help!

Posted: Tue Jul 20, 2021 12:49 am
by ExDes
I seem to have a different version of the compiler:

Code: Select all

$ arm-none-eabi-gcc --version
arm-none-eabi-gcc (15:6.3.1+svn253039-1build1) 6.3.1 20170620
Is this a likely source of the problem?

Re: [NUCLEO-H743ZI] - `RAM_D2' overflowed by 805,289,984 bytes error - Please help!

Posted: Tue Jul 20, 2021 1:11 am
by jimmo
ExDes wrote:
Tue Jul 20, 2021 12:49 am
Is this a likely source of the problem?
6.3 was first released in December 2016... I would definitely want to rule that out before trying anything else.

[Solved] Re: [NUCLEO-H743ZI] - `RAM_D2' overflowed by 805,289,984 bytes error - Please help!

Posted: Wed Jul 21, 2021 3:25 pm
by ExDes
So I finally got this working. You were right - it was the GCC version that was causing problems.

I am running Linux Mint 19.3. The repositories point to the version 6.3 which was installed using the apt-get install for the factory PPAs... It seems that .debs aren't available for versions past 9.2, so I tried that. I still ran into the same problem. I manually installed 10.2 and initially had some problems with micropython make due to GCC not being found. This was solved, for now, by:

CROSS_COMPILE=/usr/share/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-

in the make command. It may be worth adding a note to the build instructions regarding the recommended compiler version. I just never gave that a second thought.

Thank you so much for your help!