Hi Markel Robregado,
To remind the general perspective of the project, I am using custom board with CC2640R2FYFV which is BGA package. The aim of the project provide a constant current, make one of the GPIO pin HIGH and read the one of the ADC pin and make them in periodic. I used the BLE 4.2 simpleperipheral project. To read the adc value periodically I used the TI's Document To generate constant current and make one of the GPIO HIGH, I used the Sensor Controller Studio then added the necessary files into CCS. HIGH GPIO pin is the positive supply the Opamp that is in the my custom board, consant current is to negative pin of the Opamp and ADC pin is to read the output of the OPAMP and sent it to mobile phone via bluetooth. I want to do these four steps for 3 seconds and sleep for 7 seconds. So, IC should be in the active mode for 3 seconds and sleep for 7 seconds. I did this in the PerformPeriodicTask. Current version of the code does the work how I want properly but there are some issues that I will explain.
It has been long time but various problems in each step. To remember the issue this is the link I could not success to set the board files as you instructed with my custom board. I tried to modify to board files by using LAUNCHXL files although no error It never advertises.
Board files are still with CXS files as I show this in link. The latest situation was that code was working when it is debugging but when I terminate and turn off the power then turn on the power It does not advertise again. Then I remove the POWER_SAVING from the Project -> Properties -> Predefined Symbols, I could flash the code both on CCS and Flash Programmer 2. It was good news but current consumption becomes 3.4 mA continously which is too high. It is same for all the time. When POWER_SAVING is defined in the Predefined Symbols and without terminating, for 3 seconds current consumption is 1.5 mA and 1.3 mA for the remaning 7 seconds. It could be acceptable but It does not flash both from CCS and Flash Programmer 2.
So what do you recommend to able to flash the code and decrease the current consumption ?
Regards,
I attached the both CCS and SCS files. It would be good if you could examine the codes ? 8311.simple_peripheral_cc2640r2lp_app.zip