Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
STM32F091 with STLinkGDB.exe in em::blocks / em::bitz
#1
Hello,

is there any way to support these chips in blocks/bitz?

The STLinkGDB.exe seems to be outdated in both versions, and building an own version from the sources is a real pain (and I've given up after various compilation fails). Is there any way to get a recent binary somewhere?

As the chip ID is unknown, the GDB refuses to write the flash pages to the device.

Code:
STLINK GDB Server (EmBlocks Oct  2 2014 21:12:49)
Shutdown after disconnect is active.
Connect under reset is active.

Connected to STlink/V2-1 probe at 003:005
WARN : unknown chip id! 0x10006442
Chip ID is 00000442, Core ID is  0bb11477.
Number of HW-breakpoints: 4
Listening at *:4242...

Code:
STLINK GDB Server (EmBitz Nov 18 2015 06:13:45)
Connect under reset is active.

Connected to STlink/V2-1 probe at 003:005
WARN : unknown chip id! 0x442
Chip ID is 00000442, Core ID is  0bb11477.
Target voltage: 3.25
Number of HW-breakpoints: 4
Listening at *:4242...

Strangely, the 0x442 id for STM32F09x was added in Feb 2015
https://github.com/texane/stlink/commit ... 72716e5951
Reply
#2
I have added the 0x442 device ID. I can't test it because I don't have these devices so please give some feedback if it's working.


Attached Files
.7z   STLinkGDB.7z (Size: 71 KB / Downloads: 100)
Reply
#3
Hello and sorry for the delayed answer.

I tested the .exe with EmBlocks 2.3.0 (I will test it under Bitz next week), getting the following result:

Code:
STLINK GDB Server (EmBitz Mar 22 2016 16:07:26)
Shutdown after disconnect is active.
Connect under reset is active.

Connected to STlink/V2-1 probe at 002:006
Chip ID is 00000442, Core ID is  0bb11477.
Target voltage: 3.25
init watchpoints
Number of HW-breakpoints: 4
Listening at *:4242...
GDB connected.
query: Supported;multiprocess+;qRelocInsn+;qNonBlockRemote+;qAsyncPrint+
NoAckMode mode active.
NonBlocking mode active.
query: Xfer;features:read:target.xml:0,fff
Xfer: type:features;op:read;annex:target.xml;addr:0;length:4095
query: TStatus;
query: Attached;
query: Offsets;
query: Xfer;memory-map:read::0,fff
Xfer: type:memory-map;op:read;annex:;addr:0;length:4095
query: Symbol;:
query: Rcmd,636c726270;
Rcmd: clrbp
query: Rcmd,72657365742030;
init watchpoints
Reset: system
FlashErase: addr:08000000,len:3000
GDB Program Transfer:
*
done.
flash_do: block 08000000 -> 3000
flash_do: page 08000000
WriteFlash - Size: 2048 @ 0x08000000
flash_do: page 08000800
WriteFlash - Size: 2048 @ 0x08000800
flash_do: page 08001000
WriteFlash - Size: 2048 @ 0x08001000
flash_do: page 08001800
WriteFlash - Size: 2048 @ 0x08001800
flash_do: page 08002000
WriteFlash - Size: 2048 @ 0x08002000
flash_do: page 08002800
WriteFlash - Size: 2048 @ 0x08002800
query: fThreadInfo;
query: Rcmd,72657365742030;
init watchpoints
Reset: system

So far, so well, it flashes the program. My startup-code for the chip seems to be broken and jumps to Default_Handler. Time for debugging...
I can step through the code, set breakpoints.

If I detect anything GDB-related bugs, I will respond here again :-)
Reply
#4
Thanks, I will add this version to the next release.
Reply
#5
I've used this exe for some time now with various stm32 derivates and st-link programmers. Doesn't seem there are any new issues, compared to the old version*.

Tested configurations:
- All on Win7, 64 Bits, Em::Blocks 2.30

- ST-Link V2, STM32F407VG
- ST-Link V2, STM32L052R8
- ST-Link V2, STM32L100RB
- ST-Link V2, STM32L100RC (discovery)
- ST-Link V2, STM32F103RB

- ST-Link V2-1, STM32L152RE (nucleo)
- ST-Link V2-1, STM32F091RC (nucleo)
- ST-Link V2-1, STM32F042K6 (nucleo)


[*] emblocks 2.30 STLinkGDB
Reply
#6
Work perfectly with EmBitz 0.42. Tongue
Reply
#7
(03-29-2016, 06:35 AM)EmBitz Wrote: Thanks,  I will add this version to the next release.

Hi
I would like to use EmBitz with an STM32F091.  Downloaded the latest 1.11
In the new project Wizard I do not see a choice for this MCU.  This forum post is a year old and you mention adding support.

Any help on setting up a project for the STM32F091 would be appreciated. 

Thanks
Daraius Hathiram
TenX
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)