update bootloader (XIP setup function)

This commit is contained in:
stnolting 2023-11-18 18:39:04 +01:00
parent 44498f523c
commit fed34aad43
2 changed files with 6 additions and 6 deletions

View file

@ -2,7 +2,7 @@
-- Auto-generated memory initialization file (for BOOTLOADER) from source file <bootloader/main.bin>
-- Size: 4028 bytes
-- MARCH: default
-- Built: 31.10.2023 17:09:02
-- Built: 18.11.2023 18:38:26
-- prototype defined in 'neorv32_package.vhd'
package body neorv32_bootloader_image is
@ -879,9 +879,9 @@ x"6f6c746f",
x"72656461",
x"0a3e3e20",
x"444c420a",
x"4f203a56",
x"33207463",
x"30322031",
x"4e203a56",
x"3120766f",
x"30322038",
x"480a3332",
x"203a5657",
x"00000020",

View file

@ -293,9 +293,9 @@ int main(void) {
#endif
#if (XIP_EN != 0)
// setup XIP: clock mode 0, bursts enabled
// setup XIP: clock divider 0, clock mode 0, bursts enabled
if (neorv32_xip_available()) {
neorv32_xip_setup(SPI_FLASH_CLK_PRSC, 0, 0, SPI_FLASH_CMD_READ);
neorv32_xip_setup(SPI_FLASH_CLK_PRSC, 0, 0, 0, SPI_FLASH_CMD_READ);
neorv32_xip_burst_mode_enable();
neorv32_xip_start(SPI_FLASH_ADDR_BYTES);
}