defragster
Senior Member+
Change to make CoreMark not Fault when ITERATIONS causes run time over 10 secs:
T:\tCode\T4\teensy4_coremark\core_portme.c ::
Doesn't return the right answer for the displayed info - but stops the fault. The line changed was :: secs_ret retval=((secs_ret)ticks) / (secs_ret)EE_TICKS_PER_SEC;
When value here takes over 10 secs to run :: "T:\tCode\T4\teensy4_coremark\core_portme.c" : #define ITERATIONS 24000
Without edit fault comes from :: T:\tCode\T4\teensy4_coremark\core_main.c : line 328
T:\tCode\T4\teensy4_coremark\core_portme.c ::
Code:
secs_ret time_in_secs(CORE_TICKS ticks) {
secs_ret retval=ticks / 1000;
return retval;
}
Doesn't return the right answer for the displayed info - but stops the fault. The line changed was :: secs_ret retval=((secs_ret)ticks) / (secs_ret)EE_TICKS_PER_SEC;
When value here takes over 10 secs to run :: "T:\tCode\T4\teensy4_coremark\core_portme.c" : #define ITERATIONS 24000
Without edit fault comes from :: T:\tCode\T4\teensy4_coremark\core_main.c : line 328
Code:
ee_printf("CoreMark 1.0 : %f / %s %s",[U]default_num_contexts*results[0].iterations/time_in_secs(total_time)[/U],COMPILER_VERSION,COMPILER_FLAGS);
Last edited: