How do you start running the program over again in gdb with ‘target remote’?
You are looking for Multi-Process Mode for gdbserver and set remote exec-file filename
You are looking for Multi-Process Mode for gdbserver and set remote exec-file filename
Uninitialized exception vectors (you know, for the ones that “will never be reached”) Say it with me: Global variables. Especially ones shared between ISRs and tasks (or foreground loops) without protection. Failure to use “volatile” where necessary. Having routines that DisableInterrupts() and then EnableInterrupts() paired up. Got that? Not RestoreInterrupts(), but ENABLE. Yeah, nesting. No … Read more
I have some preferences (and pet peeves) from writing software to control media and display devices using RS232. Depending on your hardware, some of these may not apply: I think it’s a good idea to make your protocol more friendly for automation. If you need an interactive interface (command line or other), build it separately … Read more
If the event of interest is: Asynchronous Urgent Infrequent then an interrupt based handler would make sense. If the event of interest is: Synchronous (i.e. you know when to expect it within a small window) Not Urgent (i.e. a slow polling interval has no ill effects) Frequent (i.e. majority of your polling cycles create a … Read more
Look here for a good wiki book. I had some coursework I wrote when I was teaching Electronic Eng, but I couldn’t find it around. When I was teaching, most of the students were happy to use the schematic capture tools in the Xilinx Foundation package. They’ve moved onto ISE and WebPACK now. You can … Read more
Integer Square Roots by Jack W. Crenshaw could be useful as another reference. The C Snippets Archive also has an integer square root implementation. This one goes beyond just the integer result, and calculates extra fractional (fixed-point) bits of the answer. (Update: unfortunately, the C snippets archive is now defunct. The link points to the … Read more
Linux is a general-purpose OS (GPOS); its application to embedded systems is usually motivated by the availability of device support, file-systems, network connectivity, and UI support. All these things can be available in an RTOS, but often with less broad support, or at additional cost or integration effort. Many RTOS are not full OS in … Read more
I would use HDLC. I have had good luck with it in the past. I would for a point to point serial just use the Asynchronous framing and forget about all of the other control stuff as it would probably be overkill. In addition to using HDLC for the framing of the packet. I format … Read more