Skip to content

Workaround to support FLASH WRITE for MIPI camera D457 - #13642

Merged
Nir-Az merged 2 commits into
realsenseai:developmentfrom
Arun-Prasad-V:mipi_flash_write
Jan 16, 2025
Merged

Nir-Az merged 2 commits into
realsenseai:developmentfrom
Arun-Prasad-V:mipi_flash_write

Conversation

@Arun-Prasad-V

Copy link
Copy Markdown
Contributor

[Tracked on LRS-472]

Comment thread src/ds/ds-device-common.cpp Outdated
// This is a WORKAROUND to support MIPI camera D457.
// If the packet size is more than 128 bytes, FLASH_WRITE is not working as expected.
// Revert this line after fixing the issue.
packet_size = std::min(packet_size, 128);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is for all D400 devices? not MIPI only?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right now it is for all. Maybe for D500 devices as well.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated it to only apply this workaround for D457.

set_hw_monitor_for_auto_calib(_hw_monitor);

_ds_device_common = std::make_shared<ds_device_common>(this, _hw_monitor);
_ds_device_common = std::make_shared<ds_device_common>(this, _hw_monitor, (_pid == ds::RS457_PID)? true : false);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see on this common class we have another place where we distinguish between D400 and d500
if( auto dev = dynamic_cast< d400_device * >( _owner ) ) return dev->get_raw_depth_sensor();

So we can see if it's D457 by reading the camera name instead of passing this bool.

What do you think? which way is nicer?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will check it.

@Nir-Az

Nir-Az commented Dec 31, 2024

Copy link
Copy Markdown
Collaborator

@Arun-Prasad-V is this ready for review?
Tested on USB + MIPI devices?

@Arun-Prasad-V
Arun-Prasad-V marked this pull request as ready for review December 31, 2024 14:36
@Arun-Prasad-V

Copy link
Copy Markdown
Contributor Author

@Arun-Prasad-V is this ready for review? Tested on USB + MIPI devices?

yes.

@Nir-Az
Nir-Az merged commit 71f4938 into realsenseai:development Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants