Quantcast
Channel: MSP430 Technical Forums
Viewing all articles
Browse latest Browse all 2077

CC3200: Interrupts and write flash memory with SLFS lib

$
0
0

Hi all,

 

I've tryed SLFS library and works very well but I've have some problems with interrupts.

 

I've created and opened file in setup. Now I put in the interrupt the function of file write but when interrupt occurs code stop working.

 

Here's code:

 

 

Setup:

 

  SerFlash.begin();
  SerFlash.open("myfile.txt", FS_MODE_OPEN_CREATE(400000, _FS_FILE_OPEN_FLAG_COMMIT));
  SerFlash.close();

  SerFlash.open("myfile.txt", FS_MODE_OPEN_WRITE);

  pinMode(INT, INPUT_PULLUP);
  attachInterrupt(INT, IntFunction, FALLING);

 

IntFunction:

 

  SerFlash.write(data);

 


Viewing all articles
Browse latest Browse all 2077

Trending Articles