
-KP-
Members-
Content Count
8 -
Joined
-
Last visited
About -KP-
-
Rank
Noob Class
-
Jep, that might be it, thanks for clearing that! However I don't know to execute code from SRAM, so I'll just work with an external SRAM. But thanks anyway.
-
So I did, writing 32 words (full buffer) takes 1 ms! As I expected this doesn't help a thing. Help!
-
Will try, but how will writing 32 words be faster then 2?
-
I'm not using the whole buffer, but I've got it set up so that 2 words (or 4 samples) are programmed at a time (see first post); The problem I'm having is that, even with the adjusted one I posted in my previous post, FlashProgram() still takes >50µs. In this time TMR interrupt gets skipped and so I still have to wait for it to finish...
-
As you can see, I have just commented out the while loops waiting for the flash being programmed. long FlashProgram(unsigned long *pulData, unsigned long ulAddress, unsigned long ulCount) { // // Check the arguments. // ASSERT(!(ulAddress & 3)); ASSERT(!(ulCount & 3)); // // Clear the flash access and error interrupts. // HWREG(FLASH_FCMISC) = (FLASH_FCMISC_AMISC | FLASH_FCMISC_VOLTMISC | FLASH_FCMISC_INVDMISC | FLASH_FCMISC_PROGMISC); // // See if this device has a write buffer. // if(HWREG
-
Ok, But is it possible to 'do' something, continue with the program, while flash is being written, or do you just have to wait for it?
-
Hi, I'm using the Stellaris Launchpad as part of sequencer/sampler musical instrument that I'm working on right now. I use the internal flash to record and store a couple of short 1-sec clips of audio, sampled at 21kHz - 12 bit. With the FlashProgram() function of the peripheral driver library, I store two words or four samples consecutively, so: record 4 samples - write to flash - record 4 samples - write to flash - etc. The recording happens on a timer interrupt, however the program skips an interrupt every 4 times, exactly when FlashProgram() is doing its thing. So I dove in the FlashProg