SparkFun Forums 

Where electronics enthusiasts find answers.

Discussions on how to get your MSP JTAG programmer up and running.
By dries
#67946
I am using the eZ430-RF2500 toolkit to create a wireless application between one ED and one AP.

So far, I have been using the SimplitiTI library files provided in the demo code, together with the provided smpl_nwk_config and smpl_config files.

However, I now need to send payload information larger than 10 bytes. I tried to modify the -DMAX_APP_PAYLOAD parameter from 10 to 20. However, when I compile my code, I get the following warnings:

Warning[w6]: Type conflict for external/entry "MRFI_Receive", in module nwk_frame against external/entry in module mrfi; function types differ in
parameter 1; class/struct/union types have different sizes
/* In module nwk_frame: */
/* Function, args 1, attr 0 */
void (__cc_version2 MRFI_Receive)(mrfiPacket_t *);
typedef struct __Unnamed_5_137 mrfiPacket_t;
/* In module mrfi: */
/* Function, args 1, attr 0 */
void (__cc_version2 MRFI_Receive)(mrfiPacket_t *);
typedef struct __Unnamed_3_118 mrfiPacket_t;
Warning[w6]: Type conflict for external/entry "MRFI_Transmit", in module nwk_frame against external/entry in module mrfi; function types differ in
parameter 1; class/struct/union types have different sizes
/* In module nwk_frame: */
/* Function, args 1, attr 0 */
uint8_t (__cc_version2 MRFI_Transmit)(mrfiPacket_t *);
typedef __bsp_uint8_t__ uint8_t;
typedef struct __Unnamed_5_137 mrfiPacket_t;
typedef unsigned char __bsp_uint8_t__;
/* In module mrfi: */
/* Function, args 1, attr 0 */
uint8_t (__cc_version2 MRFI_Transmit)(mrfiPacket_t *);
typedef __bsp_uint8_t__ uint8_t;
typedef struct __Unnamed_3_118 mrfiPacket_t;
typedef unsigned char __bsp_uint8_t__;


I tried to download SimpliciTI-1.0.6, change the -DMAX_APP_PAYLOAD parameter and compile the library. However, I get an error saying that the code size is too large.

How can I change the maximum payload size to more than 10? Are there other ways? Thx
By dries
#70137
For anybody who is interested.

The point is that IAR(IDE that i used) can just compile only 4KB.
When you want to change settings in the simpliciTI-protocol, you first
have to include the hole simpiliciTI-library. Because the size of this reaches a lot farther then 4KB(around 10 KB), you cannot do it with IAR.
Then it's better to use CCE. This can basically compile 16 KB

Problem is fixed;-)

Regards

Dries