A developer can now set the MRI_ENABLE variable and the makefile will take care of disabling the secondary console and use those UART pins for debugging instead. MRI_ENABLE still defaults to being off.
Notes:
I fixed the baud rate at 230400 since hardcoding the baud rate just makes things more reliable across all operating systems.
I defaulted to having MRI stop execution before main ever runs so that the developer can set breakpoints in main() or in global constructors. This means that the program will appear to hang on startup by default when MRI is enabled. It isn't actually hung though. It is just waiting for GDB to connect and the developer to continue execution. The makefile can be modified by the developer to disable this feature if they only want to debug crashes or break in later to look at hangs.
An upcoming commit will provide notes on how to use this new functionality on the Smoothie2 and Bambino210E boards.
A developer can now set the MRI_ENABLE variable and the makefile will take care of disabling the secondary console and use those UART pins for debugging instead. MRI_ENABLE still defaults to being off.
Notes:
An upcoming commit will provide notes on how to use this new functionality on the Smoothie2 and Bambino210E boards.