Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird behavior around --xram-loc #48

Open
mtfurlan opened this issue Mar 20, 2023 · 0 comments
Open

Weird behavior around --xram-loc #48

mtfurlan opened this issue Mar 20, 2023 · 0 comments

Comments

@mtfurlan
Copy link

I'm trying to compile the code in https://github.com/MatzElectronics/CH559sdccUSBHost
If I compile with platformio I it just doesn't behave properly, my usb device just kinda hangs.

If I modify builder/main.py:88 LINKFLAGS to include "--xram-loc", "1536" the flashed code works as expected.

--- 87,94 ----
      CPPDEFINES=["F_CPU=$BOARD_F_CPU", "HEAP_SIZE=" + __getSize("size_heap", env)],
      LINKFLAGS=[
          "-m%s" % board_config.get("build.cpu"),
+         "--xram-loc",
+         "1536",
          "--iram-size",
          __getSize("size_iram", env),
          "--xram-size",

I really have no idea why this might be, but I feel like exposing xram-loc the way we expose xram-size is not the correct solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant