Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions cores/nRF5/utils/debug_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@ void Hardfault_handler_cpp( uint32_t *p_stack_address )
{
exception_frame* ef = (exception_frame*)p_stack_address;

Serial.printf("Unhandled exception 0x%08x ", SCB->ICSR & SCB_ICSR_VECTACTIVE_Msk);
Serial.printf(", exception sp 0x%08x\n", (uint32_t)p_stack_address);
Serial.printf("R0: 0x%08x, , R1: 0x%08x , R2: 0x%08x, R3: 0x%08x, R12: 0x%08x\n", ef->r0, ef->r1, ef->r2, ef->r3, ef->r12);
Serial.printf("LR: 0x%08x, PC: 0x%08x, PSR: 0x%08x\n", ef->lr, ef->pc, ef->psr);
Serial.printf("Unhandled exception 0x%08lx ", SCB->ICSR & SCB_ICSR_VECTACTIVE_Msk);
Serial.printf(", exception sp 0x%08lx\n", (uint32_t)p_stack_address);
Serial.printf("R0: 0x%08lx, , R1: 0x%08lx , R2: 0x%08lx, R3: 0x%08lx, R12: 0x%08lx\n",
ef->r0, ef->r1, ef->r2, ef->r3, ef->r12);
Serial.printf("LR: 0x%08lx, PC: 0x%08lx, PSR: 0x%08lx\n", ef->lr, ef->pc, ef->psr);

NVIC_SystemReset();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void loop() {

// Start advertising the data
pAdvertising->start(5);
Serial.printf("Advertising count = %d\n", count);
Serial.printf("Advertising count = %lu\n", count);
count++;
}

Expand Down
2 changes: 1 addition & 1 deletion libraries/n-able/examples/FreeRTOS/FreeRTOS.ino
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void BlinkTask(void *pvParameters) {

for (;;) { // A Task shall never return or exit.
digitalToggle(LED_BUILTIN);
Serial.printf("Free heap: %u\n", RTOS.getFreeHeap());
Serial.printf("Free heap: %lu\n", RTOS.getFreeHeap());
delay(500);
}
}