Replies: 2 comments 3 replies
-
Hi Wolfgang! Sorry for the delay but we have our quartely meeting this week. I'll try to point @evoggy to this as he is back but probably he won't be able to give you an indepth answer yet until friday and next week. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hi! I haven't tried writing except for when the bootloader writes to flash, but there's a few things that come to mind. Some of it is basic stuff, but it's always good to double check.
Not sure if I understood correctly, but in your application does it ever work calling the write functions (RAM/FLASH) or do they always hang? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to achieve something "simple" for the AI deck and run into very strange issues for a week now.
Goal: Collect some frames and store them on-board (first in HyperRAM, once that is full in HyperFlash). Later, download all the frames from flash over wifi to the computer.
Steps: I changed the aideck-gap8-example wifi-img-streamer, to initialize and use HyperRAM and HyperFlash.
Observations:
pi_ram_write
,pi_flash_erase
, orpi_flash_program
sometimes just hang indefinitely (while the rest of the chip seems to be operational, i.e., the LED controlled by thehb_task
keeps blinking.Debugging is like hunting a ghost, since slight code changes change the outcome. This typically indicates i) HW issues, ii) compiler/SDK issues, iii) memory issues. For ii) I tried the latest SDK. For iii) I tried increasing the FreeRTOS stack sizes as well as just relying on pmsis functions. For allocations I use either global static variables or
pmsis_l2_malloc
allocated memory. I also played with forced alignment (both static and malloc'ed variables) without a noticeable change.Any ideas on what might cause this or debugging strategies would be appreciated! I tried to come up with a minimum example that shows some sort of deterministic failure, but as it is with these kinds of issues, the minimal examples (like the test_hyper_ram_flash) usually work.
Beta Was this translation helpful? Give feedback.
All reactions