Yes, getting there! - basically I have what I need for my usage, but I took
etc.), it usually fails when disabling the ADC afterwards. So I added a
both AONWUC_AUX_POWER_ON and AONWUC_AUX_POWER_DOWN set. When this happens
it will crash when acquiring semaphore in AuxAdiDdiSafeWrite(). I tried a
watchdog etc. but no luck. Removing the usage of semaphores there will
solve it, but I'll leave that for brave souls.
// Disallow STANDBY mode while using the ADC.
in cc26xxware - so I left it at that. I think the current code should suit
most needs, I will post an example once I have cleaned up.
http://processors.wiki.ti.com/index.php/CC13xxWare#Release_notes_v2.00.04.16084).
regarding the radio firmware. Do you know if this firmware is actually
could explain.
Post by George OikonomouAndreas, good news - getting there
You are right, for as long as your process is running, the chip won't go
to deep sleep. Naturally, an interrupt will take control and the handler
will run, but this won't lead to deep sleep. If your process keeps control
for too long without poking the watchdog, the watchdog will reset you.
George
Thanks George,
ââ
you were right regarding the power,
AONWUCAuxWakeupEvent(AONWUC_AUX_WAKEUP) is the correct one. Regarding the
ADC_CLOCK, this is being enabled in AUXADCEnableSync().
I have disabled deep sleep. Furthermore, if I do 4 samples in each etimer
event it will fail after a few successful events, while it's fine if I do
only 2 samples in each. Am I correct in assuming that as long as my process
has not relinquished control (reached PROCESS_WAIT_EVENT or similiar) it
can not be interrupted by some other contiki-mechanism e.g. making it go to
sleep? If yes, I'm thinking there's something non-contiki stopping the show.
Andreas
Post by Andreas UrkeAndreas
I tried calling SysCtrlPowerEverything() before enabling the clock and it
then gave 1 reading (see code bottom) before the precise hard faults come.
Removing PROCESS_PAUSE before every reading gave me ~6 readings.
https://github.com/g-oikonomou/cc26xxware/blob/master/driverlib/sys_ctrl.c#L126
AONWUCAuxWakeupEvent(AONWUC_AUX_WAKEUP);
while(!(AONWUCPowerStatusGet() & AONWUC_AUX_POWER_ON))
{ }
and
AUXWUCClockEnable(ui32AuxClocks);
while(AUXWUCClockStatus(ui32AuxClocks) != AUX_WUC_CLOCK_READY)
{ }
Thinking aloud, it seemed to be some timing - something being turned off
after x amount of time.
Entering deep sleep (lpm_drop() in main) forces Aux back off.
I then added SysCtrlPowerEverything() before every reading as well but
this only gave me about 40 readings before precise hard faulting (FF6C
F00D). Putting the powerEverything()+reading into a 1 sec etimer solved it,
and I am now able to get readings reliably. However, setting etimer to very
low values, e.g two ticks, will cause hard fault again (FF6C F00D).
Pausing between powering up the aux and taking the reading yields control
back to main and the chip may go into deep sleep during the pause. This
will turn the aux back off.
So from my perspective the open issues are 1) What should should actually be powered,
So my gut feeling is that all you need to do is make sure Aux is powered
up and clocked immediately before you trigger a reading.
2) Understand why it fails at rapid reading.
Not sure about that one
AUXWUCClockEnable(AUX_WUC_ADI_CLOCK|AUX_WUC_ANAIF_CLOCK);
I suspect you need the ADC clock too: AUX_WUC_ADC_CLOCK
âWould that be âPRCM_DOMAIN_PERIPH? (I'm not too familiar at this low
It is not the PERIPH PD, the Aux is controlled separately.
George
------------------------------------------------------------------------------
_______________________________________________
Contiki-developers mailing list
https://lists.sourceforge.net/lists/listinfo/contiki-developers
------------------------------------------------------------------------------
_______________________________________________
Contiki-developers mailing list
https://lists.sourceforge.net/lists/listinfo/contiki-developers
------------------------------------------------------------------------------
_______________________________________________
Contiki-developers mailing list
https://lists.sourceforge.net/lists/listinfo/contiki-developers