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.

PCM5242 Coefficient Formatting

Is there a recommended method or tool for converting the coefficient data generated from the GDE tool into a C style array?  

  • Hi Kris,

    You can output a header file from PurePath Console by enabling the advanced mode, then going to the Direct I2C Read/Write tab. In this tab you can do a register dump. if you change the format to a .h header file, and the destination to File, then you will get a c header file with a c struct that contains all the writes, and you can pull the coefficients from that.

    Justin
  • Justin,
    Thanks. Is there any way to generate the coefficient data from the console without the need to physically connect to the part? I'm trying to do this without the EVM on hand. That's why I asked about the GDE tool.

    Kris
  • Hi Kris,

    If you are talking about PurePath Studio, then when you generate the code it is possible to generate a c header file with a struct that has all of the register and coefficient writes contained in it. To ensure this happens go to Tools menu at the top of the window, then select Options. A new window will appear, make sure Generate Driver Code, and Generate Driver Interface are selected. Choosing between application patches and complete applications will be the difference of getting only the coefficients for secondary sampling rates in addition header files, or getting all register writes in each header file.

    Now when you save and generate the process flow, header files with a struct of the register writes will be saved to the chosen file.

    Justin