2 years, 11 months ago.

build errors caused by " 'OnboardCellularInterface' does not name a type"

Hey all, I made a custom board that uses Cellular(ublox sara-u270, stm32f401vc). I made an "custom_targets.json" file for my custom board and confirmed that "mbed-os-example-blinky (use mbed-os 5.8)" works. I added the following element to the "custom_targets.json" file to run the example "https://os.mbed.com/docs/v5.8/reference/cellular-api.html".


       "config": {
            "modem_is_on_board": {
                "help": "Value: Tells the build system that the modem is on-board as oppose to a plug-in shield/module.",
                "value": 1,
                "macro_name": "MODEM_ON_BOARD"
            "modem_data_connection_type": {
                "help": "Value: Defines how an on-board modem is wired up to the MCU, e.g., data connection can be a UART or USB and so forth.",
                "value": 1,
                "macro_name": "MODEM_ON_BOARD_UART"

I get these compile errors -> "error: 'OnboardCellularInterface' does not name a type"

Thanks for your help.

Hi Patrick,

Can you please provide us with your custom_targets.json file?

Thank you! - Jenny, team Mbed

posted by Jenny Plunkett 16 May 2018
Be the first to answer this question.