Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 22:54 24 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : WATCHDOG ISSUE

Author Message
OA47

Guru

Joined: 11/04/2012
Location: Australia
Posts: 1013
Posted: 06:30am 09 Oct 2025
Copy link to clipboard 
Print this post

This one might be for Peter, would it be possible to supply the last line number when the WATCHDOG TIMEOUT message is displayed?

OA47
 
OA47

Guru

Joined: 11/04/2012
Location: Australia
Posts: 1013
Posted: 02:40am 02 Nov 2025
Copy link to clipboard 
Print this post

As I have mentioned in older posts, I have a project based on an ARMITE F4 that is regularly giving me a WATCHDOG TIMEOUT but also clears the program memory at that point. The ARMITE F4 is running version 5.07.02.03. I raised the question of getting hold of the last line number executed to try and get some information to fix the software. If I set TRACE ON to monitor where the program is, the TRACE seems to stop after a short time and I am not sure whether this is an issue with TERATERM buffer or something else in MMBasic.

Can anyone tell me why the TRACE stops even though the program keeps running or have any ideas of trapping the problem?

OA47
 
EDNEDN
Senior Member

Joined: 18/02/2023
Location: United States
Posts: 265
Posted: 04:19am 02 Nov 2025
Copy link to clipboard 
Print this post

  OA47 said  
Can anyone tell me why the TRACE stops even though the program keeps running or have any ideas of trapping the problem?

OA47


https://www.thebackshed.com/forum/ViewTopic.php?PID=246447#246447#246447
 
EDNEDN
Senior Member

Joined: 18/02/2023
Location: United States
Posts: 265
Posted: 10:38pm 02 Nov 2025
Copy link to clipboard 
Print this post

  OA47 said  This one might be for Peter, would it be possible to supply the last line number when the WATCHDOG TIMEOUT message is displayed?

OA47


Or...  If you put your program onto a PicoMite, MMDebug now captures Watchdog Timer events.

Check out:    MMDebug-with-Watchdog-timer-support
 
OA47

Guru

Joined: 11/04/2012
Location: Australia
Posts: 1013
Posted: 11:48pm 02 Nov 2025
Copy link to clipboard 
Print this post

  Quote  If you put your program onto a PicoMite, MMDebug now captures Watchdog Timer events.


I tried to do this but the PiPico did not have enough I/O so I have tried the 2350B but I have run into major issues with software incompatibilities.
 
EDNEDN
Senior Member

Joined: 18/02/2023
Location: United States
Posts: 265
Posted: 11:54pm 02 Nov 2025
Copy link to clipboard 
Print this post

  OA47 said  
  Quote  If you put your program onto a PicoMite, MMDebug now captures Watchdog Timer events.


I tried to do this but the PiPico did not have enough I/O so I have tried the 2350B but I have run into major issues with software incompatibilities.


OK!  I certainly understand!  

But at 40,000 feet, you have made a valuable contribution by asking for help with the Watchdog timer.   It turns out, it was only a handful of lines of code to add that.

Thanks!
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 8314
Posted: 08:38am 03 Nov 2025
Copy link to clipboard 
Print this post

I'm interested in the incompatibilities between the Pico and Pico 2. The Pico 2 is supposed to be a plug-in replacement.

The Pico 2 and the 2350B only differ in the number of pins that are available. They are the same silicon.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
OA47

Guru

Joined: 11/04/2012
Location: Australia
Posts: 1013
Posted: 08:58am 03 Nov 2025
Copy link to clipboard 
Print this post

  Quote  I'm interested in the incompatibilities between the Pico and Pico 2. The Pico 2 is supposed to be a plug-in replacement.


Mick the incompatibilities are between the F4 MMBasic and the Pico MMBasic. Particularly where I can use the F4 pin numbers in an array as they are in sequence but the pin numbers of the 2350B are not.

OA47
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4153
Posted: 11:18am 03 Nov 2025
Copy link to clipboard 
Print this post

Could you use an extra array and look up the pin numbers via that?

i.e. an extra level of indirection

(The array for the F4 would be in effect pointless but the Pico one would be useful.)

John
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2837
Posted: 12:00pm 03 Nov 2025
Copy link to clipboard 
Print this post

GPx numbers are contiguous so you can do this:-
> for n=0 to 7 :? mm.info(pinno "GP"+str$(n)), : setpin mm.info(pinno "GP"+str$(n)),DIN: next
1       2       4       5       6       7       9       10
>

It skips over the ground pins without needing gaps.
.
Edited 2025-11-03 22:05 by phil99
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 8314
Posted: 12:22pm 03 Nov 2025
Copy link to clipboard 
Print this post

It's bad practice to use module pin numbers rather than GPxx numbers. The latter are used in the Datasheet documents for the chips and are also used by MMBasic. Module pin numbers are liable to change with every new module that's released, meaning that you get compatibility issues further down the line. e.g. module pin 1 of a Pico 2 is GP00 and is GND on a PGA2350.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 1647
Posted: 02:29pm 03 Nov 2025
Copy link to clipboard 
Print this post

Without knowing what you need to achieve, can't you make PORT work?


 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025