Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(mpfs-pmp-demo) "SECTION_START_ADDRESS" setting in mpfs-ddr-u54-3.ld file from "0x80000000" to "0x80200000" #10

Open
okawaj9 opened this issue Mar 23, 2022 · 4 comments
Labels
good first issue Good for newcomers

Comments

@okawaj9
Copy link

okawaj9 commented Mar 23, 2022

1. Phenomenon:
mpfs-pmp-demo UART3 does not output messages to serial console (eg. PuTTY).

2. Resolution:
polarfire-soc-bare-metal-examples/applications/mpfs-pmp-demo/mpfs-pmp-app-u54-3/src/application/hart3/u54_3.c
line 27

Current>> mss_uart_instance_t *g_uart= &g_mss_uart3_hi;
Resolution>> mss_uart_instance_t *g_uart= &g_mss_uart3_lo;

Best Regards.

@okawaj9
Copy link
Author

okawaj9 commented Mar 23, 2022

In addition, should we change "SECTION_START_ADDRESS" setting in mpfs-ddr-u54-3.ld file from "0x80000000" to "0x80200000" ?
(mpfs-pmp-app-u54-3/src/boards/icicle-kit-es/platform_config/linker/mpfs-ddr-u54-3.ld)

@nitindeshpande
Copy link
Collaborator

@okawaj9

mpfs-pmp-demo UART3 does not output messages to serial console (eg. PuTTY) and the resolution -
The resolution works for printing the message, but what should actually be done is to enable the PMPs using configurator as described here. This will assign UART3_HI and UART4_HI to the second context and you will be able to test the PMP functionality.

In addition, should we change "SECTION_START_ADDRESS" setting...
You are right about the linker script change. We will correct that.

@okawaj9
Copy link
Author

okawaj9 commented Mar 26, 2022

This will assign UART3_HI and UART4_HI to the second context and you will be able to test the PMP functionality.

Thanks. Confirmed with HSS 2021.04 (and pmp-app 2021.08) . It should keep "mss_uart_instance_t *g_uart= &g_mss_uart3_hi;" to output messages on UART3 with this PMP-DEMO.

On the other hand, HSS 2022.02 (and other versions) failed to boot when PMP enabled in order to do the pmp-demo. While struggling, I mistakenly filed as "&g_mss_uart3_lo;" is required. Sorry about it.

Now, I'm still struggling and debugging the PMP-DEMO with some default settings (for example, seeing CONFIG_SERVICE_BOOT_DDR_TARGET_ADDR=0xA0000000, CONFIG_SERVICE_BOOT_MMC_USE_GPT=y). But it's outside of this thread. Then once something find, will file other issue. Thanks.

@okawaj9 okawaj9 changed the title (mpfs-pmp-demo) UART3 does not display message (mpfs-pmp-demo) "SECTION_START_ADDRESS" setting in mpfs-ddr-u54-3.ld file from "0x80000000" to "0x80200000" Mar 26, 2022
@nitindeshpande nitindeshpande added the good first issue Good for newcomers label Mar 28, 2022
@nitindeshpande
Copy link
Collaborator

Thanks @okawaj9, for reporting the new issue, we will address that.

Will keep this issue open until the linker script improvement is available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants