File tree Expand file tree Collapse file tree 5 files changed +60
-1
lines changed Expand file tree Collapse file tree 5 files changed +60
-1
lines changed Original file line number Diff line number Diff line change 23
23
static uint8_t nor_write_buf [SPI_NOR_PAGE_SIZE ];
24
24
#endif
25
25
26
+ /*
27
+ * NOTE: If CONFIG_FLASH_MCUX_FLEXSPI_XIP is selected, Any external functions
28
+ * called while interacting with the flexspi MUST be relocated to SRAM or ITCM
29
+ * at runtime, so that the chip does not access the flexspi to read program
30
+ * instructions while it is being written to
31
+ */
32
+ #if defined(CONFIG_FLASH_MCUX_FLEXSPI_XIP ) && (CONFIG_FLASH_LOG_LEVEL > 0 )
33
+ #warning "Enabling flash driver logging and XIP mode simultaneously can cause \
34
+ read-while-write hazards. This configuration is not recommended."
35
+ #endif
36
+
26
37
LOG_MODULE_REGISTER (flash_flexspi_nor , CONFIG_FLASH_LOG_LEVEL );
27
38
28
39
enum {
Original file line number Diff line number Diff line change 23
23
static uint8_t nor_write_buf [SPI_NOR_PAGE_SIZE ];
24
24
#endif
25
25
26
+ /*
27
+ * NOTE: If CONFIG_FLASH_MCUX_FLEXSPI_XIP is selected, Any external functions
28
+ * called while interacting with the flexspi MUST be relocated to SRAM or ITCM
29
+ * at runtime, so that the chip does not access the flexspi to read program
30
+ * instructions while it is being written to
31
+ */
32
+ #if defined(CONFIG_FLASH_MCUX_FLEXSPI_XIP ) && (CONFIG_FLASH_LOG_LEVEL > 0 )
33
+ #warning "Enabling flash driver logging and XIP mode simultaneously can cause \
34
+ read-while-write hazards. This configuration is not recommended."
35
+ #endif
36
+
26
37
LOG_MODULE_REGISTER (flash_flexspi_nor , CONFIG_FLASH_LOG_LEVEL );
27
38
28
39
enum {
Original file line number Diff line number Diff line change 11
11
12
12
#include "memc_mcux_flexspi.h"
13
13
14
+
15
+ /*
16
+ * NOTE: If CONFIG_FLASH_MCUX_FLEXSPI_XIP is selected, Any external functions
17
+ * called while interacting with the flexspi MUST be relocated to SRAM or ITCM
18
+ * at runtime, so that the chip does not access the flexspi to read program
19
+ * instructions while it is being written to
20
+ */
21
+ #if defined(CONFIG_FLASH_MCUX_FLEXSPI_XIP ) && (CONFIG_MEMC_LOG_LEVEL > 0 )
22
+ #warning "Enabling memc driver logging and XIP mode simultaneously can cause \
23
+ read-while-write hazards. This configuration is not recommended."
24
+ #endif
25
+
14
26
LOG_MODULE_REGISTER (memc_flexspi , CONFIG_MEMC_LOG_LEVEL );
15
27
16
28
struct memc_flexspi_config {
Original file line number Diff line number Diff line change 11
11
12
12
#include "memc_mcux_flexspi.h"
13
13
14
- LOG_MODULE_DECLARE (memc_flexspi , CONFIG_MEMC_LOG_LEVEL );
14
+
15
+ /*
16
+ * NOTE: If CONFIG_FLASH_MCUX_FLEXSPI_XIP is selected, Any external functions
17
+ * called while interacting with the flexspi MUST be relocated to SRAM or ITCM
18
+ * at runtime, so that the chip does not access the flexspi to read program
19
+ * instructions while it is being written to
20
+ */
21
+ #if defined(CONFIG_FLASH_MCUX_FLEXSPI_XIP ) && (CONFIG_MEMC_LOG_LEVEL > 0 )
22
+ #warning "Enabling memc driver logging and XIP mode simultaneously can cause \
23
+ read-while-write hazards. This configuration is not recommended."
24
+ #endif
25
+
26
+ LOG_MODULE_REGISTER (memc_flexspi , CONFIG_MEMC_LOG_LEVEL );
15
27
16
28
enum {
17
29
READ_DATA ,
Original file line number Diff line number Diff line change @@ -52,6 +52,19 @@ config UART_MCUX_LPUART
52
52
default y if HAS_MCUX_LPUART
53
53
depends on SERIAL
54
54
55
+ if FLASH_MCUX_FLEXSPI_XIP
56
+
57
+ # Avoid RWW hazards by defaulting logging to disabled
58
+ choice FLASH_LOG_LEVEL_CHOICE
59
+ default FLASH_LOG_LEVEL_OFF
60
+ endchoice
61
+
62
+ choice MEMC_LOG_LEVEL_CHOICE
63
+ default MEMC_LOG_LEVEL_OFF
64
+ endchoice
65
+
66
+ endif
67
+
55
68
if COUNTER
56
69
57
70
config COUNTER_MCUX_GPT
You can’t perform that action at this time.
0 commit comments