A community member has associated this post with a similar question:
How can we enable C++ language development on the AzureRTOS RZ/A1H IAR sample project?

Only moderators can edit this content.

How can we enable C++ language development in the AzureRTOS RZ/A1H e2studio/gcc sample project?

GR_yoji 46 Reputation points
2021-07-21T01:09:08.767+00:00

We are currently trying to build a development environment based on the AzureRTOS RZ/A1H e2studio/gcc sample project, and we would like to be able to develop in C++ in that environment.

The sample project we are using is as follows
https://github.com/azure-rtos/samples/releases/download/v6.1_rel/Azure_RTOS_6.1_Renesas_RZA1_RSK_E2Studio_2021_01_08.zip

Simply creating a project for C++ in e2studio did not build well. So we added some section information in the linker script that we thought would be needed for C++, and the build was successful.

However, when we wrote the C++ class code and created an instance using new, it seems that the address of the instance does not indicate the proper area (somehow it indicates the ROM area instead of the RAM area), and if we run it as is, a protection exception occurs.

This is probably due to insufficient porting of the memory management functions required by C++, but I don't have all the information on porting for C++, so I can't proceed properly.

If anyone has any advice, reference information, samples, etc. on how we can develop programs in the C++ language in the e2studio/gcc environment for the RZ/A1H, please let me know.

Azure RTOS
Azure RTOS
An Azure embedded development suite including a small but powerful operating system for resource-constrained devices.
324 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,525 questions
{count} votes