Flowcode compiling error PIC12F675
Posted: Thu Sep 11, 2008 3:33 pm
Hi,
With Flowcode i try to make an temperature-limitter with an NTC resistor in an alu coolblock of an Darlington transistor. I use an PIC12F675 chip whith the internal oscillator set on 4 MHZ.
First with the TMR0 interrupt i call the ADC(0) macro to sample the Pic on GP0. Then i read the value as integer., In a decionblock this value is compared. When the temperature is to high the power function will be switched off and a warning led will start to flash in a endles loop. In simulation mode it works nice but whithin each time i try to compile to the chip i get the folowing message:
Warning unreferenced functions removed:
FCD_ADC0_ReadAsByte in: D:\Joh\Pic controller\flowcode\FLC200806001tempcontroltest-.c
Building CASM file
Serious Warning: Possible sw stack corruption, function 'delay_ms' called by more than one asynchronous thread (main/Task, interrupt, interrupt low)
What did i wrong?
After some attempt 's the Pic controller does not respond anymore. Within PPP i erased the PIC and have tryed to compile again without any result.
Is there a wrong value in some register or is he really gone?
Thanks in advance,
Beejo
With Flowcode i try to make an temperature-limitter with an NTC resistor in an alu coolblock of an Darlington transistor. I use an PIC12F675 chip whith the internal oscillator set on 4 MHZ.
First with the TMR0 interrupt i call the ADC(0) macro to sample the Pic on GP0. Then i read the value as integer., In a decionblock this value is compared. When the temperature is to high the power function will be switched off and a warning led will start to flash in a endles loop. In simulation mode it works nice but whithin each time i try to compile to the chip i get the folowing message:
Warning unreferenced functions removed:
FCD_ADC0_ReadAsByte in: D:\Joh\Pic controller\flowcode\FLC200806001tempcontroltest-.c
Building CASM file
Serious Warning: Possible sw stack corruption, function 'delay_ms' called by more than one asynchronous thread (main/Task, interrupt, interrupt low)
What did i wrong?
After some attempt 's the Pic controller does not respond anymore. Within PPP i erased the PIC and have tryed to compile again without any result.
Is there a wrong value in some register or is he really gone?
Thanks in advance,
Beejo