Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
EBlink as a terminal?
#3
(18-01-2021, 08:14 AM)embitz Wrote: Hi,

1) Yes, you could use the ">" output redirection at your EBlink invocation. This is more a OS feature to be honest.
    If you need to read a particular memory location and write this to file, use the verbose level 0, this will omit all the info text and will give you only the memory value(s).
                 
Code:
EBlink -v0 -Istlink -Sauto -Fread=4@0x8000004 > outfile.txt

Remember, the output is an hex array (memory dump) of bytes because you can read any length of memory. So if you need to read an unsigned 32 you have to rebuild it by endianness your self. 


P.s. If you used the EBlink installer then you can invoke EBlink in any directory.  Just open a terminal in the directory where your file should be written and use the above command.


2) Depends what you mean with terminal application. You can from CLI:
    - start/stop/reset the core
    - read memory locations even from running target without stopping it
    - write flash locations even from running target without stopping it

Hi,

Thank you very much.

But I am not so advanced user.  I will try to describe my problem in detail.

I have written in EMbitz a program for STM32G031.  It works fine from the
EMbitz IDE.  I can access the EBlink in its window both for the  Debug and
Release targets.
And now my questions.
1. How from inside if the EMbitz IDE redirect EBlink to a file?

2. Is it possible to run the EBlink as a standalone terminal, not from
the EMbitz IDE?  When I try your suggested command:
Code:
EBlink -v0 -Istlink -Sauto -Fread=4@0x8000004 > outfile.txt

it returns an error message: Can't find MSC base address

Please, can you write a more detailed answer as instructions step by step?
I am sure, that it will be very useful for other users as well.

Great thanks,

vdaniel
Reply


Messages In This Thread
EBlink as a terminal? - by vdaniel - 17-01-2021, 10:03 AM
RE: EBlink as a terminal? - by embitz - 18-01-2021, 08:14 AM
RE: EBlink as a terminal? - by vdaniel - 18-01-2021, 09:51 AM
RE: EBlink as a terminal? - by embitz - 18-01-2021, 10:49 AM
RE: EBlink as a terminal? - by vdaniel - 18-01-2021, 11:40 AM
RE: EBlink as a terminal? - by embitz - 18-01-2021, 12:44 PM
RE: EBlink as a terminal? - by vdaniel - 18-01-2021, 01:37 PM
RE: EBlink as a terminal? - by dalbert - 13-02-2021, 12:23 PM
RE: EBlink as a terminal? - by vdaniel - 13-02-2021, 01:40 PM
RE: EBlink as a terminal? - by dalbert - 13-02-2021, 08:28 PM
RE: EBlink as a terminal? - by vdaniel - 14-02-2021, 04:27 PM
RE: EBlink as a terminal? - by dalbert - 15-02-2021, 01:15 AM
RE: EBlink as a terminal? - by embitz - 21-01-2021, 07:26 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)