Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests fail to compile if platform doesn't support PWM #6

Open
screamerbg opened this issue Oct 14, 2016 · 1 comment
Open

Tests fail to compile if platform doesn't support PWM #6

screamerbg opened this issue Oct 14, 2016 · 1 comment

Comments

@screamerbg
Copy link
Contributor

screamerbg commented Oct 14, 2016

Target: ARM_BEETLE_SOC
Toolchain: ARMCC5

Build failures:
  * ARM_BEETLE_SOC::ARM::TESTS-ASSUMPTIONS-PWMOUT
        Building project PwmOut (ARM_BEETLE_SOC, ARM)
        Scan: ARM
        Scan: FEATURE_BLE
        Scan: PwmOut
        [DEBUG] Macros: -D__MBED__=1 -DTARGET_LIKE_MBED -DWSF_TOKEN_ENABLED=FALSE -D__MBED_CMSIS_RTOS_CM -DDEVICE_LOWPOWERTIMER=1 -DTOOLCHAIN_object -D__CMSIS_RTOS -DDEVICE_CLCD=1 -DWSF_MAX_HANDLERS=20 -DWSF_MS_PER_TICK=20 -DMBED_BUILD_TIMESTAMP=1476466707.37 -DNO_LEDS -DTARGET_LIKE_CORTEX_M3 -DTARGET_CORTEX_M -DASIC -DARM_MATH_CM3 -DTARGET_UVISOR_UNSUPPORTED -DFEATURE_BLE=1 -DTARGET_M3 -DCONFIG_HOST_REV=0x20 -DCONFIG_ALLOW_SETTING_WRITE=TRUE -DDEVICE_INTERRUPTIN=1 -DDEVICE_I2C=1 -DDEVICE_PORTOUT=1 -D__CORTEX_M3 -DCONFIG_ALLOW_DEEP_SLEEP=FALSE -DWSF_TRACE_ENABLED=TRUE -DTARGET_RELEASE -DDEVICE_PORTINOUT=1 -DWSF_ASSERT_ENABLED=FALSE -DHCI_VS_TARGET -DTARGET_BEETLE -DDEVICE_PORTIN=1 -DDEVICE_SLEEP=1 -DTARGET_ARM_SSG -DTARGET_ARM_BEETLE_SOC -DDEVICE_SPI=1 -DWSF_PRINTF_MAX_LEN=128 -DDEVICE_ANALOGIN=1 -DDEVICE_SERIAL=1 -DCMSDK_BEETLE -DTOOLCHAIN_ARM -DTOOLCHAIN_ARM_STD
        Compile [100.0%]: PwmOut.cpp
        [DEBUG] Compile: C:\Program Files\ARM\bin\armcc -c --gnu -Otime --split_sections --apcs=interwork --brief_diagnostics --restrict --multibyte_chars -O3 --cpu=Cortex-M3 --md --no_depend_system_headers --c99 -D__ASSERT_MSG --cpp --no_rtti --no_vla -I "C:\Program Files\ARM\include" -D__MBED__=1 -DTARGET_LIKE_MBED -DWSF_TOKEN_ENABLED=FALSE -D__MBED_CMSIS_RTOS_CM -DDEVICE_LOWPOWERTIMER=1 -DTOOLCHAIN_object -D__CMSIS_RTOS -DDEVICE_CLCD=1 -DWSF_MAX_HANDLERS=20 -DWSF_MS_PER_TICK=20 -DMBED_BUILD_TIMESTAMP=1476466707.37 -DNO_LEDS -DTARGET_LIKE_CORTEX_M3 -DTARGET_CORTEX_M -DASIC -DARM_MATH_CM3 -DTARGET_UVISOR_UNSUPPORTED -DFEATURE_BLE=1 -DTARGET_M3 -DCONFIG_HOST_REV=0x20 -DCONFIG_ALLOW_SETTING_WRITE=TRUE -DDEVICE_INTERRUPTIN=1 -DDEVICE_I2C=1 -DDEVICE_PORTOUT=1 -D__CORTEX_M3 -DCONFIG_ALLOW_DEEP_SLEEP=FALSE -DWSF_TRACE_ENABLED=TRUE -DTARGET_RELEASE -DDEVICE_PORTINOUT=1 -DWSF_ASSERT_ENABLED=FALSE -DHCI_VS_TARGET -DTARGET_BEETLE -DDEVICE_PORTIN=1 -DDEVICE_SLEEP=1 -DTARGET_ARM_SSG -DTARGET_ARM_BEETLE_SOC -DDEVICE_SPI=1 -DWSF_PRINTF_MAX_LEN=128 -DDEVICE_ANALOGIN=1 -DDEVICE_SERIAL=1 -DCMSDK_BEETLE -DTOOLCHAIN_ARM -DTOOLCHAIN_ARM_STD --via C:\mbed\ci-test-shield\BUILD\tests\ARM_BEETLE_SOC\ARM\.\TESTS\assumptions\PwmOut\.includes_9ab35f1cd05821957a49a5747d99cc80.txt --preinclude=C:\mbed\ci-test-shield\BUILD\tests\ARM_BEETLE_SOC\ARM\.\TESTS\assumptions\PwmOut\mbed_config.h --depend C:\mbed\ci-test-shield\BUILD\tests\ARM_BEETLE_SOC\ARM\.\TESTS\assumptions\PwmOut\.\PwmOut.d -o C:\mbed\ci-test-shield\BUILD\tests\ARM_BEETLE_SOC\ARM\.\TESTS\assumptions\PwmOut\.\PwmOut.o .\TESTS\assumptions\PwmOut\PwmOut.cpp
        [Error] PwmOut.cpp@4,0:  #35: #error directive: PWMOUT not supported on this platform, add 'DEVICE_PWMOUT' deffinition to your platform.
        [DEBUG] Return: 1
        [DEBUG] Output: ".\TESTS\assumptions\PwmOut\PwmOut.cpp", line 4: Error:  #35: #error directive: PWMOUT not supported on this platform, add 'DEVICE_PWMOUT' deffinition to your platform.

        [DEBUG] Output: .\TESTS\assumptions\PwmOut\PwmOut.cpp: 0 warnings, 1 error

This prevents further testing

@BlackstoneEngineering
Copy link
Contributor

Right, forgot the [NOT_SUPPORTED] in the error message. Pushed a change. Please pull and retry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants