Skip to content

Generating memory.x without embassy-stm32Β #580

@peku33

Description

@peku33

Hi,

In my project I would like to use stm32_metapac directly, as my chip isn't supported by other stm32 pac crates (STM32C0 family). For now I'm not using async, so I don't need whole embassy project included. I really like stm32_metapac layout and I have good feelings about it.

I really like the idea of metadata exporting, so I came out with an idea that memory.x could be easily generated automatically. I started searching through the project and I found that it is done by child crate - embassy-stm32. I started digging and I've found that this was done here before: fad4bc0

Maybe there is a chance to have that functionality restored into stm32_metapac? This crate is the place where pac meets the cortex-m and cortex-m-rt (which consumes the file) so from my understanding the producer and the consumer should be as close as possible. This probably don't change much for embassy-stm32 users, the feature could simply be forwarded here.

I hope you can suggest me a way to go or maybe rethink the idea of memory.x generation here.

Thanks for awesome work with stm32-metapac! πŸ†

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