-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
renesas-ra: Update FSP to the latest v4.4.0 and modify related files. #11386
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
Conversation
Code size report:
|
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## master #11386 +/- ##
=======================================
Coverage 98.36% 98.36%
=======================================
Files 156 156
Lines 20611 20611
=======================================
Hits 20273 20273
Misses 338 338 |
Looks good, thanks! I also had to fix the missing compiler barrier when testing v4.0.0. |
Thanks for doing this @TakeoTakahashi2020 . Are all the generated files needed? @iabdalkader mentioned before that he thinks only the ISR vector code is needed. |
@dpgeorge san, Thank you for pointing that out. I will check some more details to see if there are any files that can be deleted. |
Hi, I tested all the changes (in this PR, on top of the other PR and my USB/board support in #11405) and things seem to work fine, well at least for RA6M5, I will do more testing once everything is merged. Thanks @TakeoTakahashi2020 . |
@iabdalkader san, Thank you very much for the test and I am very happy to see your PR to support Portenta C33. I am still checking and testing if there are any files that can be deleted. I need a little more time. |
@dpgeorge san, I have finished checks and tests. However, some header files could be removed by editing some c-source files to remove unreferenced instances. This reduces RAM usage 360 bytes (for RA4M1_CLICKER), 312 bytes (for EK-RA4M1), 468 bytes (for EK-RA4W1), 648 bytes (for EK-RA6M1), 744 bytes (for EK-RA6M2 ) . Also I have removed the unreferenced board_init.c and board_leds.c from the Makefile. This was already reported in #10943 by @iabdalkader . |
@TakeoTakahashi2020 this PR looks quite good now. Thanks for removing the unnecessary files.
Yes, if you rebase you can leave out that commit. And, are you happy to squash the following two commits together:
|
@dpgeorge san, OK, I will rebase this and squash the two. |
Signed-off-by: Takeo Takahashi <[email protected]>
* Update boards and ra files * Remove unreferenced files, board_init.c and board_leds.c, from Makefile * Remove unreferenced FSP instances from ra_gen/*.[ch] * Remove unreferenced FSP config files ra_cfg/*.h * e2 studio generates FSP instances but renesas-ra uses only followings: lpm, flash, ioport Signed-off-by: Takeo Takahashi <[email protected]>
FSP v4.4.0 refers to CMSIS V5.4.1, and __COMPILER_BARRIER() is used in bsp. On the other hand, lib/cmsis is V5.1.0 and the macro is not defined. Therefore, compile error happens. As the workaround, the macro definition is added. If lib/cmsis is updated in the future, this addition can be removed. Signed-off-by: Takeo Takahashi <[email protected]>
83271f1
to
de02aae
Compare
Rebase and squash are completed. |
Thanks @TakeoTakahashi2020 ! |
Thank you @dpgeorge san. |
FSP has been updated to the latest v4.4.0.
This PR is related with the PR #10943 conversation.
I really appreciate it if you could review it @dpgeorge , @iabdalkader, @mbedNoobNinja.
Changes are as follows:
FSP v4.4.0 refers to CMSIS V5.4.1, and
__COMPILER_BARRIER()
is used in bsp.On the other hand, lib/cmsis is V5.1.0 and the macro is not defined.
Therefore, compile error happens.
As the workaround, the macro definition is added.
If lib/cmsis is updated in the future, this addition can be removed.
I have updated as following steps:
e2 studio 2023-04
+FSP v4.4.0
that was installed by setup_fsp_v4_4_0_e2s_v2023-04.exe on https://github.com/renesas/fsp/releases/tag/v4.4.0.configuration.xml
in the projct and pressGenerate Project Content
.boards/EK & CLICKER/ra_cfg/*
andboards/EK & CLICKER/ra_gen/*
with generated files.AttributeError: module 'serial' has no attribute 'tools'
error.