Closed ghbear2020 closed 4 years ago
1, I want an freertos example of running in DDRAM without MMU. on the board sama5d2-xplained. 2, Does the USB function must need the MMU? thx!
hi, In softpack identical address translation is used between physical address and virtual address, the addresses are just the same so MMU could be used with freertos without issues.
hi, In softpack identical address translation is used between physical address and virtual address, the addresses are just the same so MMU could be used with freertos without issues.
Why MMU must be enabled?for USB ?
Some USB descriptor's length is odd, this cause some unaligned access problem when cache is disabled. Therefore, if we put --no_unaligned_access to some USB code (for example lib/usb/common/usb_descriptors.c) to avoid unaligned access, we can disable MMU. But, disable MMU cost a lot of performance drop, therefore, we suggest use MMU enabled.
Some USB descriptor's length is odd, this cause some unaligned access problem when cache is disabled. Therefore, if we put --no_unaligned_access to some USB code (for example lib/usb/common/usb_descriptors.c) to avoid unaligned access, we can disable MMU. But, disable MMU cost a lot of performance drop, therefore, we suggest use MMU enabled.
atmel-software-package,Do you have any related forums for this library(atmel-software-package)? In this way, we can ask each other questions. thx.
For any issues about software package you can ask for support using support hotline or salesforce, and creating tickets in github is OK too, thanks.
WEAK void board_init(void) {
ifdef VARIANT_DDRAM
else
endif
ifdef VARIANT_SRAM
else
endif
board_cfg_lowlevel(clocks, ddram, true);这句应改为: board_cfg_lowlevel(clocks, ddram, false); 但是,这样改了,IAR下载程序后却跑不起来了。 不知是何原因?请指教!(VARIANT_DDRAM我也定义了)