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.

  • TI Thinks Resolved

RTOS/CC2640R2F: Flash out of range error when using ADCBuf

Expert 1380 points

Replies: 21

Views: 399

Part Number: CC2640R2F

Tool/software: TI-RTOS

Hi All,

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? 

Regards

Lakshmikanth. 

  • In reply to TER:

    Dear 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. 

    Regards

    Lakshmikanth. 

  • In reply to lakshmikanth satyavolu:

    Dears,

    Anybody can help me out on this issue? 

    Regards

    Lakshmikanth. 

  • Guru 248415 points

    In reply to lakshmikanth satyavolu:

    Could you elaborate some on why you have to read the voltage every 10 ms?

     OOO until November 25th

  • In reply to TER:

    Hi TER,

    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. 

    Regards

    Lakshmikanth. 

  • Guru 248415 points

    In reply to lakshmikanth satyavolu:

    And how fast is VDDS going down in your application? 

     OOO until November 25th

  • In reply to TER:

    Power consumption is 2mA to 7mA maximum. 

  • Guru 248415 points

    In reply to lakshmikanth satyavolu:

    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? 

     OOO until November 25th

  • In reply to TER:

    Hi TER,

    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? 

    Regards

    Lakshmikanth.

  • Guru 248415 points

    In reply to lakshmikanth satyavolu:

    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? 

     OOO until November 25th

  • In reply to TER:

    Hi TER,

    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?

    Regards

    Lakshmikanth

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.