1) I have attached screenshot of xdc file. Did I get the pin properties correct?
2) What is the reason that I can't observe SCL freq of 400 KHz when I debugged? Should I configure the SCLK frequency in Vitis?
3) Can I connect SCL and SDA of BMP280 to any PMOD GPIO pins? (except Vcc and Gnd)
4) Do I need to make changes to my code?
Vivado block design, xdc file, debugged waveform and axi_iic block properties are attached
Question
gssr22
Hello,
I am trying to interface BMP280 sensor (in I2C mode) to Ultrazed EG-IO Carrier card + SOM.
I connected BMP280 to one(JX1_JA_PMOD, 12pin) of 12 PMOD's available on the board.
SCL and SDA pins of BMP are connected to pin 3,4 of JX1_JA_PMOD.
I used AXI_IIC IP in vivado block design. Configured SCL frequency to 400 KHz in AXI_IIC IP.
Bitstream generation was succesful and exported to Vitis SDK.
Created a baremetal project on A-cores of Ultrascale+MPSoC (OS - standalone)
BMP280 address is 0x76 and its operating voltage is 3.3V.
Created an application to read the data in 0xD0 register of BMP280. I used the address offsets of AXI_IIC given in AXI_IIC 2.0 user guide.
When I degbugged SCl and SDA lines in Vivado, no clock signal is observed on SCL and no data on SDA line. Data read is always 0.
Here are my questions
1) I have attached screenshot of xdc file. Did I get the pin properties correct?
2) What is the reason that I can't observe SCL freq of 400 KHz when I debugged? Should I configure the SCLK frequency in Vitis?
3) Can I connect SCL and SDA of BMP280 to any PMOD GPIO pins? (except Vcc and Gnd)
4) Do I need to make changes to my code?
Vivado block design, xdc file, debugged waveform and axi_iic block properties are attached
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now