Skip to content

Commit

Permalink
soc: riscv32: fix zero-riscy zephyr,flash node
Browse files Browse the repository at this point in the history
For OpenVega board, in the case of the Zero Riscy core,
the flash partition used for the code and data is the
M0 ARM core's 256KB flash region. This is closest to
the RISC core.
The m0_flash node defines where the interrupt vector
is located for the Zero Riscy core, and one needs to
restrict the application so its interrupt vector is
placed accordingly.

Fixes: 34b0516 ("boards: riscv32: rv32m1_vega:
                      enable MCUboot for ri5cy core")

Signed-off-by: Alex Porosanu <[email protected]>
  • Loading branch information
alexandru-porosanu-nxp authored and MaureenHelm committed Aug 7, 2019
1 parent ea366e9 commit 453ee5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion boards/riscv/rv32m1_vega/rv32m1_vega_zero_riscy.dts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@

chosen {
zephyr,sram = &m0_tcm;
zephyr,flash = &zero_riscy_code_partition;
zephyr,flash = &m0_flash;
zephyr,console = &uart0;
zephyr,uart-pipe = &uart0;
zephyr,code-partition = &zero_riscy_code_partition;
};
};

0 comments on commit 453ee5e

Please sign in to comment.