Bonjour,
Depuis hier, quelque soit le code genere j’obtiens le résultat RIOT kernel panic HARD FAULT HANDLER.
Ci-dessous un code tout simple, tous les appels au thread sont supprimés.
Où est l’erreur ?
Merci
Luc
cd work/iot-lab-training/ iotlab-experiment submit -d 60 -l 1,archi=m3:at86rf231+site=grenoble iotlab-experiment wait --timeout 30 --cancel-on-timeout iotlab-experiment get --nodes make IOTLAB_NODE=m3-102.grenoble.iot-lab.info -C riot/basics/sensors/ flash termp make IOTLAB_NODE=m3-102.grenoble.iot-lab.info -C riot/basics/sensors/ term *** rebooting... main(): This is RIOT! (Version: 2020.01) *** RIOT kernel panic: HARD FAULT HANDLER *** rebooting... Very simple code !!!! #include <stdio.h> #include "thread.h" #include "xtimer.h" /* Add lps331ap related include here */ #include "lpsxxx.h" #include "lpsxxx_params.h" /* Declare the lps331ap device variable here */ static lpsxxx_t lpsxxx; int main(void) { /* Initialize the lps331ap sensor here */ printf("Test application for %s temperature and atmospheric pressure sensor\n\n", LPSXXX_SAUL_NAME); printf("Initializing %s sensor\n", LPSXXX_SAUL_NAME); if (lpsxxx_init(&lpsxxx, &lpsxxx_params[0]) != LPSXXX_OK) { puts("Initialization of lpsxxx failed"); return 1; } /* Add the lps331ap sensor polling endless loop here */ while (1) { uint16_t pres; int16_t temp; /* lpsxxx_enable(&dev);*/ xtimer_sleep(1); /* wait a bit for the measurements to complete */ lpsxxx_read_temp(&lpsxxx, &temp); lpsxxx_read_pres(&lpsxxx, &pres); int temp_abs = temp / 100; temp -= temp_abs * 100; printf("Pressure value: %ihPa - Temperature: %2i.%02i°C\n", pres, temp_abs, temp); } return 0; }