Hi Ti,
Since we are using 4 × 4 RSM , I want to move the code from 2640R2F 7X7 to 4X4.
I refer the below doc steps to modify , but I think 2640R2F still using 7X7 board configuration.
Here are the steps I used :
1. Duplicate existing board files from existing CC2640R2_LAUNCHXL and rename CC2640R2DK_4XS
2. Delete the CC2640R2_LAUNCHXL.c and CC2640R2_LAUNCHXL.h
3. Copy the CC2640R2DK_4XS.c CC2640R2DK_4XS.h Board.h from <SDK_INSTALL_DIR>\source\ti\ble5stack\boards\ CC2640R2DK_4XS into CC2640R2DK_4XS file.
4. modify board.c and board.h in <SDK_INSTALL_DIR>\source\ti\ble5stack\target
For verify 2640R2F is using the Custom Board file configuartion, so I mark the CC2640R2_LAUNCHXL.
The test result shows error and didn’t go into the Custom Board File.
board.c
#if defined(CC2640R2DK_CXS) || defined (CC2640R2DK_4XS) \ || defined (CC2640R2DK_5XD) || defined (CC2640R2DK_7ID) #include "./cc2640r2em/cc2640r2em_board.c" //#elif defined(CC2640R2_LAUNCHXL) //#include "./cc2640r2lp/cc2640r2lp_board.c" #elif defined(CC2640R2_RC) #include "./cc2640r2rc/cc2640r2rc_board.c" #elif defined(CC26X2R1_LAUNCHXL) #include "./cc2652r1lp/cc2642r1lp_board.c" #elif defined(CC13X2R1_LAUNCHXL) #include "./cc1352r1lp/cc1352r1lp_board.c" #elif defined(CC2640R2DK_4XS) #include "../../boards/CC2640R2DK_4XS/Board.h" #include "../../boards/CC2640R2DK_4XS/CC2640R2DK_4XS.c" #else // unknown board #error "***ERROR*** Invalid Board Specified! Please see board.h for options." #endif
board.h
#if defined(CC2640R2DK_CXS) || defined (CC2640R2DK_4XS) \ || defined (CC2640R2DK_5XD) || defined (CC2640R2DK_7ID) #include "./cc2640r2em/cc2640r2em_board.h" //#elif defined(CC2640R2_LAUNCHXL) //#include "./cc2640r2lp/cc2640r2lp_board.h" #elif defined(CC26X2R1_LAUNCHXL) #include "./cc2652r1lp/cc2642r1lp_board.h" #elif defined(CC2640R2_RC) #include "./cc2640r2rc/cc2640r2rc_board.h" #elif defined(CC13X2R1_LAUNCHXL) #include "./cc1352r1lp/cc1352r1lp_board.h" #elif defined(CC2640R2DK_4XS) #include "../../boards/CC2640R2DK_4XS/Board.h" #else // unknown board #error "***ERROR*** Invalid Board Specified! Please see board.h for options." #endif
Best Regards,
Mike