How to disable logger? #1068
Replies: 2 comments 7 replies
-
The #undef MODM_LOG_LEVEL
#define MODM_LOG_LEVEL modm::log::INFO The debugger should be callable in TUI mode with |
Beta Was this translation helpful? Give feedback.
-
Quick update, I solved my freezing up issue. This is a boot loader, and I hadn't caught all the various fixed addresses where you read to get certain MCU details. So there were a couple of reads from fixed addresses in memory that didn't exist or were illegal on the H7 which caused a hard fault. At least that's my assumption, since fixing all these locations solved the problem. Belatedly, I see there is a platform / id / getUniqueId() function that's available, but I don't immediately see the other identifying registers that I was reading (flash size, silicon revision and ID). Now starting to look at actual flash operations, but looks like the H7 isn't included in the list of supported chips for flash programming (issue raised). |
Beta Was this translation helpful? Give feedback.
-
I tried modifying the board.hpp and startup.cpp files to use the define MODM_BOARD_HAS_LOGGER to conditionally use/exclude things LOGGER. This doesn't seem to work, and the resulting board files generated by LBUILD still suck in logger-related stuff.
I'm seeing some issues with my code, which primarily access the UART using direct UART read/write calls, and printf. I assume that you shouldn't mix and match, that is have the logger running and also use the UART calls.
EDIT
Okay, I figured out my immediate issue, but it might still be nice to know how to disable logger from the .xml file.
I'm having an assertion on startup for some reason. I was seeing just one letter on the serial port, over and over again. I figured out it was from logging the text message "Assertion...", but the processor reboots before the message is complete. I confirmed this by changing "A" to "O", and then the single letter "O" shows up on the terminal over and over again. Now to track down the culprit causing the assertion. Time to get the debugger up and running.
Beta Was this translation helpful? Give feedback.
All reactions