47
47
#endif
48
48
49
49
/* --- Note about USB buffer RAM ---
50
- For M7 core it's recommanded to put USB buffer in DTCM for better performance (flexspi_nor linker default)
50
+ For M7 core it's recommended to put USB buffer in DTCM for better performance (flexspi_nor linker default)
51
51
Otherwise you have to put the buffer in a non-cacheable section by configurate MPU manually or using BOARD_ConfigMPU():
52
52
- Define CFG_TUSB_MEM_SECTION=__attribute__((section("NonCacheable")))
53
53
- (IAR only) Change __NCACHE_REGION_SIZE in linker script to cover the size of non-cacheable section, multiple of 2^N
@@ -266,7 +266,7 @@ static void BOARD_ConfigMPU(void) {
266
266
MPU -> RBAR = ARM_MPU_RBAR (6 , 0x20200000U );
267
267
MPU -> RASR = ARM_MPU_RASR (0 , ARM_MPU_AP_FULL , 0 , 0 , 1 , 0 , 0 , ARM_MPU_REGION_SIZE_1MB );
268
268
269
- /* Region 7 setting: Memory with Normal type, not shareable, write trough */
269
+ /* Region 7 setting: Memory with Normal type, not shareable, write through */
270
270
MPU -> RBAR = ARM_MPU_RBAR (7 , 0x20300000U );
271
271
MPU -> RASR = ARM_MPU_RASR (0 , ARM_MPU_AP_FULL , 0 , 0 , 1 , 0 , 0 , ARM_MPU_REGION_SIZE_512KB );
272
272
#else
@@ -287,7 +287,7 @@ static void BOARD_ConfigMPU(void) {
287
287
288
288
#ifdef USE_SDRAM
289
289
#if defined(CACHE_MODE_WRITE_THROUGH ) && CACHE_MODE_WRITE_THROUGH
290
- /* Region 9 setting: Memory with Normal type, not shareable, write trough */
290
+ /* Region 9 setting: Memory with Normal type, not shareable, write through */
291
291
MPU -> RBAR = ARM_MPU_RBAR (9 , 0x80000000U );
292
292
MPU -> RASR = ARM_MPU_RASR (0 , ARM_MPU_AP_FULL , 0 , 0 , 1 , 0 , 0 , ARM_MPU_REGION_SIZE_64MB );
293
293
#else
@@ -418,7 +418,7 @@ void BOARD_ConfigMPU(void) {
418
418
ARM_MPU_Disable ();
419
419
420
420
#if defined(CACHE_MODE_WRITE_THROUGH ) && CACHE_MODE_WRITE_THROUGH
421
- /* Region 0 setting: Memory with Normal type, not shareable, write trough */
421
+ /* Region 0 setting: Memory with Normal type, not shareable, write through */
422
422
MPU -> RBAR = ARM_MPU_RBAR (0 , 0x20200000U );
423
423
MPU -> RASR = ARM_MPU_RASR (0 , ARM_MPU_AP_FULL , 0 , 0 , 1 , 0 , 0 , ARM_MPU_REGION_SIZE_1MB );
424
424
0 commit comments