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.

BQ76952: HAL for UART support in Reference Design code

Part Number: BQ76952
Other Parts Discussed in Thread: MSP430FR2355, , MSP430WARE, MSP-EXP430FR2355

In the reference design c code: main MSP430FR2355 I2C.c in sluc701a at line 790:void UART_initPins() {     // Configure UART pins, module is configured in HAL_GUIComm_UART_FR235x.c

P4SEL0 |= BIT2 | BIT3;

P4SEL1 &= ~(BIT2 | BIT3); }

I haven't found this: HAL_GUIComm_UART_FR235x.c anywhere.

In fact I have no luck finding any HAL for the MSP430

Thanks,

m

  • Hi Mark,

    It is likely in one of the #includes. If I had to guess it would be in the #include <Include/HAL.h> on line 66. 

    I'm looping in the MSP team to provide additional comments.

    Regards,

    Max Verboncoeur

  • Thanks Max for getting back to me. I have a bit of experience with HALs in the ARM world where there is documentation describing how to invoke the HAL, but I can find none for the MSP. Perhaps I am looking in the wrong places. Any suggestions there would be great.

    Regards,

    m

  • Hi Mark,

    Can you give me the link for the project where you download? And then I can then check the libary.

    B.R.

    Sal

  • I am attempting to use the BQ76952 reference design as the basis for my implementing a BMS using this part. The document is

    SLUC701 Microcontroller Code Examples for BQ769x2 Battery Monitors

    In the source code for the MSP430 there is a main_MSP430FR2355_I2C.c and header file BQ769x2Header.h

    Thanks

  • Thanks mark, I will check the code and give you feedback within a day.

    B.R.

    Sal

  • Hi Mark,

    I have checked the link, I think the download contents missed the folder which is "Include".

    According to the name, I have searched in the MSP430 Ware, and I find the same file which might helpful for you. As for others file include in the headers, I suggest you can double check if there is.

    MSP430Ware: https://www.ti.com/tool/MSPWARE?keyMatch=MSP430WARE 

    File path:...\msp430\MSP430Ware_3_80_14_01\gui_composer\examples\MSP-EXP430FR2355\streaming\gc_simple_json\MSP430_HAL

    B.R.

    Sal

  • Thanks for researching this, Sal. I believe that the problem is the schematic for the reference design shows the UART interfacing to a CAN transceiver (below) and I assumed that the authors of the code for the reference design would have put some code in there relating to to this interface and that it would be in the a .h file. I now believe that this was not in the scope of what they composed. I apologize if I took us down a rabbit hole here. If such code exists, I would love to see it!

  • Thanks for the feedback, and I will close the thread, if you have any further question, welocome to file a new one.

    As for the code, the common header seems put in the 430ware, you can download the apps through the previous link. And if you are interested in them, you can search it in the 430ware.

    Below is an example:

    B.R.

    Sal