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.

TMAG3001EVM: I have connected the sensor and it showed on the browser firmware flasher, but a few seconds later, it tells me that the EVM isn't connected.

Other Parts Discussed in Thread: MSP432E401Y, TI-SCB, TMAG3001EVM, TMAG3001, MSP-EXP432E401Y

Tool/software:

I could see that the browser firmware flasher could detect the hardware for a few seconds and then it says: "ERROR: Connection to BULK device timed out..." even though it was able to read the version numbers before. I have the jumper shorted between the GND and ADDR. And configured it as such.

  • Hi Karen,

    Thank you for posting to the sensors forum!

    The USB enumerates with two connections with one as CDC (virtual COM port) and the other as BULK. What could have happened is that the driver for the BULK may not have installed correctly. The FAQ below should be able to provide some assistance in this regard:

    [FAQ] How do I resolve PAMB EVM connectivity and/or driver installation issues

    Best,

    ~Alicia

  • Hi ,

    I'm running it on Linux, could you please let me know if/how I can download driver for Linux?

    Thanks,

    Karen

  • Hi Karen,

    Unfortunately, there does not seem to be a Linux version of the PAMB USB Drivers.

    One thing that you can try is downloading the GUI, which does have a Linux version, to your PC. You just need to make sure that you install both the GUI and GUI composer runtime, highlighted below:

      

    Best,

    ~Alicia

  • Hi,

    I am using the installed version, and got this error from trying to load the outofbox_msp432e401y project.

  • Hi Karen,

    Could you please clarify what exactly were the steps that led to this error message?

    To my knowledge, CCS should not be needed to run the GUI. Also it looks like the outofbox_msp432e401y project you are trying to to load is for the MSP_EXP432E401Y launchpad and the GUI for the TMAG3001EVM is programmed to work with the TI-SCB, not the MSP_EXP432E401Y launchpad.

    Best,

    ~Alicia

  • Hi Alicia,

    I went to resource explorer in code composer, typed MPS432E4 in search and from the left, opened file as per this diagram.

    The run->Load->outofbox_msp432e401y_MSP_EXP432E401Y_tirtos_ccs, since I'm also using linux, I have also changed the com port to /dev/ttyACM0 and baud rate to 115200.

    Thanks,

    Karen

  • For more info, I'm currently connecting a MSP432E401Y to my Linux laptop on one side and a TMAG3001 hall effect sensor on the other side.

  • Hi Karen,

    When you were trying to connect to the TMAG3001EVM GUI, were you connecting the TMAG3001EVM to the TI-SCB or the MSP-EXP432E401Y?  

    While you can certainly connect the TMAG3001EVM to the MSP-EXP432E401Y launchpad to run your own code, the MSP-EXP432E401Y is not needed to connect to the TMAG3001EVM_GUI as the TMAG3001EVM_GUI is not designed to work with the MSP-EXP432E401Y launchpad. 

    I am just a bit confused as to the purpose of the MSP-EXP432E401Y here. Are you trying to connect the TMAG3001EVM to the MSP-EXP432E401Y and run it separately from the GUI for the TMAG3001EVM? 

    Regarding the issue that you are having with the MSP_EXP432E401Y and CCS, I believe that this specific question would be better suited for the MSP team and would recommend opening a thread on the issue on their forum as they would be more knowledgeable on this subject.

    Best,

    ~Alicia

  • Hi Alicia,

    I thought the TMAG3001 can be read by the computer via USB, and that's all we want. We just want to read the TMAG3001 data. If there are easier ways to do that please let us know.
    This is what we've got:
    TMAG3001 dual boards

    There is no other USB port, and we want to read the data from the computer,  that's why we also have the MSP432E401Y.
    MSP432E401Y


    If this is called a TI-SCB, then, that's what we're connecting to. Please let me know how I can read the sensor data using computer interface easily. 
    Thanks,
    Karen
  • Hi, Alicia, I've just tried the GUI and I'm still getting this after briefly connected to it after changing my port to the correct one:

    Thanks,

    Karen

  • Hi Karen,

    Thank you so much for the clarification! 

    As it seems like there may be an issue with the driver installation for this GUI and the only driver installers that we have are for Windows, I believe that the easiest method may be to communicate to the EVM via serial communication. 

    Earlier you mentioned that the EVM was being recognized by the GUI before getting the BULK error message, so I believe that the serial communication should work for you. Section 3.2.4 Direct EVM Serial Communication of the User's Guide has more details on how serial communication should work with this device. For this, you can use PuTTY or something similar to connect to the serial port the EVM is connected to with a baud rate of 115200.

    Hopefully this helps.

    Best,

    ~Alicia

  • Hi Alicia,

    We have now managed to find a windows PC and tried the TMAG3001 sensor. I was able to run that tmag3001evm-bsl bat file, with no error, the GUI (both the browser and the installed GUI) can recognize the MSP432, but not the TMAG3001. It keeps asking me to plug in the TMAG3001 while it's already plugged in, and the address was configured as per jumper.

    Thanks,

    Karen

  • Also Alicia, could you please send me a list of command I can send to the MSP432 to trigger the measurement of the TMAG3001 sensor? And what command can I use to read these data? Because it is not mentioned on the user manual.

    Thanks,

    Karen

  • Hi Karen,

    As you were connecting the EVM to the GUI, did you get an error message that said something along the lines of an unknown EVM is found, similar to the below? If not, can you share a screenshot of what error message is popping up?

    If it is the message above, can you try selecting Options from the menu tab and selecting serial port to see if you are able to connect to the EVM that way?

    The way measurements can be triggered in standby mode depends on the configuration of the Trigger_Mode bit in the Device_Config_2 register.

    • If Trigger_Mode = 0h (Conversion Start at I2C Command Bits), conversion are triggered by writing a 1 to the conversion trigger bit when sending the register address. Please see section 6.5.1.1 Conversion Trigger of the datasheet for details and section 6.5.1.2 Bus Transactions of the datasheet for examples of what this would look like.
    • If Trigger_Mode = 1h (Conversion starts through trigger signal at INT pin), conversions are triggered by pulling the INT pin low

    Please note that before triggering a measurement, you'll need to make sure the desired magnetic channels have been enabled by configuring the MAG_CH_EN bits in Sensor_Config_1 (Register 0x02). 

    To read the data, simply read the result registers of the device via I2C following a conversion. Please keep in mind that you will need to wait for the conversion to be complete before reading the results, this conversion time is denoted by the tmeasure spec in the datasheet.

    Section 8 Register Map of the datasheet includes a list of all available registers/bit values that can be written to/read from.  

    The way the GUI works is that every time a read or write I2C transaction occurs within the register map, a conversion is triggered via I2C. However, this will only work if Trigger_Mode = 0h as mentioned earlier. If Trigger_Mode = 1h, you would need to trigger conversions via the INT by manually pulsing the INT pin.

    Best,

    ~Alicia

  • Hi, I don't believe that the sensor is being recognized by the micro at all, because when i send the ID command through serial terminal, it is not returning the name: TMAG3001, it's returning this:

    {"id":{"name":"TI_SCB","version":"1.0.0.0","date":"Oct 17 2023","time":"18:03:08"}}

    When we tried to program the firmware, there were no errors, so we assumed that the firmware was installed.

    Please advise if there is any other way of confirming that the firmware is downloaded successfully.

    Thanks,

    Karen
  • Hi Karen,

    Given that the id command that you are sending is returning the below, it looks like the firmware has been installed correctly.

    {"id":{"name":"TI_SCB","version":"1.0.0.0","date":"Oct 17 2023","time":"18:03:08"}}

    What the above indicates is that for some reason the device is not responding to the MCU. This could be happening as a result of one of 2 things:

    • The I2C address has been configured to something that is not one of the default I2C addresses based on which pin the ADDR pin is connected to, which is pretty unlikely given that the device defaults to its default address ever time it power cycles
    • The TMAG3001 ended up dying, which is what has likely happened. The most common way this happens is when VCC gets shorted to ground

    I would recommend replacing either the device on the EVM or replacing the EVM itself.

    Best,

    ~Alicia