-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Update Renesas GCC compiler ports #135
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
Signed-off-by: Dinh Van Nam <[email protected]>
* RX600v2 * RX600 * RX100 Signed-off-by: Dinh Van Nam <[email protected]>
|
Hello ravibhagavandas and n9wxu, Thank you for taking care of Renesas RX MCU projects. (But I'm not an engineer of Renesas Electronics Corporation. I'm one of users of Japanese forum regarding to Renesas MCUs.) I want your advice. I'm trying to fix build errors of RTOSDemo projects regarding to Renesas RX MCUs and to add more IDEs which can build the projects. But missing evaluation boards at my side bothers me. Do you think that I can post a pull request only with build check passed but without any check using evaluation boards? If I can post a pull request without evaluation boards, it makes me easier to do such things regarding to fixing build errors and adding more IDEs. For example, only one line change is enough to fix build error which was already discussed in the following thread. Compiler error when building FreeRTOS for Renesas RX113 (RX100) Demo SOURCE: FreeRTOSConfig.h WRONG:
FIXED:
NOTE: In my environment, the following error which was mentioned in the following post is not displayed and I can build the both projects. (But 'warning' message and 'information' message are displayed.) Compiler error when building FreeRTOS for Renesas RX113 (RX100) Demo <-- the same thread as above
Best regards, |
|
Hi @ravibhagavandas, thank you so much for your merge. |
We always recommend to run the demo on the evaluation board to make sure it works, if there is a change in the runtime functionality. Looking at the change mentioned above, its only modifying a macro while underlying value remains same so its not a major change. Are there other RX demos which have this issue? If so is it possible to run on one of them? |
|
Hello @ravibhagavandas and @VanNamDinh, Thank you for reply. Regarding to the RX113/RX100 issue, please look at the following search result. I think that you can notice that '#define configTICK_VECTOR VECT_CMT0_CMI0' is for IAR(ICCRX) but somehow this definition is used for Renesas(CC-RX) in case of RX113/RX100. And not only search result but also source codes of port layer show us that '#define configTICK_VECTOR _CMT0_CMI0' has to be used for Renesas(CC-RX) in case of RX113/RX100. Port layer using IAR(ICCRX) Port layer using GCC(GNURX) Port layer using Renesas(CC-RX) RTOSDemo using IAR(ICCRX) or GCC(GNURX) RTOSDemo using Renesas(CC-RX) Source/portable/Renesas/RX100/port.c: Source/portable/Renesas/{RX200, RX600, RX600v2}/port.c: Best regards, |
|
Hello @VanNamDinh (and @ravibhagavandas and @n9wxu), Yesterday I understood that GCC/RX200 port was newly added (but no test program was added). Moreover today I notice that the port is wrong. The port should be for RX200 group MCUs using RXv1 CPU core but without FPU. RXv1 CPU core has only one accumulator. (On the other hand, RXv2 and RXv3 CPU cores has two accumulators.) Nevertheless the port attempts to save/restore FPSW(FPU's PSW) and two accumulators(using RXv2 CPU core instructions)! (Please compare GCC/RX200/port.c and Renesas/RX200/port.c.) GCC/RX200/port.c WRONG: L166: L238: L314: L353: CORRECT(probably correct but not tested): ` ` ` On the other hand, Renesas/RX200 port is as follows. Renesas/RX200/port.c L148: L203: L271: L299: Best regards, |
Update Renesas GCC compiler ports
Description
This contains the changes for Renesas GCC compiler ports, authored in PR #89, rebased to latest master branch. Also it fixes the ports as per the proposal in the PR
Test Steps
Demos for Renesas GCC compiler ports fails without the fix mentioned above.
https://github.com/FreeRTOS/FreeRTOS/tree/master/FreeRTOS/Demo/RX200_RX231-RSK_GCC_e2studio_IAR
https://github.com/FreeRTOS/FreeRTOS/tree/master/FreeRTOS/Demo/RX600_RX64M_RSK_GCC_e2studio
Related Issue
#89
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.