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

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
ExDes
Posts: 8
Joined: Thu Apr 29, 2021 10:25 pm

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

Post by ExDes » Fri Jul 16, 2021 8:17 pm

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?

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

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

Post by jimmo » Mon Jul 19, 2021 2:14 am

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?

ExDes
Posts: 8
Joined: Thu Apr 29, 2021 10:25 pm

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

Post by ExDes » Mon Jul 19, 2021 4:20 pm

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.

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

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

Post by jimmo » Tue Jul 20, 2021 12:27 am

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

ExDes
Posts: 8
Joined: Thu Apr 29, 2021 10:25 pm

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

Post by ExDes » Tue Jul 20, 2021 12:49 am

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?

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

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

Post by jimmo » Tue Jul 20, 2021 1:11 am

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.

ExDes
Posts: 8
Joined: Thu Apr 29, 2021 10:25 pm

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

Post by ExDes » Wed Jul 21, 2021 3:25 pm

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!

Post Reply