Skip to content

Commit

Permalink
mcu/pic32: Add image_header region
Browse files Browse the repository at this point in the history
This add dependency to mgmt/image_header package
that provides dummy image header so elf file can
be loaded to device without creating the image with newt tool.
This image header is then replaced by newt tool.
  • Loading branch information
kasjer committed Mar 16, 2024
1 parent 17e9a52 commit bc7c312
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hw/mcu/microchip/pic32mz/p32mz_app.ld
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ MEMORY
{
kseg1_boot_mem : ORIGIN = 0x9FC00000, LENGTH = 0x480
kseg1_boot_mem_4B0 : ORIGIN = 0xBFC004B0, LENGTH = 0xA50
kseg0_image_header_mem (r) : ORIGIN = 0x9D000000, LENGTH = 0x20
INCLUDE p32mz_app_mem.ld
config_BFC0FF40 : ORIGIN = 0xBFC0FF40, LENGTH = 0x4
config_BFC0FF44 : ORIGIN = 0xBFC0FF44, LENGTH = 0x4
Expand Down Expand Up @@ -695,6 +696,10 @@ SECTIONS
KEEP(*(.boot_reset))
} > kseg1_boot_mem
/* Boot Sections */
.image_header :
{
KEEP(*(.image_header*)) /* Image header */
} > kseg0_image_header_mem
.reset :
{
_app_reset = .;
Expand Down
1 change: 1 addition & 0 deletions hw/mcu/microchip/pic32mz/pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ pkg.keywords:
pkg.deps:
- "@apache-mynewt-core/hw/hal"
- "@apache-mynewt-core/hw/drivers/uart/uart_hal"
- "@apache-mynewt-core/mgmt/image_header"

pkg.deps.ETH_0:
- "@apache-mynewt-core/hw/drivers/lwip/pic32_eth"

0 comments on commit bc7c312

Please sign in to comment.