The contiki version is 3.0 or 2.7. My platform is CC2530dk.
I want to open the debug mode in rpl to see the state information .
So I changed the#define DEBUG DEBUG_NONE to #define DEBUG DEBUG_PRINTin "Contiki\contiki-3.0\core\net\rpl\rpl-dag.c".
After I changed the macro, It can't pass the link in IAR for
"Error[e16]: Segment XDATA_I (size: 0x121a align: 0) is too long for segment definition. At least 0x82a more bytes needed. The problem occurred while processing the segment placement command "-Z(XDATA)XDATA_Z,XDATA_I=_XDATA0_START-_XDATA0_END", where at the moment of placement the available memory ranges were "XDATA:1510-1eff" "
At the first time, I thought maybe the problem is with the CC2530 chip. So I use the Instant Contiki 2.7,use the cooja to simulate on other platforms. The same problem occurs,everytime I changed the#define DEBUG DEBUG_NONE to #define DEBUG DEBUG_PRINT,It can't compile successfully.
Can any body help to address the problem?
@Dxploto When you start adding debug messages, it increases the amount of code and ram by a lot. Have you tried to modify the Stack/Heap sizes and optimization to fit all those additional debug code in?
The contiki version is 3.0 or 2.7. My platform is CC2530dk. I want to open the debug mode in rpl to see the state information . So I changed the
#define DEBUG DEBUG_NONE to #define DEBUG DEBUG_PRINT
in "Contiki\contiki-3.0\core\net\rpl\rpl-dag.c". After I changed the macro, It can't pass the link in IAR for "Error[e16]: Segment XDATA_I (size: 0x121a align: 0) is too long for segment definition. At least 0x82a more bytes needed. The problem occurred while processing the segment placement command "-Z(XDATA)XDATA_Z,XDATA_I=_XDATA0_START-_XDATA0_END", where at the moment of placement the available memory ranges were "XDATA:1510-1eff" " At the first time, I thought maybe the problem is with the CC2530 chip. So I use the Instant Contiki 2.7,use the cooja to simulate on other platforms. The same problem occurs,everytime I changed the#define DEBUG DEBUG_NONE to #define DEBUG DEBUG_PRINT
,It can't compile successfully. Can any body help to address the problem?