Enhance HITL (hardware in the loop) test #2774
Replies: 19 comments
-
thank you, that is great to hear, I can implement #1970 soon enough, your current list of board is great, it already cover 3 different usb ips. I have an Pi4 with pico rp2040 running tests and plan to add more boards (since I have several devkit laying around), since these aren't computing heavy as compiling IAR :). We will probably need to spend more time to write more actual hardware tesing script :) . Only tested cdc, msc, dfu so far. Haven't tried testing with audio. PS: what's up with the hub breakout, wouldn't it look nicer with consumer hub :) |
Beta Was this translation helpful? Give feedback.
-
Yes I'm also thinking about it.
For space saving, with male plug directly soldered on the hub I don't need to deal with cable mess ;) |
Beta Was this translation helpful? Give feedback.
-
Here are a couple hardware project for HITL. Thanks @esden for the pointers! https://github.com/probe-rs/hive https://github.com/esden/redcuttle |
Beta Was this translation helpful? Give feedback.
-
thanks Scott, it looks very neat, but probably overkilled I guess. I would prefer to just stick the dev board in, most of them has on-board debugger anyway for flashing. It is of course just me :D |
Beta Was this translation helpful? Give feedback.
-
#2204 implement unique ID for several families including: rp2040 and various stm32 (including l4 and f7) |
Beta Was this translation helpful? Give feedback.
-
I've connected the boards. 3 debuggers are flashed to Jlink:
Both STM32L4 & STM32F7 works, while only HS port works on OM13092. (added missing Tried changing |
Beta Was this translation helpful? Give feedback.
-
thank you 👍 , just saw them show up in the lsusb (ssh shell). I will try to update ci test script later on. Since you are often working with audio, maybe we should spend more time to write some script to capture the mic input and compare with knowngood etc... but that can always wait :) |
Beta Was this translation helpful? Give feedback.
-
It would be nice but compare audio is a little tricky due to PC resampling etc., I'll try to figure something out. |
Beta Was this translation helpful? Give feedback.
-
I've added a LPCXpresso4367 to replace 54608, it passes all tests with EA4357 BSP. I think it's good to have chipidea_hs tested. PS1: PS2:
|
Beta Was this translation helpful? Give feedback.
-
ah thanks, I also have LPCXpresso43s67, I can help adding bsp and testing this out.
Yeah, sure, I would love to, we will need
You don't have to do this, give me a bit of time, I will try to see what would be the best way to implement this.
weid, I don't seems to see that warnings, I will check it out later. |
Beta Was this translation helpful? Give feedback.
-
#2217 add lpc43s67 since it is what I got. I guess it is probably run fine with your non-s board. If it is not the case we can change the jlink device to non-s verion. Also add uuid support lpc43. Let me know if those are now working with your hil setup there :) |
Beta Was this translation helpful? Give feedback.
-
A type-C switcher allows to programmatically connect two devices pin-by-pin, rather than using a HUB). This can help to automate host-mode operation:
|
Beta Was this translation helpful? Give feedback.
-
Thanks for your interest in HIL test. A port switcher is not the priority, as currently all boards has a debugger attached who can read test results. Currently all boards in the loop are bought by me or hathach, without a sponsorship we can't test all kinds of configurations. |
Beta Was this translation helpful? Give feedback.
-
Thinking again, if wanting to leave all boards connected at all time for an automated test script, a switcher of only the D+/D- and +5V lines would be a good compromise.
Noted! This sounds like a better solution indeed. For practical setup, regardless of the solution used, here is something that scales well and is cheap and quick to do: A bit like a thick wallet of PCBs. Or an office binder made for PCBs.
Several projects might want a HITL test rig. As discussed on 1BitSquared Discord, there are several test project slowly getting built.
It looks like a solution is already engineered-out at TinyUSB. |
Beta Was this translation helpful? Give feedback.
-
I think I have never showed how it's done:) One 1 to 7 hub PCB and 3 boards separated by paper inside a cardboard box : |
Beta Was this translation helpful? Give feedback.
-
@josuah thank you for your suggestion, I only have plan to put each dev board to a plastic bag and try to push it under my desk as many as I could. @HiFiPhile your setup is still much better than mine, just an RPI4 + bunches of dev board in plastic bags packed under my PC desk. PS: IAR build failed due to expired license, I have contact them to renew our opensource license. |
Beta Was this translation helpful? Give feedback.
-
I have added quite a few board recently and upgrade the self-host to pi5. Cable is a mess but it is good enough, so I guess we could close this issue now. |
Beta Was this translation helpful? Give feedback.
-
Wow that's a lot ! |
Beta Was this translation helpful? Give feedback.
-
Yeah, it is like 7 or 8 boards. Though some like metro m7 1011 does not play when with others when doing parallel testing (maybe power issue or something). I also got of usb bus funny problems but get them more stable now. I will try to add a few more, currently occupied all 3x7 usb hub. I starts to do local testing with these locally while developing since it is rather convenient:) |
Beta Was this translation helpful? Give feedback.
-
Related area
HITL test
Hardware specification
DCD only for the moment
Is your feature request related to a problem?
I'm going to add more boards into the loop, currently planned:
Meanwhile maybe a good idea to wait #1970 to avoid mixing boards.
I'm also open to sponsorship if anyone wants other boards to be added.
PS: Made a tiny hub as I can't find one :)
Describe the solution you'd like
Add more boards into HITL setup.
I have checked existing issues, dicussion and documentation
Beta Was this translation helpful? Give feedback.
All reactions