Skip to content

Enabling Bootloaders #411

Closed
Closed
@BennehBoy

Description

@BennehBoy

I'm porting some work from Roger's core which enables maple BL, rogers BL2, and HID BL2+

I have the core code sorted (easy part) to recognise the leaf magic word and magic numbers.

I'm concentrating on HID BL for this core because the v3.0 only takes up 2K of flash for F1 so is much better suited than Roger's BL.

But what I need now is to be able to set a definition within the upload part of boards.txt

Eg

  • F4 I need to pass -DVECT_TAB_OFFSET=0x4000 -DHIDBL_F4
  • F1 I need to pass -DVECT_TAB_OFFSET=0x1000 -DHIDBL_F1

The intention is then to parse within the linker script to set things up accordingly.

Is this doable, or is there a way around it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions