- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello!
I'm facing an issue that is quite annoying knowing that I'm trying to program a board that is supposed to stay on the field for months.
After programming my board with the MiniProg, data are collected normally (using an infinite loop) but after a while it stops and I don't know why. I have noticed that after plugging back the MiniProg to my board and computer, the program restarts. I mean, I don't even try to reprogram the board, as soon as I plug back the MP, the program restarts and data are collected again.
Any hint on what is wrong or should I create a case?
Thank you very much. Your answers are always helpful.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you use watchdog timer?
That seems to be issue with a dead loop. Check for cases that would enter an endless loop . Using watchdog would restart the chip, not that you should rely on the WD to do this, you still need to fix that if WD does kick in.
The minipro may reset the chip when inserted.
Check if the values pass to a funtion can be out of range.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just to be quite sure:
Are you using a MiniProg or a MiniProg3? Connection made with supplied the ribbon-cable??
Are you able to debug? Setting Breakpoints??
What happens if you do not unplug your MiniProg(3)
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Post your schematic, or at least the portion that shows power supply connections
and miniprog connections.
Of course there is always issue of coupling (crosstalk) to pins from some external source
where a input pin is configed as Hi Z and close to other fast signals not of interest. Or
an interface connector that is electrically marginal and sensitive to miniprog presence/absense
from mechanical movement. These are more general signal integrity issues.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, a floating input may also be the problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks to everybody for their answers and very sorry for the late reply.
Indeed H L, I'm pretty sure it was due to a dead loop. I fixed it and that issue doesn't occur anymore. That was easy! Thanks for pointing it to me.
To answer your questions, I did not use watchdog timer. Bob, I'm using a MiniProg3, connection is made with the supplied ribbon cable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
glad that your problem is fixed.
And nice to have people come back to tell us the result.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I replied a little too fast and was not completely accurate.
The program doesn't stop anymore (issue was the dead loop) but it restarts automatically as soon as I plug back the MiniProg3 (which doesn't bother me as I'm about the reprogram anyway).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think this is normal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That's what I thought too. Anyway, the main issue was fixed. 🙂