You are reading a single comment by @Vishnu and its replies. Click here to read the full conversation.
  • Hi allObjects,

    hi i have uploaded C Code na using that i am writing to flash.... after that i am reading from the flash and erasing ....
    i hope you got it...
    and one thing i forgot to mention ....
    i have modified this one to

     SPI_InitStructure.SPI_CPOL = (inf->spiMode&SPIF_CPOL)?SPI_CPOL_High:S­PI_CPOL_Low;
      SPI_InitStructure.SPI_CPHA = (inf->spiMode&SPIF_CPHA)?SPI_CPHA_2Edge:­SPI_CPHA_1Edge; 
    

    like this

     SPI_InitStructure.SPI_CPOL = SPI_CPOL_High;
    SPI_InitStructure.SPI_CPHA = SPI_CPHA_2Edge;
    

    i have modified this in Espruino SPI_init();

    Thanks & Regards
    Vishnu

About

Avatar for Vishnu @Vishnu started