This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Writing to a structure field places value in the wrong memory location.

Other Parts Discussed in Thread: CC2650

Hi,

Sorry about inserting the 2 large images.

This was created with CCS 6.1.2.00015. Its a CC2650 application using TI_RTOS. Is using the RF drivers that come with TI_RTOS.

Anyway... there a structure that has a field call txPower.  For this example the txPower value is 0x9330 and I'm trying to change it to 0x9330.

When I do this the value ends up being in changed at the wrong location.  I tried using "#pragma DATA_ALIGN (RF_cmdRadioSetup, 4);" and it made no difference.

Any ideas?

Thanks,

Jack

aa

  • Hello,

    The command is named cmd_radio_setup but the command number corresponds to cmd_prop_radio_setup. Can you please confirm that this is only a change in the name and the command is indeed mapped to cmd_prop_radio_setup in the rf_prop_cmd.h. Aslo, fields on cmd_prop_radio_setup are different for CC26xx and CC13xx. Can you please check if the correct header file from CC26xxware is being used in your code.

    Regards,

  • Hi,

    Thanks. Problem resolved.

    Jack