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.

CC2530 OAD compile problem

Other Parts Discussed in Thread: CC2530, Z-STACK

Hi,

I am currently trying to compile the OAD bootloader code for the CC2530 using IRA workbench and the file found here:

      $INSTALL_DIR$\Projects\zstack\Utilities\OAD\CC2530DB\Boot.eww

however I get the following error:

Error[e46]: Undefined external "MAC_RfFrontendSetup" referred in hal_flash ( C:\$INSTALL_DIP$Projects\zstack\Utilities\OAD\ 
CC2530DB\OAD-Boot\Obj\hal_flash.r51 )

I have tried defining HAL_PA_LNA and have tried to compile other bootloaders and have ended up with the same error

What could be the problem?

Thanks.

  • Hi,

    I suppose you tried to compile the project w/o HAL_PA_LNA defined with the same result?

    Can you please post a list of "Defined symbols" in the project (can be found in Project options->

    C/C++ compiler->Preprocessor->Defined symbols (sub window) ). 

    One more thing, what are the versions of Z-Stack and IAR workbench?

  • I only have HAL_OAD_BOOT_CODE and HAL_PA_LNA defined.

    Yes. I tried it with out the definition of HAL_PA_LNA.

    I'm using 8051 8.10 IAR workbench, how do i check what version of Zstack i have?

    when I tried to open the .eww file from the original boot code files IAR workbench said that the ewp was an older version and wanted to convert to the new one, if that helps.

    Thanks

    Billy

  • How to know what version of Z-Stack you are working with? I didn't know myself, so I opened up GenericApp from the 2.5.0 installer and found this gem in MT_VERSION.c:

    const uint8 MTVersionString[5] = {
                                       2,  /* Transport protocol revision */
                                       0,  /* Product ID */
                                       2,  /* Software major release number */
                                       5,  /* Software minor release number */
                                       0   /* Software maintenance release number */
                                     };

    If you don't have 2.5.0, you should get it:

    http://www.ti.com/tool/z-stack

    swrc126.zip (59.0MB) - contains ZStack-CC2530-2.5.0.exe

    I opened the boot loader for OAD project and just got a warning about the ddf file mismatch which is easily solved by selecting the specific .ddf file.

    Anyway, the project compiles fine - no errors or warnings. And the boot loader doesn't need to know about whether there is or is not a PA/LNA mounted.

     

     

     

     

     

    DDF mismatch.docx
  • HI,

    Thanks for your help, we didnt not have any problems loading the code after we updated to 2.5.0. However we have encounter some other problems. We have shifted our focus to trying out the OTA instead of the OAD. We were able to get the sampleswitchOTA working on the EM modules, however, when we apply the same client code to our devices with cc2530 integrated its not sending the Match Description Request, and it is not sending an RSP.. We were wondering if it has anything to do with our devices have Z-Pro CC2530 and not the CC2530 EM. Or if the CCdebugger we use to program the devices is different from the SmarfRF boards.  

    We also want to know if there are documents or other sample application codes relating to Z-Pro and OTA.

    Thanks