On Thu, Mar 25, 2010 at 5:18 AM, RHS Linux User <[email protected]> wrote:
>
> Hi,
>
>   I often use a simple bit-bang function at some high buad rate and one
> gpio pin. I hook a serial terminal to it. Depending on CPU speed, etc.
> interrupts may have to be disabled during the time the character is
> actually being sent. One character at 115,200 is 0.1ms so unless the CPU
> is very busy with time dependent stuff, most applications don't seem to
> mind that much.
>
>   As an additional variation of this scheme, I make the pin
> bi-directional and hook my full software debugger to it. I can peek, poke
> and monitor memory in more or less real time.

I use OpenOCD with a JTAG USB dongle and have gdb connect to the gdb
server OpenOCD provides.  This works great for things like the kernel,
userspace programs etc. but I don't know how to go about using it to
debug shell scripts.  I've heard there is a bash debugger but I doubt
that will help with ash built into BusyBox.

Debugging shell scripts on a embedded target just isn't something I've
ever needed to touch until now.

Thanks for the ideas.

Regards,

Brian
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to