Announcements
Community Announcement : Welcome to the NEW Cypress Developer Community.
cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4

Anonymous
Not applicable

Initial info:

   

. ADC scanns 4 channels, one with single range detect, 2 with dif mode

   

.conversion triggered by software (ADC_startConv...) 4 sample averaging on all channels

   

.between conversions flash is written using API (EEPROM_WRITE..) into a single buffer ( interrupts not disabled)

   

.when entering intr read ADCSAR_SAR_INTR_REG, and written reg at the end

   

After few minutes of adc performace triggering interrups ( I can chatch this point) the interrupts stop firing anymore. reset is required and story repeats.

   

Conversion trigger bit is never cleared (acc. to TRM should be cleared by hardware). intr vector table is not modified during run.

   

I'm already contacting support case, but does not move thing forward.

   

Any ideas?

   

bob

0 Likes
3 Replies
Bob_Marlowe
Expert II

Just to make sure:

   

Are you using Creator 3.0 SP 7 and emulated EEProm version 1.10 (the former version had a bug)

   

 

   

Bob

0 Likes
Bob_Marlowe
Expert II

Oh, forgotten:

   

When possible, will you please create a Workspace Bundle and upload the project here, so that we all can have a look at or even reproduce the error.

   

 

   

Bob

0 Likes
ETRO_SSN583
Esteemed Contributor

This is a longshot, any variables modified in ISR not declared as volatile ?

   

 

   

Some additional info on volatile -

   

 

   

 

   

http://en.wikipedia.org/wiki/Volatile_variable

   

 http://www.barrgroup.com/Embedded-Systems/How-To/C-Volatile-Keyword

   

 

   

Regards, Dana.

0 Likes