Search found 36 matches

by SJHardy
Thu Mar 28, 2024 5:04 pm
Forum: C Programs
Topic: Kogna debug suggestions
Replies: 31
Views: 160

Re: Kogna debug suggestions

If only it was so easy as to be some of my code which was looping! The evidence seems to be pointing to a call via a bad function pointer or something similar which starts it executing random data (not code - the disasm knew that the PC was in one of my floating point data tables). I guess the diffe...
by SJHardy
Wed Mar 27, 2024 10:49 pm
Forum: C Programs
Topic: Kogna debug suggestions
Replies: 31
Views: 160

Re: Kogna debug suggestions

I think CCS is basically going. For anyone else out there using CCS on Linux (Ubuntu), Version 11 works on Ubuntu 22.04, but fails badly on 16.04. Version 12 doesn't properly install on 16.04 because it requires a slightly up-level libc for a logging utility. Haven't tried CCS 12 on Ubuntu 22.04. I'...
by SJHardy
Mon Mar 25, 2024 5:55 pm
Forum: C Programs
Topic: Kogna debug suggestions
Replies: 31
Views: 160

Re: Kogna debug suggestions

Is J6 the JTAG port on the Kogna? The online documentation refers to the Kflop, but the Kflop uses JP2 for JTAG. As the only 14-pin header on the board, I'm guessing it is, but would like confirmation before smoke testing.
by SJHardy
Tue Mar 12, 2024 9:25 pm
Forum: C Programs
Topic: Kogna debug suggestions
Replies: 31
Views: 160

Re: Kogna debug suggestions

I implemented the reset as you described, and it works. I can reset and run diagnostic code after a crash. Unfortunately, I'm no closer to solving this issue. It's like a hand grenade: the pin is pulled in one thread, and some time later everything goes kablooey. No amount of trace and function hook...
by SJHardy
Sat Mar 09, 2024 4:50 pm
Forum: C Programs
Topic: Kogna debug suggestions
Replies: 31
Views: 160

Re: Kogna debug suggestions

Here's the output on the terminal, from the start of a power-up: Primary Boot KOGNA 5.0.0 Build 09:52:44 Mar 26 2022 Recovery Delay before Reading Boot Jumper Boot Jumper Installed Attempting Secondary Boot Flash Reading from Block 20... Jump to Secondary Boot KOGNA 5.3.2 Build 18:10:31 Jan 31 2024 ...
by SJHardy
Sat Mar 09, 2024 4:41 pm
Forum: C Programs
Topic: Kogna debug suggestions
Replies: 31
Views: 160

Re: Kogna debug suggestions

Well that's the problem, because I do want to verify that that struct is not trashed. For example, it contains a lot of function pointers, which should be completely untouched after init. But I'll worry about that once I get the basic ability to reset without power cycling.
by SJHardy
Fri Mar 08, 2024 11:58 pm
Forum: C Programs
Topic: Kogna debug suggestions
Replies: 31
Views: 160

Re: Kogna debug suggestions

OOps, I just saw your most recent reply. I do in fact use the first 64k for a major control block. I guess I can make a shadow copy of that, or even move it to a different location. Most of what I'm interested in is in the top half of the gather buffer.
by SJHardy
Fri Mar 08, 2024 11:53 pm
Forum: C Programs
Topic: Kogna debug suggestions
Replies: 31
Views: 160

Re: Kogna debug suggestions

On the kflop, I used to have a reset pushbutton between JP6 pins 4 (reset#) and 8 (gnd), which would allow me to reboot without losing memory contents. Same trick on the kogna does not seem to work. I do notice on the usb console that a message "No Ethernet Link" is issued, but it otherwise seems to...
by SJHardy
Fri Mar 08, 2024 5:25 pm
Forum: C Programs
Topic: Kogna debug suggestions
Replies: 31
Views: 160

Re: Kogna debug suggestions

That mutex implementation looks like it would work. Only very rarely would it spin until the end of its allotted thread time. I'm already running with minimal hardware. We have a "dummy machine" mode that runs with the bare breakout board and not much else - probably 90% of development is done that ...
by SJHardy
Thu Mar 07, 2024 2:13 am
Forum: C Programs
Topic: Kogna debug suggestions
Replies: 31
Views: 160

Re: Kogna debug suggestions

btw I don't see why you are concerned about small delays effecting the timing. Would a WNTS significantly effect things? Are you going to be logging thousands of messages per second? If the problem was perfectly consistent then maybe I'd be worried about changing the timing, but if it more or less ...