How to customize a crate for personal use?

I am using a crate that forces the program to name the development board in the .toml file. I'm customizing the memory definition file so that the linking process changes the memory layout. This fails because my memory file generates an error that says

 = note: rust-lld: error: /home/dkhayes117/IdeaProjects/zerorisc/target/riscv32imac-unknown-none-elf/debug/build/e310x-4d246b8d2b1c4f1e/out/memory-fe310.x:3: region 'RAM' already defined
          >>>     RAM : ORIGIN = 0x80000000, LENGTH = 16K

This is the file that causes the memory region to be defined before my file is implemented

Is there a way to clone the crate and customize it to get around this? Or is there a better way?

I think I figured out part of it. In my .cargo/config file I didn't rename the compiler flag to the linker. After that I was able to build. It isn't what I want yet, I may have to modify the linker file, but it does build.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.