cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

Anonymous
Not applicable

Good Morning Everybody,

   

 

   

I'd like to store a random number in flash and later retrieve that number from flash after a reset.  We're planning on later implementing this with an app as a form of security.  I know how random number generation works but, am sketchy on the details of writing to and reading from flash without using UART.  I'm using PSOC4 BLE and PROC BLE.

   

 

   

Device A should receive a notification via Bluetooh from Device B;  Device B generates a random number and both store the number in flash to be read at a later time to do a comparison.

   

We can't use whitelisting because, the BLE address of a cellphone changes so often.

   

 

   

Thanks,

   

Michael

0 Likes
Reply
1 Solution
Anonymous
Not applicable

There are multiple examples for writing to flash, sflash, and emulating eeprom using the flash.

   

Here's a post that contains several examples: http://www.cypress.com/forum/psoc-4-architecture/writing-flash-psoc4

   

Here's one for sflash: http://www.cypress.com/blog/100-projects-100-days/project-029-supervisory-flash-psoc-4-ble

   

Here's another for sflash: http://www.cypress.com/forum/proc-ble/supervisory-flash-write

   

Here's one for a "global" flash function: http://www.cypress.com/forum/psoc-4-ble/how-store-byte-array-flash-memory

View solution in original post

0 Likes
Reply
2 Replies
Anonymous
Not applicable

There are multiple examples for writing to flash, sflash, and emulating eeprom using the flash.

   

Here's a post that contains several examples: http://www.cypress.com/forum/psoc-4-architecture/writing-flash-psoc4

   

Here's one for sflash: http://www.cypress.com/blog/100-projects-100-days/project-029-supervisory-flash-psoc-4-ble

   

Here's another for sflash: http://www.cypress.com/forum/proc-ble/supervisory-flash-write

   

Here's one for a "global" flash function: http://www.cypress.com/forum/psoc-4-ble/how-store-byte-array-flash-memory

View solution in original post

0 Likes
Reply
Anonymous
Not applicable

Thanks!! Pratt I'll have a look at those projects.

0 Likes
Reply