-
-
Notifications
You must be signed in to change notification settings - Fork 116
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What happened?
What happen:
When I try use BluePad32 with FreeRTOS, code continuesly stop post print:
BLE scan -> 1
my_platform_on_oob_event: Bluetooth enabled: 1
Deleting stored BR/EDR link keys:
XX:XX:XX:XX:XX:XX - type 4, key: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX
Code:
#include "FreeRTOSConfig.h"
#include <FreeRTOS.h>
#include <task.h>
#include <btstack_run_loop.h>
#include <pico/cyw43_arch.h>
#include <pico/stdlib.h>
#include "sdkconfig.h"
#include <uni.h>
struct uni_platform *get_my_platform(void);
TaskHandle_t bt_task_handler = NULL;
void bt_task(void *p){
if (cyw43_arch_init()){
loge("Cannot run bluetooth\n");
return;
}
loge("Bluetooth initialized\n");
cyw43_arch_gpio_put(CYW43_WL_GPIO_LED_PIN, 1);
uni_platform_set_custom(get_my_platform());
uni_init(0, NULL);
btstack_run_loop_execute();
}
int main() {
stdio_init_all();
xTaskCreate(bt_task, "BT task", 4096, NULL, 0, &bt_task_handler);
vTaskCoreAffinitySet(bt_task_handler, (1<<0));
vTaskStartScheduler();
return 0;
}
Bluepad32 Version
Version: v1.6.2
Bluepad32 version custom
Bluepad32 Platform
None
Platform version
Raspberry PI PICO C SDK 2.2.0 Release
Controller
8BitDo Ultimate
Microcontroller
RP2040
Microcontroller board
Raspberry PI PICO W
OS
FreeRTOS
Relevant log output
Relevant sketch
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working