Suresh Kondepudi

Results 11 comments of Suresh Kondepudi

Trying to figure it out right now. I'm only able to use the SPI-DMA example as a reference to an extent as i need to somehow provide the I2C DMA...

> Another alternative would be to use the existing SDK functions to read the I2C bus in a blocking manner, but running on the second core? That is a possible...

@lurch Yes, I am. @kilograham I was using i2c_set_slave_mode(), but still getting it wrong somewhere. ``` int rx_1 = dma_claim_unused_channel(true); uint8_t addr = 0x68; uint8_t reg = 0x75; uint8_t rx_buff[1];...

I tried to set the `i2c->hw->tar` register manually. And instead tried to read from the `IC_DATA_CMD` register. I set the data size to `DMA_SIZE_16` since the `data_cmd` register is also...

Shouldn't `i2c0->hw->sar` be the slave address and `i2c0->hw->tar` be the target register address to read/write from? That is what I understand from [tar](https://github.com/raspberrypi/pico-sdk/blob/2062372d203b372849d573f252cf7c6dc2800c0a/src/rp2040/hardware_structs/include/hardware/structs/i2c.h#L43) and [sar](https://github.com/raspberrypi/pico-sdk/blob/2062372d203b372849d573f252cf7c6dc2800c0a/src/rp2040/hardware_structs/include/hardware/structs/i2c.h#L48). Nonetheless, I've tried changing `i2c0->hw->tar...

Thanks for the tip. I didn't see the source code for `i2c_set_slave_mode`. > you need to replace i2c_write_blocking (which is what sends the reg value?) with DMA writes, and replace...

Additional errors: Account Placing: usr1 ``` [03-Apr-22 03:40:25] :: [INFO] - Getting board Got image: Account Placing: usr1 [03-Apr-22 03:40:26] :: [INFO] - Attempting to place Dark Red (1) pixel...

Simplest working model. Need more details for a better answer. ```python m = mujoco.MjModel.from_xml_path() d = mujoco.MjData(m) while : mujoco.mj_step(m, d) d.ctrl[] = ```

Were you able to solve this problem? I have a similar issue where I'm unable to interact with Viewer window. I also have Wayland. ```bash /home/user/anaconda3/envs/my_env/lib/python3.9/site-packages/glfw/__init__.py:914: GLFWError: (65544) b'Wayland: Window...

I think setting the glfw handle dynamically should be enough to handle this issue? something like this in line `35-38` ```python if not glfw._glfw: # pylint: disable=protected-access raise RuntimeError('GLFW dynamic...