Hexiwear WorkStation

General discussion on Hexiwear development kit.
Post Reply
Author
Message
HungryGoblin
Posts: 1
Joined: 21 Nov 2020 07:40

Hexiwear WorkStation

#1 Post by HungryGoblin » 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).

Code: Select all

#include "mbed.h"
int main() {
    DigitalOut myled(LED1);
    while(1) {
        thread_sleep_for(500);
        myled = !myled;
    }
}

After 2-3 minutes of building bin-file I got protocol (below).

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
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).

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
It looks like debugger does not work properly.

Please help me to cope with this problems.
Thank you, Andrey

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Hexiwear WorkStation

#2 Post by filip » 04 Dec 2020 08:46

Hi,

I apologize for the late reply, have managed to get this working ?

Regards,
Filip.

Post Reply

Return to “Hexiwear”