Is there a build option to prevent the inclusion of the GPIO init code? Running on my STM32F3 Discovery board, I always get a HARD fault trap at the line
port->MODER &+ ~(0x3 << (2 * pin_num));
in function gpio_init()
For what I’m doing I don’t need the GPIO stuff.
I also don’t need the UART - can I prevent this from being included too as my code is hanging waiting for a serial response that it’s never going to get? I suspect a printf() somewhere in the code base is causing this because I’m not using this function in my application code.
I’m using the RIOT OS master from 2017-07 and tried using the latest but that caused me more problems am I’m quite a tight deadline.
Since 2017-07 quite a lot has changed, so maybe my suggestions do not apply, you can remove all printf output by including USEMODULE += stdio_null. This in the latest master prevents inclusion of uart: