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.

BLE Gatt profiles on a custom PCB

Other Parts Discussed in Thread: CC2540

I have a question regarding the use of BLE (using a CC2540) on a custom PCB. My pinout is different than the Mini Dev Kit, and I'm wondering if I can still use the gatt files for the MDK. I noticed that the files (gatt, gattserver, etc.) reference OSAL, which in turn references HAL. I am under the impression that OSAL and HAL would not be usable because of the differences between my PCB and the MDK, which would also make the Gatt profile unusable. If this is the case, how can I get BLE working without making my own custom Gatt profile. If it is usable, can someone explain why the hardware abstraction used for the MDK would be ok in a different board? I am new to BLE, Gatt, and programming microcontrollers in C.

  • Hi Zodryn,

    Hardware Abstraction Layer (HAL) is written to be modified based on your PCB Design. You can modify HAL to use the correct pins of your design, to interface buttons/LEDs and so on. GATT is part of the stack and is thereby not dependent on your physical design.

    I think you need to read through the software developers guide and understand the fundamentals :)

    Best Regards

  • Hi Zodryn,

    No worries there are no programming for controlling the PINs in the GATT profile implementation ,it is purely software.

    You may want to change the hal_board_cfg.h to change the configuration for LED, Keys ,buzzer if it is connected to different ports in your PCB. As for as i know your hardware engineer cannot use other port pins for LED because only P0_0 and P0_1 can give the current for LED ,regarding the key and buzzer you may want to change.

    Gatt profile is always usable independent of PCB (of course if it has CC2540)