File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -72,11 +72,9 @@ static void hard_fault_handler_test()
72
72
73
73
static void mpu_fault_test (const volatile uint16_t *mem_function)
74
74
{
75
- mbed_mpu_init ();
76
-
77
- // Verify that the mpu causes faults when executing ram
75
+ // Verify that the mpu causes faults when executing ram after init
78
76
fault_count = 0 ;
79
- mbed_mpu_enable_ram_xn ( true );
77
+ mbed_mpu_init ( );
80
78
call_mem (mem_function);
81
79
TEST_ASSERT_EQUAL (1 , fault_count);
82
80
@@ -86,7 +84,7 @@ static void mpu_fault_test(const volatile uint16_t *mem_function)
86
84
call_mem (mem_function);
87
85
TEST_ASSERT_EQUAL (0 , fault_count);
88
86
89
- // Verify that the mpu causes faults when executing ram
87
+ // Verify that the mpu can be turned back on
90
88
fault_count = 0 ;
91
89
mbed_mpu_enable_ram_xn (true );
92
90
call_mem (mem_function);
You can’t perform that action at this time.
0 commit comments