DueFreeRTOS icon indicating copy to clipboard operation
DueFreeRTOS copied to clipboard

Hardfault with platformIO + arduino framework

Open MikeSnyder360 opened this issue 10 months ago • 0 comments

Hi !

I was able to get this working in the Arduino IDE.

Then, trying PIO, I get a hardfault after prvPortStartFirstTask() and vTaskStartScheduler(). The blink task just blinks toggles a gpio and delay's

xTaskCreate(blink, (const char )"blink", 4128, NULL, 2, NULL); vTaskStartScheduler();

Here's my pio.ini

[env:due] platform = atmelsam board = due framework = arduino build_type = debug build_flags = -g upload_protocol = jlink upload_port = /dev/tty.usbmodem134201 debug_tool = jlink lib_extra_dirs = src/lib/ lib_deps = waspinator/AccelStepper@^1.64 https://github.com/br3ttb/Arduino-PID-Library https://github.com/bdmihai/DueFreeRTOS.git extra_scripts = post:elf2hex.py

MikeSnyder360 avatar Apr 20 '24 20:04 MikeSnyder360