Other Parts Discussed in Thread: SYSCONFIG
Tool/software:
Hey! I'm curious about using the external flash (MX25R8035F) . We are thinking about using the same flash in our project and are creating HALs to read and write to it.
I see in my sysconfig generated files there lives a bit-bang function used to put the flash into sleep mode.
void Board_sendExtFlashByte(uint8_t byte) { uint8_t i; /* SPI Flash CS */ GPIO_write(BOARD_EXT_FLASH_SPI_CS, 0); for (i = 0; i < 8; i++) { GPIO_write(BOARD_EXT_FLASH_SPI_CLK, 0); /* SPI Flash CLK */ /* SPI Flash PICO */ GPIO_write(BOARD_EXT_FLASH_SPI_PICO, (byte >> (7 - i)) & 0x01); GPIO_write(BOARD_EXT_FLASH_SPI_CLK, 1); /* SPI Flash CLK */ /* * Waste a few cycles to keep the CLK high for at * least 45% of the period. * 3 cycles per loop: 8 loops @ 48 MHz = 0.5 us. */ CPUDelay(8); } GPIO_write(BOARD_EXT_FLASH_SPI_CLK, 0); /* CLK */ GPIO_write(BOARD_EXT_FLASH_SPI_CS, 1); /* CS */ /* * Keep CS high at least 40 us * 3 cycles per loop: 700 loops @ 48 MHz ~= 44 us */ CPUDelay(700); }
I see on some older CC devices, there are OTA example code which uses some external Flash communication. Anything like that for the CC23xx family? Especially anything deeper than the send ExtFlashByte, reading examples would be appreciated. Thanks!