SPI FLASH NOT WORKING

Hai,

I have an coustomised board with DA14683 MCU and W25Q40EW SPI FLASH. In that board flash is working and my application program is also working.

Now I have a new board with same design containing DA14683 MCU and with NEW flash AT25SF041B. But here SPI is not flashing. I am using smartsnippet IDE.

So SPI is flash is chnaged , so what are all the things i need change in my IDE or Code based on new spi flash. 

I gone through both spi flash data sheets , pin description and opcodes commands maximum all are same. Is there any flash driver i need to add based on New SPI flash.

 And also How MCU copy the program to the SPI FLASH?

Does the MCU contain any default code to Copy code to the SPI Flash? Where can we get that code?

When I flash in new board ie MCU with AT25SF041B SPI Flash, only MCU part name is coming in TERA TERM serial monitor, I put some printf statements too to print helloworld. But only MCU PART number is coming in serial monitor. Why that is? [ MCU with old flash is working]

Please help me for this.  

Thanks

  • Hi there! It sounds like you're facing a challenging issue with your new SPI flash. Let's break it down step by step:

    1. Driver for AT25SF041B

    It seems that the DA14683 MCU doesn't have a built-in driver for the AT25SF041B flash. You'll need to add a custom flash driver1. You can refer to the Renesas documentation on how to add a new QSPI flash. Here's a helpful link: UM-B-044 - DA1468x Software Platform Reference.

    2. QSPI Loader

    The AT25SF041B doesn't support QPI interface, which might be causing the issue. You might need to use a QSPI loader project similar to the bootloader at ROM1. You can find supporting files and instructions in the Renesas community.

    3. Copying Program to SPI Flash

    The MCU doesn't contain default code to copy the program to the SPI flash. You'll need to write your own code to handle this process. This typically involves initializing the SPI interface, sending the Wellstar -MyChart appropriate commands to the flash, and writing the program data.

    4. Debugging

    Since only the MCU part number is showing up in the serial monitor, it suggests that the flash isn't being programmed correctly. Double-check your wiring, SPI settings (mode, frequency, etc.), and ensure that the flash is correctly powered and grounded.

  • Hi Divu,

    Thank you for posting your question online.
    Apologies but this ticket was missed. 
    Please check on: UM-B-044: DA1468x Software Platform Reference (renesas.com) on section 10.2.1 QSPI Flash Support:

    You will need to create another Flash driver for the Part number you have selected.
    In order to do that, please refer on section 10.2.1.7 Adding support for a new flash device.

    Best Regards,
    OV_Renesas