This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: CC2640R2F
I am trying to integrate ADCBuf into my project. after integrating "adcbufcontinuous" example into my project, I am getting below linker error.
"error #10099-D: program will not fit into available memory. placement with alignment fails for section ".cinit" size 0x3aa . Available memory ranges:FLASH size: 0xa090 unused: 0x4 max hole: 0x3"
No matter how much memory optimization I have done like reducing all static variables sizes .. etc. This error is not going off. If I comment all ADCBuf API calls in the application then only it is clearing off.
Any idea, why this is happening?
In reply to TER:
I have a external interrupt which triggers every 5ms. I am using this interrupt to read battery voltage using ADC block mode.
Now I am comparing two consecutive voltage readings every 10ms from ADC to detect steep fall in the voltage. I calculated RC time constant with the capacitors installed before power sources is 100ms approx.
But I unable to detect voltage drops when I remove power abruptly.
Is there anyway I can detect these power drops? Please help.
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
In reply to lakshmikanth satyavolu:
Anybody can help me out on this issue?
Could you elaborate some on why you have to read the voltage every 10 ms?
OOO until November 25th
When battery power is gone off or interrupted, capacitors are providing 100ms RC time constant power back up in my circuit.
I am monitoring battery for every 10ms to check if any sudden huge voltage drop over power line, to save some application parameters before the power completely drained from capacitors.
And how fast is VDDS going down in your application?
Power consumption is 2mA to 7mA maximum.
You wrote earlier that you could not use BATMON since this monitors VDDS. You also wrote that the supply goes down in 100 ms (is that to 1.8 V or to 0 V?) But how does VDDS look like vs time when the battery goes off?
In my circuit, VDDS is operated by regulator output voltage which is 1.8V. So I am not using BATMON.
I connected RAW battery power to ADC pin and monitoring it. Voltage goes down 3.0V to 0V in 100ms. I would like to use this 100ms time to save my parameters.
Is this possible?
Thanks, I'm trying to understand the system.
"Now I am comparing two consecutive voltage readings every 10ms from ADC to detect steep fall in the voltage. I calculated RC time constant with the capacitors installed before power sources is 100ms approx.
But I unable to detect voltage drops when I remove power abruptly. "
- So does that mean that the power drop from 3.0 V to below 1.8 V in less than 10 ms?
- You state that you use 100 ms from 3.0 V to 0 V but how much time do you use from 3.0 V to 1.8 V which is where the device power down?
Note: Have you seen this: http://dev.ti.com/tirex/content/simplelink_cc2640r2_sdk_3_10_00_15/docs/ble5stack/ble_user_guide/html/ble-stack-5.x/creating-a-custom-bluetooth-low-energy-application.html#flash-optimization and tried to save some space?
Not sure how much time does it take to get to 1.8V from 3.0V. Any idea how can we calculate this?
All I need is to monitor VBAT periodically every 10ms. If my approach is making sense, I am ok with blocked mode ADC. Otherwise I will look into flash optimization. What do you think?
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.