RA6E2 coremark跑分测试313分
瑞萨RA6E2地奇星开发板这款开发板性能很强的,是ARM cortex M33内核,主频200MHZ,Flash 256KB,40-KB SRAM,这可比STM32的F4都要强不少,因此特别想测试一下这块板子的性能,所以移植使用开源的coremark软件库来进行跑分测试。最终性能如下:

移植步骤如下:
1。 去官网coremark源码,这个过于简单,不赘述。
2。将coremark源文件夹的这几个文件拷贝到工程目录中。


只需要这8个文件。
3。修改portme文件中的宏定义

//#define NSECS_PER_SEC CLOCKS_PER_SEC
//#define CORETIMETYPE clock_t
//#define GETMYTIME(_t) (*_t = clock())
#define MYTIMEDIFF(fin, ini) ((fin) - (ini))
#define TIMER_RES_DIVIDER 1
#define SAMPLE_TIME_IMPLEMENTATION 1
//#define EE_TICKS_PER_SEC (NSECS_PER_SEC / TIMER_RES_DIVIDER)
#define TICKS_PER_SECONDS 1000
#include "hal_data.h"
#define CORETIMETYPE uint32_t
#define GETMYTIME(_t) (*_t = HAL_GetTick())
#define EE_TICKS_PER_SEC TICKS_PER_SECONDS
#ifndef COMPILER_VERSION
#ifdef GNUC
#define COMPILER_VERSION "GCC"VERSION
#else
#define COMPILER_VERSION "Please put compiler version here (e.g. gcc 4.1)"
#endif
#endif
#ifndef COMPILER_FLAGS
#define COMPILER_FLAGS "-Omax"// 这个值根据实际的编译优化选项进行填写
#endif
#ifndef MEM_LOCATION
#define MEM_LOCATION "STACK"
#endif

设置为最大优化选项 "-Omax",同时打开keil

4。主函数添加如下功能
#include "hal_data.h"
#include "main.h"
#if (1 == BSP_MULTICORE_PROJECT) && BSP_TZ_SECURE_BUILD
bsp_ipc_semaphore_handle_t g_core_start_semaphore =
{
.semaphore_num = 0
};
#endif
/*******************************************************************************************************************//**
-
main() is generated by the RA Configuration editor and is used to generate threads if an RTOS is used. This function
-
is called by main() when no RTOS is used.
*********************************************************************************************************************/
void hal_entry(void)
{
/ TODO: add your own code here */
hal_systick_init();
UART0_Init();
uint8_t txData;
printf("地奇星RA6E2 coremark跑分测试:===\r\n");
coremark_main();
}
5。编译工程,烧录代码,打开串口助手

最后跑分为313分,这个分数已经非常的高了,比STM32F407要高很多
附件是我的工程源代码,这里无私奉献给RA生态工作室,希望能在论坛采纳,放入官网。
*附件:RA6E2_UART.zip
|