You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I am trying to run an MQTT script on one core, and read data from another i2c device on the other core, using freertos to do so.
When I try to do this, I get 'failed to initialize power' from the modem.
The MQTT tasks has default code:
void MQTT_task_setup(void *pvParameters) {
Serial.begin(115200);
//Start while waiting for Serial monitoring
while (!Serial);
vTaskDelay(3000);
Serial.println();
if (!PMU.begin(Wire, AXP2101_SLAVE_ADDRESS, I2C_SDA, I2C_SCL)) {
Serial.println("Failed to initialize power.....");
while (1) {
vTaskDelay(5000);
}
}
and the other i2c has code
void hall_task_setup(void *Parameter) {
Serial.println("Starting Hall_get setup");
Wire.begin(13, 21);
if (! sensor.begin_I2C()) {
//if (! sensor.begin_SPI(MLX90393_CS)) { // hardware SPI mode
Serial.println("No sensor found ... check your wiring?");
while (1) { vTaskDelay(10); }
}
Serial.println("Found a MLX90393 sensor");
Both can run independantly using freertos. Any suggestions? Thanks.
The text was updated successfully, but these errors were encountered:
thanks @lewisxhe but I have a new problem: I currently can only upload script when I connect via usb holding boot button , but get nothing in terminal. When I try and connect without boot I get either *** [upload] Error 1 or error 13: could not open port when I try and open any connection. Any suggestion?
Hi. I am trying to run an MQTT script on one core, and read data from another i2c device on the other core, using freertos to do so.
When I try to do this, I get 'failed to initialize power' from the modem.
The MQTT tasks has default code:
and the other i2c has code
Both can run independantly using freertos. Any suggestions? Thanks.
The text was updated successfully, but these errors were encountered: