Currently attempted to add bme280 source code and the I2C libraries to a default Aws FreeRTOS library for microchip curiosity development board.
Currently running into the following compile time error:
#error "No Task mode chosen at build, interrupt or polling needs to be selected. "
^
make[2]: *** [build/pic32mz_ef_curiosity/production/_ext/1612192459/drv_i2c_static_buffer_model.o] Error 1
Any help on how to achieve this would be appreciated.
Library version Amazon FreeRTOS version - 1.4.7
IDE Version MPLAB X IDE v5.15
OS Version MacOS High Sierra 10.13.6
Demo Code Transferring Weather Data to a Smart Device BLE Client Using a
Curiosity Develop: https://www.microchip.com/Developmenttools/ProductDetails/DM320104
The steps I took to arrive at this issue are as follows:
Copied the I2C libraries from the demo example specified in the original ticket with whatever version the demo is on.
Also copied the bme280 header and c files from the same.
Resolved the include compilation errors.
Ran into the compilation error - #error "No Task mode chosen at build, interrupt or polling needs to be selected. "
I did not use the harmony configurator to configure the driver.
I added the DRV_TMR_INTERRUPT_MODE to the system_config.h file and set it to true but ran into further compilation errors afterwards.
At some point I had the project compiling, but ran into runtime errors where the initial state of the temperature sensor was not initialized correctly.
There is no question that something is missing/misconfigured, just need to know what is causing it or a better way to approach this. I am still new to the embedded programming world, so combining 2 different projects together was probably not a good idea.
I have also reached out to Microchip as well and they have come back with a very similar response.
I am hoping they can provide us further support on this issue.