-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Wokwi testing #325
Comments
This sounds cool. I am on. Although I have almost zero experience from wokwi... |
Thanks for your interest. Same here. I'm still figuring out the very basics. For example here I don't have any idea why IO8 does not turn HIGH. Note I'm lazy to put a resistor to each LED but is not that for sure! |
Maybe because IO8 is internally connected to the flash? |
Ok it was me that I was connecting the wrong pins. The problem with most computer related thing is ourselves except on some rare moments ;) { "type": "board-esp32-s3-devkitc-1", "id": "esp", "top": -0.18, "left": -5.03,
"attrs": { "psramSize": "8", "flashSize": "4" } blocker is now an Issue pending to be resolved wokwi/wokwi-features#809 |
Blocker solved thanks to a hint of Wokwi team: {
"type": "board-esp32-s3-devkitc-1",
"id": "esp",
"top": -0.18,
"left": -5.03,
"attrs": {
"psramSize": "16",
"flashSize": "4"
}
} @vroland and @mickeprag PSRAM is detected now. What remains is to make the 2 mentioned custom chips otherwise the firmware will hang without being able to communicate with the IO expander or the TI Power mic.
Started to add this here experimentally: https://wokwi.com/projects/401153784260252673 |
Implemented first time custom chip and it seems the CI action works however I still fail to link it on VSCode diagram.json |
@vroland I will need the behaviour of "simulated chip" PCA9535 to be reviewed. What I'm getting in the VSCode console only placing this chip with the pins connected as in v7 Schematic is this:
Custom chips are not really easy to use. The fastest way that I've found is to make a repository, add some CI, so it get's compiled (output is Web assembly or WASM), and that's how it's loaded into Wokwi. It's a bit of black magic for me, a bit hard to understand, the internals of how all this works together. Hence I need a bit of a review and some help making custom chip TPS65185. On that topic if I understand that right: To simulate the power Mic I just need to hear on 0x68 address. And when it get's the TPS_REG_ENABLE I2C signal activates the voltages, pulling TPS_PWR_GOOD low. Is that correct? Test of IO expander custom chip seems to work but left part looks like a Christmas tree and I've no idea why. |
Advancing very slowly here. In the next days I'm adding the wokwi-tps65185 custom chip. |
No problem, things are slow during the summer ;) Curious where this goes. |
Finished to add new chip: Chip itself is in this repository: https://github.com/martinberlin/wokwi-tps65185/ UPDATE: |
Sounds promising! Did it compile in the end? |
No. There must be something in my tps65185 chip that does not like. But I must say that at this point is a bit weird because it can take forever, instead of prompting some kind of useful error message. |
Wokwi is a simulator. The idea is that we could be able to simulate a v7 board, including it's main two chips:
First step is to simulate this two as "Custom chips" and attach them to an ESP32S3-DEV board. Then we will simulate the existing v7 board attaching this 2 chips in the I2C line and some LEDs as data output.
If everything turns out as expected, this will simulate that the voltages are on (wokwi does not know about voltages), and we should see how the framebuffer signals are outputted on the data LEDs.
I propose to use different colors:
@mickeprag if you are interested on this also you can help out in any way.
This will take many iterations. The end result would be to truly simulate a v7 board, adding an SVG drawing, and the custom chips inside. All this should run picking up the Firmware built from VSCode. At that point it will look and behave as a real board and the idea is that we could try to put this also in the Github CI, so apart of running the tests, it will also try to run the generated Firmware in our "virtual board"
The text was updated successfully, but these errors were encountered: