Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add api spi flash send cmd ( read uid flash ect ) #446

Closed
wants to merge 2 commits into from
Closed

add api spi flash send cmd ( read uid flash ect ) #446

wants to merge 2 commits into from

Conversation

ESP32DE
Copy link
Contributor

@ESP32DE ESP32DE commented Mar 20, 2017

add api for spi flash send cmd

  • can used for unique flash chip id

example code:

..
#include "esp_spi_flash.h"
#include "string.h"
..
void uid (void) {
	
	// test
	uint8_t flash_unique_id[8];
   // Get flash unique id
   uint8_t command[13] = {0x4b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
   uint8_t response[13];

   spi_flash_send_cmd(sizeof(command), command, response);
   memcpy(flash_unique_id, response + 5, sizeof(flash_unique_id));
   
   printf("UID: ");
   for (int i=0; i<8; i++) {
	printf("0x%02x ",flash_unique_id[i]);     
   }
   printf("\n");
}

add api for spi flash send cmd 
- can used for unique flash chip id
add api for spi flash send cmd 
- can used for unique flash chip id
@igrr
Copy link
Member

igrr commented Mar 21, 2017

Thanks for the PR, @ESP32DE.

Unfortunately this code can not be added into the ESP-IDF as it is, because we can only accept contributions from authors of the code (first point listed in the contribution guide), and this code seems to come from Lua-RTOS project.

If you package this code addition as a reusable component, you can post the link to the component repository in this forum topic: https://esp32.com/viewtopic.php?f=2&t=1498. We are planning to make a list of components built for the ESP-IDF, so that it is easier for other developers to find components for their projects.

@igrr igrr closed this Mar 21, 2017
@ESP32DE
Copy link
Contributor Author

ESP32DE commented Mar 21, 2017

@igrr
i understand - ok - no problem. thank you.

then is that the same theme with CAN driver then ivan?

CAN driver is ready from thomas
with few add works from other and me to this "CAN Driver repo".

the work on menuconfig is ready too, but this complet from me.

then thomas must then do the pullrequest to ESP-IDF
i do the pullrequest for menuconfig

or "better" we do this as 3thrd component then?
only for know what is the best to do in future too.
and that you guys have not more work with us that sometimes not knowing ?

thank you ivan!

best wishes
rudi ;-)

0xFEEDC0DE64 pushed a commit to 0xFEEDC0DE64/esp-idf that referenced this pull request May 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants