I am trying to use MBED CLI with a custom board using a LPC1768. I created a custom_targets.json
{
"RELAY_NET": {
"inherits": ["LPCTarget"],
"core": "Cortex-M3",
"extra_labels": ["NXP", "LPC176X", "NXP_EMAC"],
"supported_toolchains": ["ARM", "uARM", "GCC_ARM", "GCC_CR", "IAR"],
"detect_code": ["1010"],
"device_has": ["USTICKER", "ANALOGIN", "ANALOGOUT", "CAN", "DEBUG_AWARENESS", "EMAC", "ETHERNET", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SERIAL", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"],
"release_versions": ["2", "5"],
"features": ["LWIP"],
"device_name": "LPC1768",
"bootloader_supported": true,
"overrides": {
"network-default-interface-type": "ETHERNET"
},
"macros":["RELAY_NET", "TARGET_LPC1768"]
}
}
I am thinking that there must be a better way to configure LED1 for my target so that I don't need the #ifdef. Can anyone suggest a better way?
To get ethernet working I had to "fix" features/FEATURE_LWIP/lwip-interface/mbed_lib.json adding
Thanks for any help.
Hello,
I am trying to use MBED CLI with a custom board using a LPC1768. I created a custom_targets.json
and moved the led to a suitable port pin like this in main.ccp
I am thinking that there must be a better way to configure LED1 for my target so that I don't need the #ifdef. Can anyone suggest a better way?
To get ethernet working I had to "fix" features/FEATURE_LWIP/lwip-interface/mbed_lib.json adding
How do I specify this target override so I dont have to dig into mbed sources?
Thanks for any help.
Paul