Skip to content

Adding any code that enables SW interrupts makes the ELF grow huge in size (64M) #10

@atharvalele

Description

@atharvalele

Hi!

I was trying to get interrupts for UART and the PTC up and running and I noticed that enabling interrupts makes the binary file size grow to 64M (and subsequently takes over 3 minutes to upload to target)

I looked at the linker script and I saw that it places some SW interrupt related stuff into ram2 which is located at 0x4000000 and that's why the ELF file grows to 64M

The comments in the linker script say that this is needed for Whisper, the simulation/debugging tool.

If I don't need Whisper, how do I remove the data from being placed in ram2? Hope someone can help! I'm totally lost when it comes to linker scripts, and I don't know enough about the core to know what needs to go where in memory. I'm willing to look things up and try and fix it myself but I hope someone can help out / point me in the correct direction.

Thanks!

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