Other Parts Discussed in Thread: LAUNCHXL-F280049C, LM5066, LM5066EVK
f28004x_pmbus_target_example (2).zip
Tool/software: CCS 20.2
1. As shown in the photo below, we connected the FT2232H Mini Module provided with LAUNCHXL-F280049C and LM5066 EVK to the PMBus Port.
(4.7 kΩ pull-up resistor has been added to the 3.3 V line of the SDA, SCL, and SMBA pins)
2. When connecting with PI-Commander, if you set it to 0x16 as shown in the photo below, it will be scanned as 16.
3. If you check the traffic log in the photo below, you can see that it is set to read 256-byte blocks. I want to change this to LM5066 EVK, but the settings do not change as desired and always respond with 256 bytes of 0xFF values.
4. In the case of LM5066EVK, it occurs as shown in the Traffic Log below.
2025-04-22 07:12:13.364 FT2232-0 15:0 1 [S] <W> SB {9A:CMD 9A}
2025-04-22 07:12:13.364 FT2232-0 15:0 9 [S] <R> ?? {08 4C 4D 35 30 36 36 00 00*}:".LM5066.." [P]
2025-04-22 07:12:13.366 FT2232-0 15:1 1 [S] <W> SB {9B:CMD 9B}
2025-04-22 07:12:13.366 FT2232-0 15:1 3 [S] <R> ?? {02 41 41*}:".AA" [P]
2025-04-22 07:12:13.368 FT2232-0 15:2 1 [S] <W> SB {99:CMD 99}
2025-04-22 07:12:13.368 FT2232-0 15:2 4 [S] <R> ?? {03 4E 53 43*}:".NSC" [P]
2025-04-22 07:12:14.959 FT2232-0 15:0 1 [S] <W> SB {D8:MFR_SPECIFIC_08 LM5066-ALERT_MASK}
2025-04-22 07:12:14.959 FT2232-0 15:0 2 [R] <R> RW {20 08*}:0820:2080 [P]
2025-04-22 07:12:14.960 FT2232-0 15:1 1 [S] <W> SB {D7:MFR_SPECIFIC_07 LM5066-GATE_MASK}
2025-04-22 07:12:14.960 FT2232-0 15:1 1 [R] <R> RB {00*}:00:0 [P]
2025-04-22 07:12:14.961 FT2232-0 15:2 1 [S] <W> SB {D9:MFR_SPECIFIC_09 LM5066-DEVICE_SETUP}
2025-04-22 07:12:14.961 FT2232-0 15:2 1 [R] <R> RB {00*}:00:0 [P]
2025-04-22 07:12:14.962 FT2232-0 15:3 1 [S] <W> SB {DB:MFR_SPECIFIC_11 LM5066-SAMPLES_FOR_AVG}
2025-04-22 07:12:14.962 FT2232-0 15:3 1 [R] <R> RB {00*}:00:0 [P]
2025-04-22 07:12:14.963 FT2232-0 15:4 1 [S] <W> SB {57:VIN_OV_WARN_LIMIT}
2025-04-22 07:12:14.963 FT2232-0 15:4 2 [R] <R> RW {FF 0F*}:0FFF:4095 [P]
.....
5. The code uses PMbus Target Example as shown in the figure below, and when 0x9A, 0x9B, or 0x99 bytes are received initially, I want to send 4 bytes as shown in the code below. However, it does not work properly.
It is set to respond with 256 bytes unconditionally. How can I send the desired size and content? Please advise.
In fact, as shown in the figure below, when you set a 9-byte packet in handle_block_read.c, it is copied normally to the ekson_buffer and ekson_bytes variables in pmbus_stack_handler_target_read_wait_for_eom.c.
[ Source code ]
[ Debugging]