Hexiwear WorkStation
Posted: 25 Nov 2020 07:05
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 like blinking example (below).
After 2-3 minutes of building bin-file I got protocol (below).
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 same code via online compiler and put bin-file to hexiwear, result was successful.
Problem #2
I'm using hexiwear board (https://www.mikroe.com/hexiwear-workstation) to mount controller. When I trying to debug my code using debugger I'm getting callstack like this (below).
It looks like debugger does not work properly.
Please help me to cope with this problems.
Thank you, Andrey
I'm totally suck in attempts to flash hexiwear device via mbed studio.
Problem #1:
I' trying to build and run simple code like blinking example (below).
Code: Select all
#include "mbed.h"
int main() {
DigitalOut myled(LED1);
while(1) {
thread_sleep_for(500);
myled = !myled;
}
}
Code: Select all
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
Then, I tried to put bin-file to mounted hexiwear drive, result was the same.
I tried compile the same code via online compiler and put bin-file to hexiwear, result was successful.
Problem #2
I'm using hexiwear board (https://www.mikroe.com/hexiwear-workstation) to mount controller. When I trying to debug my code using debugger I'm getting callstack like this (below).
Code: Select all
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
Please help me to cope with this problems.
Thank you, Andrey