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 2323static uint8_t nor_write_buf [SPI_NOR_PAGE_SIZE ];
2424#endif
2525
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+
2637LOG_MODULE_REGISTER (flash_flexspi_nor , CONFIG_FLASH_LOG_LEVEL );
2738
2839enum {
Original file line number Diff line number Diff line change 2323static uint8_t nor_write_buf [SPI_NOR_PAGE_SIZE ];
2424#endif
2525
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+
2637LOG_MODULE_REGISTER (flash_flexspi_nor , CONFIG_FLASH_LOG_LEVEL );
2738
2839enum {
Original file line number Diff line number Diff line change 1111
1212#include "memc_mcux_flexspi.h"
1313
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+
1426LOG_MODULE_REGISTER (memc_flexspi , CONFIG_MEMC_LOG_LEVEL );
1527
1628struct memc_flexspi_config {
Original file line number Diff line number Diff line change 1111
1212#include "memc_mcux_flexspi.h"
1313
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 );
1527
1628enum {
1729 READ_DATA ,
Original file line number Diff line number Diff line change @@ -52,6 +52,19 @@ config UART_MCUX_LPUART
5252 default y if HAS_MCUX_LPUART
5353 depends on SERIAL
5454
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+
5568if COUNTER
5669
5770config COUNTER_MCUX_GPT
You can’t perform that action at this time.
0 commit comments