Skip to content

Debugging with LMIC_X_DEBUG_PRINTF() #877

Answered by terrillmoore
chocotov1 asked this question in Q&A
Discussion options

You must be logged in to vote

I've only tested LMIC_X_DEBUG_PRINTF() on Arm Cortex M0 ports, and non-Arduino C ports, where it was easy enough to provide a printf()-like function. As I recall, this is not easy to do with a 328p because there is not a printf()-like function you can use. I debug LMIC changes on ARM ports so I don't have to deal with size constraints.

Remember that the debug-prints break timing. For this reason, unless you're debugging changes to the LMIC library, they're not useful-- if the LMIC's logic is correct, the only thing they'll do is break timing. Since they're focused on LMIC debugging, they generally don't give any useful info about integration problems. If you're using a release version of …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@chocotov1
Comment options

Answer selected by chocotov1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants