Skip to main content
idrissmc
Associate III
August 27, 2020
Question

infinite loop raised by the wwdg

  • August 27, 2020
  • 12 replies
  • 6571 views

the line in green is an infinite loop for the wwdg, how it comes? the line contains while

0693W000002lbK0QAI.png

This topic has been closed for replies.

12 replies

Tesla DeLorean
Guru
August 28, 2020

Need to double check variable is volatile, and the code is not being optimized.

Review why code setting lcd_sync isn't firing, likely an interrupt or callback. Check initialization and clocking.

You'd probably want to refactor this to have a timeout.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
idrissmc
idrissmcAuthor
Associate III
August 28, 2020

I checked it; the variable is volatile, the optimization is none(-0). how to refactor this to have a timeout? before that line, the lcd_sync is initialized to 0, so the while will be infinite? but I don't see the purpose of this line

Tesla DeLorean
Guru
August 28, 2020

It is waiting for a VSYNC interrupt flagging with this variable. If working properly you should get an interrupt every 50 Hz (60, 30 or whatever the refresh rate is)

>>how to refactor this to have a timeout?

Record time at entry, and limit loop iterations by bounding the time from entry to exit.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
idrissmc
idrissmcAuthor
Associate III
August 29, 2020

hello @Community member​ ,

I got this message now: no source available for ".." as shown in the figure. how can I solve it please?

0693W000002liGeQAI.png

Tesla DeLorean
Guru
August 29, 2020

Inspect the disassembly/registers at fault

Check what hsdram1() is doing, and what it is passing into ai_platform_network_process()

Find libraries and source for AI stuff if necessary, but likely some memory not properly initialized, or bad pointers handed in

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
idrissmc
idrissmcAuthor
Associate III
August 30, 2020

I think, because that function doesn't have a definition, it's only in a .h file, but I saw that there's a lib folder which contains :NetworkRuntime512_CM7_GCC.a, I think there's something there to link with it. It's like a .dll, linking at runtime. 0693W000002liXBQAY.png

0693W000002liXGQAY.png

idrissmc
idrissmcAuthor
Associate III
September 16, 2020

Hello @Community member​ ,

i got this screen, I, now, wonder why the FPS start with 3.5 and drops to 0.2, and also there’s no image on the screen, how could solve this?