-
Notifications
You must be signed in to change notification settings - Fork 10
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
Flash example hangs when system frequency is increased to 800 MHz #917
Comments
Note that |
Thank you @andresovela. Fixed by xmos/lib_tflite_micro#165 and will be merged in by #919 |
Hi @panickal-xmos, I tried to test this but I got unexpected results. When I tested the app_flash_single_model example, it doesn't hang anymore, but I don't see any speed up either. I tried to test an app of my own, but it still hangs (this is likely due to my own mistake somewhere). Not sure what do I need to update to get these changes. I pulled develop and ran |
If you're building the source yourself, will have to build the compiler and libs, and then build a wheel, and then install the wheel into your env. Could you please try the prebuilt beta version from PyPI, |
Build a wheel? What does that mean? |
May I ask why is it necessary to rebuild the compiler just to include a change in a lib? |
Good point. For this fix, the compiler doesn't have to be rebuilt. Wheel is a Python package format, https://peps.python.org/pep-0427/ . For building from source and installing it, follow these steps, https://github.com/xmos/ai_tools/blob/develop/docs/rst/build-from-source.rst. The last step builds a wheel and installs it. |
I was able to run the example with 800 MHz and it looks good to me. I'm closing this issue :) Thanks! |
I'm not sure if this is necessarily an issue appropriate for this repo, but since it affects one of the examples I'll open it here. I also brought this up in the community forum.
In the interest of running models as fast as possible, I increased the system frequency to 800 MHz. The
app_flash_single_model
seems to hang after the prepare stage.These are the steps to reproduce:
/path/to/xtc-tools/targets/XK-EVK-XU316/XK-EVK-XU316.xn
toexamples/app_flash_single_model/src/XK-EVK-XU316-custom.xn
SystemFrequency="600MHz"
toSystemFrequency="800MHz"
in line 15TARGET
in the Makefile fromXCORE-AI-EXPLORER
toXK-EVK-XU316-custom.xn
APP_FLAGS += -DTFLMC_XCORE_PROFILE
to see where it gets stuck--target-file src/XK-EVK-XU316-custom.xn
to thexflash
commandThe program seems to hang after printing this:
I can see the STATUS LED near the flash on the EVK flashing rapidly.
I wasn't able to get more information using xgdb.
The text was updated successfully, but these errors were encountered: