Skip to main content
Visitor II
August 9, 2023
Question

STEVAL-PTOOL2V1 not work sample aplication

  • August 9, 2023
  • 1 reply
  • 1025 views

Hi please a can not build the sample application of STEVAL-PTOOL2V1.

Have any newer version of application? 

I download this https://www.st.com/en/embedded-software/stsw-ptool2v1.html but not compile?

what should I do ? I have to install something in cubeMX or CubeIDE?

Why this board not have suppont on MC WorkBench?

 

    This topic has been closed for replies.

    1 reply

    Cristiana SCARAMEL
    Technical Moderator
    September 27, 2023

    Hello @Ana Flavia Kohlrauch and welcome to the ST Community.

    What is the compilation error you are getting? 

    You can find more detail on the FW in the dedicated UM2788

    Keep in mind that for the STSW-PTOOL2V1 firmware the supported IDE is IAR Workbench.

    You can find attached the STM32CubeIDE project to be copied into the "\Projects\EVALSTSPIN32F0H25-HallSensors\Applications\MotorControl" folder.

    Let me know if this info are useful to you, if yes click on "Accept as solution"

    "If you feel a post has answered your question, please click ""Accept as Solution"""
    STM32_ENSMM
    Explorer
    February 16, 2024

    Hello @Cristiana SCARAMEL , 

    Firstly, I want to express my gratitude for your assistance; your provided file has been incredibly helpful.

    I have a few queries concerning the PTOOL2V1:

    STM32_ENSMM_0-1708084416120.png

    STM32_ENSMM_1-1708084597216.png

    -> IOC Configuration File: In the sample project, there is an IOC configuration file. However, it seems not to correspond to the hardware configuration outlined in the STEVAL-PTOOL2V1 Data Brief documentation for the PTOOL2V1 board. Could you confirm this? If it doesn't correspond, do you have an IOC file that matches the correct configuration?

    -> Importing Project Files into Workspace: After copying the files as per your instructions and successfully importing them into CUDEIDE using Import->General->Projects from Folder or Archive, the project links files outside my workspace directory. I want to build my application starting from this project, so how can I import all files into a workspace directory as a project built directly from CUBEIDE? Additionally, how can I include the IOC configuration file in this process?

    Here is the configuration I used:

    Hardware: F411 Nucleo board with disabled STlink and U5V power jumpers, wired as follows:

    T_NRST STLink to NRST PTOOL

    T_TMS STLink to SWDIO PTOOL

    GND STLink to GND PTOOL

    T_JTCK STLink to SWCLK PTOOL

    +3V3 STLink JP1 to VDD PTOOL

    STM32_ENSMM_2-1708087413855.png

    PTOOL2V1: 

    STM32_ENSMM_3-1708087427181.png

    ST-LINK Nucleo board :

    STM32_ENSMM_4-1708087451782.png

    STM32_ENSMM_5-1708087476518.png

    PTOOL2V1 Configuration:

    I unsoldered R44 and shorted R43 to have 12V powering the Hall sensors of my motor.
    Configured JP2, JP3, and JP4 to use the Hall sensors.

    STM32_ENSMM_6-1708087654577.png

    STM32_ENSMM_7-1708087697088.png

    The motor used for testing is a 5 pole pairs Hurst DMB0224C10002.

    I appreciate your time and expertise in addressing these inquiries.

    Best regards,

    Joël