These are chat archives for marvell-iot/aws_starter_sdk

17th
Jul 2016
sandeshn001
@sandeshn001
Jul 17 2016 07:57
Hi..
i need help on this error:
region `SRAM1' overflowed by 680 bytes
Anuj Deshpande
@anujdeshpande
Jul 17 2016 08:02
@sandeshn001 are you using wmsdk ?
sandeshn001
@sandeshn001
Jul 17 2016 08:03
yes
Anuj Deshpande
@anujdeshpande
Jul 17 2016 08:04
We use this channel for issues around AWS starter sdk
you can raise an issue using other channels as wmsdk is not publicly available
sandeshn001
@sandeshn001
Jul 17 2016 08:05
okay
sandeshn001
@sandeshn001
Jul 17 2016 08:21
Sorry, actually I am using AWS starter sdk..@anujdeshpande
Anuj Deshpande
@anujdeshpande
Jul 17 2016 08:23
can you share the steps you executed to get the error ?
I can try to replicate
sandeshn001
@sandeshn001
Jul 17 2016 08:24
I tried to merge the aws_starter_demo code and adc_demo, by calling adc_read function in push_button_a callback function..
adc read function has code from adc_demo function
Anuj Deshpande
@anujdeshpande
Jul 17 2016 08:26
the right thing to do would be to start your own separate thread instead of using the call back function for the push buttons.
aws starter demo has an example of how to start a thread
sandeshn001
@sandeshn001
Jul 17 2016 08:29
could you please tell which function contains that example
sandeshn001
@sandeshn001
Jul 17 2016 08:48
@anujdeshpande I tried creating a thread with function adc_read and started the thread in function pushbutton_a callback..but the arror still persists
Anuj Deshpande
@anujdeshpande
Jul 17 2016 11:10
Please don't start the function in the call back function
sandeshn001
@sandeshn001
Jul 17 2016 13:54
@anujdeshpande I want to measure time between two interrupts, I cannot do it without calling a function inside callback function
unless I have some function like milis() in arduino
and here GPT also uses ISR, and it throws error if an interrupt occurs while servicing another interrupt
this is the error:
* PANIC *
Filename : sdk/external/freertos/Source/portable/GCC/ARM_CM4F/port.c ( 416 )
Condition : ( portNVIC_INT_CTRL_REG & portVECTACTIVE_MASK ) == 0