Hi all,
I'm using Smart Configurator with T4 tcpip stack and GCC.
Unfortunately when I generate code with Smart Configurator I have bugs.
1. Into the file r_bsp_config.h the flag is always true
#define BSP_CFG_MCU_PART_ENCRYPTION_INCLUDED (true) /* Generated value. Do not edit this manually */
but with this value I have this error:
../src/smc_gen/r_t4_driver_rx/src/t4_driver.c:70:10: fatal error: r_tsip_rx_if.h: No such file or directory
2. after code generation, automatically the link to the lib
T4_Library_ether_ccrx_rxv1_big
but I use gcc and I need:
T4_Library_ether_gcc_rxv1_big
so I have to delete the link.
3 put automatically the dir:"${workspace_loc:/${ProjName}/src/smc_gen/r_t4_rx/lib/ccrx/}"
but I need "${workspace_loc:/${ProjName}/src/smc_gen/r_t4_rx/lib/gcc/}"
so, after code Generation by Smart Confiurator I have to change this problems manually.
Thanks in advance
Mark
Hello Mark,
This is a known issue, so please try to follow the workarounds below:
Step0:
Follow the steps in Chapter 5.1.1 of R01AN2009EJ0121.
[Your Project folder] \src\smc_gen\r_ether_rx\doc\en\r01an2009ej0121-rx-ether.pdf
Notice: If you do not perform this step, TCP/IP (T4) communication will not be possible even if the build passes.
Step1:
Generate codes by using Smart Configurator.
FYI: After do it, incorrect library information is overwritten in “.cproject” for e2 studio. In addition, the contents of the library folder are generated.
Step2:
Build your project.
Linker processing cannot find the gcc version library, so a link error occurs.
Step3:
Delete the library in the ccrx folder.
Step4:
Copy "libT4_Library_ether_gcc_rxv1_big.a" from the gcc folder to the ccrx folder.
gcc folder path : [Your Project folder] \src\smc_gen\r_t4_rx\lib\gcc\libT4_Library_ether_gcc_rxv1_big.a
ccrx foler path : [Your Project folder] \src\smc_gen\r_t4_rx\lib\ccrx\
Step5:
Rename the copied file to "libT4_Library_ether_ccrx_rxv1_big.a".
=> ccrx foler path : [Your Project folder] \src\smc_gen\r_t4_rx\lib\ccrx\libT4_Library_ether_ccrx_rxv1_big.a
Step6:
By building the project, it is possible to generate the correct executable file (.elf).
FYI: If you perform a clean & build at this time, the state of the project will return to Step 2, so be careful.
In that case, repeat steps 3 to 6.
Note1 : If you click code generate button of Smart Configurator, repeat steps 2 through 6.
Note2: r20an0051ej0210-rx-t4.pdf explains limitations for GCC version.
Although operation cannot be guaranteed, the sample code for T4 can still operate with 8.3.0.202102.
If you do not use the specified GCC version, it is your responsibility to perform a thorough evaluation.
Regards,
AL_Renesas
This is workaround, if you generate code again with Smart Configurator you need to do the same fixes.
This is annoying.
Hi,
I ran in the same issue. The description in r20an0051ej0210-rx-t4.pdf in chapter 5.6.3 under GCC works as well.
But in any case it is very annoying tas MSteva already mentioned.
I'm awaiting a fix for this as well, please!