Copyright ©

Mongoose OS Forum


Installing on STM32

mjoldfieldmjoldfield Cambridge, UK

I'm trying to install Mongoose on a STM32F746G discovery board.

When I execute mos build --arch=stm32 I'm told I need to specify the TARGET:

/mongoose-os/fw/platforms/stm32/ *** Please, specify TARGET. Possible values are NUCLEO-F746ZG or DISCO-F746G.  Stop.

If I change the build_vars in mos.yaml as below I can get past this error:

  APP_CONF_SCHEMA: src/conf_schema.yaml

only to crash like this instead:

In file included from /mongoose-os/fw/platforms/stm32/stm32_uart.c:11:0:
/mongoose-os/fw/platforms/stm32/stm32_uart.c: In function 'HAL_UART_ErrorCallback':
/mongoose-os/fw/platforms/stm32/stm32_uart.c:187:20: error: format '%d' expects argument of type 'int', but argument 2 has type 'uint32_t {aka volatile long unsigned int}' [-Werror=format=]
     LOG(LL_ERROR, ("UART error: %d\n", huart->ErrorCode));
/mongoose-os/common/cs_dbg.h:56:21: note: in definition of macro 'LOG'
       cs_log_printf x;                  \

Which is odd because when I did this a few hours ago I thought it crashed because it
couldn't find some low-level library.

I've not played with Mongoose OS before, so I wonder if I'm doing something silly. If not,
how should I go about debugging the problem ?

Thanks in advance.


Sign In or Register to comment.