SDI-SoftwareDefinedInverter / TAPAS

Community drives inverter project
BSD 3-Clause "New" or "Revised" License
125 stars 35 forks source link

Raspberry Pi Program doesn't do identification #11

Open phdaf opened 6 years ago

phdaf commented 6 years ago

the raspberry pi python program (TAPASstart) doesn't seem to enter the while-loop in the identification mode. "while ((ret["flags"] & (1 << 5)) == 0):" never gets true. what does this flag show? or has anyone got a similar problem? thanks in advance!

Splash005 commented 6 years ago

Hello Phdaf,

it worked for me. The flag shows that the motor is identified. If Bit5 is still =0 the identification data are send to the TAPAS. If it turns true, the identification is done and the motor-parameters can be saved.

Do you have a generel SPI connection to the board? What does it show when you press 2 for identification? Did it succeed?

phdaf commented 6 years ago

hey splash,

thanks for your answer! i think there is actually no spi connection to the TAPAS! do you know where i can find a test program for ccs to test the spi of the TAPAS (by connecting MOSI and MISO)?

Splash005 commented 6 years ago

Hello, You probably would need a Jtag adapter for connecting to the TAPAS board with CCS. I would try to do the search on the raspberry side.

  1. How have you connected the raspberry to the tapas board? Did you put it on the Raspberry connection or did you use the SPI-Connectors?
  2. Have you selected the DIP-Switches on the TAPAS-Board to ON-OFF-OFF-OFF (testwise you can also put all on ON)
  3. Have you double-checked the correct Pin-assignment? tapas-Miso to rasp-Mosi and so on

I connected for example just the manditory PINS and for that I used the MCLKXA, MDXA, MDRA, CS_SW_1, 5V and GND pins from the Tapas board to the raspberry.

Good Luck! :)

phdaf commented 6 years ago

hey splash,

thanks again! i have got a jtag programmer and i already tested the raspi spi with a test program (and it worked fine).

i put on the raspi connection to connect to the tapas and i tried all DIP-switches combinations. i guess the pins must be correct when i put the raspberry directly on the board (and according to the pinouts the assignment is right)