mavishak / cnss-embedded

1 stars 0 forks source link

Integrating event_queue, sensor and wifi-module #20

Open mavishak opened 3 years ago

mavishak commented 3 years ago

29/03/2021

We have started testing a full system mode (without a camera). After adjusting the sensors time delay we got the next message:

load 0x40100000, len 27728, room 16 tail 0 chksum 0x2a load 0x3ffe8000, len 2124, room 8 tail 4 chksum 0x07 load 0x3ffe8850, len 9276, room 4 tail 8 chksum 0xba csum 0xba Fatal exception 2iInstructionRetchErrorCause): eqc1=0x3ffff790, epc2=0x00000000, epc3=0x00000000, excvaddr=0x3ffff790, depc=0x0x000000008x Fatal exception E:M

We used the next main:

#include "stm32f103xb.h"
#include "event_queue.h"
#include "hc-sr501pir_sensor.h"
#include "usart.h"
#include "esp8266_Firebase.h"
#include "esp8266_WiFi.h" //for testing usart1...
#include "timers.h"
#include "common.h"

int main(void)
{

    init_queue();
    init_sensor_with_interrupt();
    //init_sensor_led_response();
    init_usart2(); // for debugging

    //init_timer2();
    //init_timer3();
    init_timer4();

    init_usart1(); // for ESP8266
    write_usart2((uint8_t*)("\r\n_______________\r\n"));//For test

    while(1)
    {
        do_event();

    }
}