2.3k views
in Getting started by

I am having an issue with building the "HelloWorld" example for the RA6M3G Evaluation Kit using Renesas e2 studio . I followed the instructions here multiple times, just to be sure.
But I get this error every time:
.../e2studio_v2022-10_fsp_v4.2.0/toolchains/gcc_arm/gcc-arm-none-eabi-10.3-2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: cannot open linker script file memory_regions.ld: No such file or directory

How would I fix this?

EDIT: Fixed by installing the newest version of Renesas e2 studio. See the answers under Manfred's comment below.

1 Answer

+1 vote
by
 
Best answer

Hello Tinus,

in which directory (full path name) did you unzip the Build Environment? 

And please check if the the requested linker script is located in \RA6M3G-EvaluationKit\Application\Project\GCC - is this available there?

Best regards,
Manfred.

by

Hi Manfred,

Thanks for the quick reply.
The file is indeed present in \RA6M3G-EvaluationKit\Application\Project\GCC
The path for the Build environment is as follows:
C:\Users\[redacted]\RenesasRA\RA6M3G-EvaluationKit 

The user profile I'm on, which is the same as the user profile used for the installation, has admin privileges.

Kind regards,
Tinus

by

Hi Tinus,

maybe the interesting part is C:\Users\[redacted]\ - if this is just a short name it should work - if there are blanks or other special characters, it may produce some issues with e2 Studio.

Unfortunately, Eclipse (which is used for e2 Studio) has some restrictions with path length and path names - therefore we recommend to store the entire Build Environment in a simple and short path like C:\RenesasRA\RA6M3G-EvaluationKit.

Let me know if it works when you place it there...

Best regards,
Manfred.

by

I changed the directory to just C:\RenesasRA\RA6M3G-EvaluationKit. Like you suggested but the problem is still there. 
I realised I had an old version of J-link, so I updated it to the last full release, still no luck. Building and flashing through the .bat still works fine though.

Just to be sure, I'm supposed to set the postprocess like this, right? I set it, save, and then build by pressing F8.

by
Sounds strange... The JLINK version is not related to the issue - as JLINK is used for flashing the binary. Currently we have an issue with the linker (means, creating the binary).

The PostProcess is the right location - but the Post Process is also not related for the reported issue.

Can you test a "Clean Project" and a "Build Project" within the e2Studio and post the entire output?
by
Hello Manfred,

I managed to fix it!
I was using e2 studio RA FSP 4.20, (2022-10) this was the latest version I could find recently. However, installing e2 studio through the link provided in the "Getting started" article was actually a newer version than what I already had installed (and which I assumed would just work). This newest/different version of e2 studio works flawlessly with the method provided in the documentation.

Thanks for taking the time to try to answer my question.

Kinds regards,
Tinus
by
Thanks for sharing the solution!

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...