Hi, friends!
I’m totally suck in attempts to flash hexiwear device via mbed studio.
Problem #1:
I’ trying to build and run simple code from blinking example (below).
#include "mbed.h"
int main() {
DigitalOut myled(LED1);
while(1) {
thread_sleep_for(500);
myled = !myled;
}
}
After 2-3 minutes building bin-file I got protocol (below).
Link: Hexi_Blinky_Example
[Warning] @0,0: L3912W: Option 'legacyalign' is deprecated.
Elf2Bin: Hexi_Blinky_Example
| Module | .text | .data | .bss |
|----------------------|--------------|---------|-----------|
| [lib]\c_w.l | 4222(-146) | 16(+0) | 348(+0) |
| [lib]\fz_wm.l | 26(+0) | 0(+0) | 0(+0) |
| [lib]\libcppabi_w.l | 44(+0) | 0(+0) | 0(+0) |
| anon$$obj.o | 32(+0) | 0(+0) | 2304(+0) |
| main.o | 60(+12) | 0(+0) | 0(+0) |
| mbed-os\cmsis | 7684(-1783) | 168(+0) | 6609(+0) |
| mbed-os\connectivity | 62(-106) | 0(+0) | 0(+0) |
| mbed-os\drivers | 174(+12) | 0(+0) | 0(+0) |
| mbed-os\hal | 1208(-474) | 8(+0) | 131(+0) |
| mbed-os\platform | 5689(-1967) | 64(+0) | 420(+4) |
| mbed-os\rtos | 194(-226) | 0(+0) | 0(+0) |
| mbed-os\targets | 10338(-5020) | 36(+0) | 341(+0) |
| Subtotals | 29733(-9698) | 292(+0) | 10153(+4) |
Total Static RAM memory (data + bss): 10445(+4) bytes
Total Flash memory (text + data): 30025(-9698) bytes
Image: BUILD/HEXIWEAR/ARMC6\Hexi_Blinky_Example.bin
Everything looks good, but hexiwear led doesn’t blinking, it seems like flashing was failed.
Then, I tried to put bin-file to mounted hexiwear drive, result was the same.
I tried compile the code via online compiler and put bin-file to hexiwear, result was successful.
Problem #2
I’m using hexiwear WorkStation (https://www.mikroe.com/hexiwear-workstation) to mount controller. When I tryed to debug my code using debugger I got callstack like this (below).
UART_GetStatusFlags
serial_writable
serial_putc
DirectSerial::write(void const*, unsigned int)
write
mbed_error_puts
mbed_error_vprintf
mbed_error_printf
mbed_fault_handler
mbed_fault_handler
...
mbed_fault_handler
Load More Stack Frames
It seems that debugging failed…
Please help me to cope with this problems.
Thank you, Andrey