Skip to content

Commit f63b4b6

Browse files
authored
Merge pull request #13512 from OpenNuvoton/nvt_nuc472_sd_5.15
mbed-os-5.15: Nuvoton: Fixed NUC472 SD buffer alignment
2 parents 50fe6ac + eab9417 commit f63b4b6

File tree

1 file changed

+3
-3
lines changed
  • targets/TARGET_NUVOTON/TARGET_NUC472/device/StdDriver

1 file changed

+3
-3
lines changed

targets/TARGET_NUVOTON/TARGET_NUC472/device/StdDriver/nuc472_sd.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ uint8_t *_sd_pSDHCBuffer;
4141
uint32_t _sd_ReferenceClock;
4242

4343
#if defined (__CC_ARM)
44-
__align(4096) uint8_t _sd_ucSDHCBuffer[512];
44+
__align(4) uint8_t _sd_ucSDHCBuffer[512];
4545
#elif defined ( __ICCARM__ ) /*!< IAR Compiler */
46-
#pragma data_alignment = 4096
46+
#pragma data_alignment = 4
4747
uint8_t _sd_ucSDHCBuffer[512];
4848
#elif defined ( __GNUC__ )
49-
uint8_t _sd_ucSDHCBuffer[512] __attribute__((aligned (4096)));
49+
uint8_t _sd_ucSDHCBuffer[512] __attribute__((aligned (4)));
5050
#endif
5151

5252
int sd0_ok = 0;

0 commit comments

Comments
 (0)