Skip to content

Weird behavior around --xram-loc #48

@mtfurlan

Description

@mtfurlan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions