cancel
Showing results for 
Search instead for 
Did you mean: 

Stm8s discovery linux tool for stm8

lmx1
Associate II
Posted on January 05, 2015 at 00:04

Hi guys,

I am developing a tool for linux.

grab it from :

https://meocloud.pt/link/d1a42ac2-a022-4661-aee2-a1a2188c4c6a/LyPus/

Its for amd64 machines, it will create a folder on /tmp (where it will hold the session, and temporary stuff), and a folder on your home desktop, where you will deal with bin code for stm8 target..

do a ./lypus --help to see options :)

for now only read is available, and only bin format by default...

give me your feed back :)

regards

tuxd3v
2 REPLIES 2
lmx1
Associate II
Posted on January 05, 2015 at 00:45

hugh, I forgot to say that for now only bootloader is enable..

stlinkv1 is planned but not active, I need to redefine the backend of the aplication..

some examples:

we will create a session, and at the same time, we will ask stm8s105c6 for mcuid  and you will see the memory maps

./lypus --mcu stm8s105c6 --proto uart --baud 115200 --dev /dev/ttyUSB0 --session --info

after you create a session you don't need --mcu,--proto, etc

to do the same :

./lypus --session --info

read flash on default lypus folder in your home desktop, to default file:

./lypus --session --read --zone flash

to read only the first 100 bytes of flash zone

./lypus --session --read --zone flash --number 100

to read only the last 256 bytes of flash zone

./lypus --session --read --zone flash --addr 0x0xff00 --number 100

or

to read only the last 256 bytes of flash zone

./lypus --session --read --addr 0x0xff00 --number 100

type ./lypus --help to see options :)

for now only available for stm8105c6, but its easy to add support for more mcu's, if you want your supported you can read the file README.txt

and create an entry like that, afther drop me a line in the email in the tool.

Remember to enter bootloader mode you have 1 second to reset the mcu, and run the lypus program in computer, obviously you should have your serial or usb/uart converter already connected.

give me your feedback.

regards

tuxd3v
lmx1
Associate II
Posted on February 02, 2015 at 03:44

Hi guys,

I have been thinking about the way that I can read the memory maps from each stm8...

I think the best way is...using  a json file?!

take a look:

https://meocloud.pt/link/d1a42ac2-a022-4661-aee2-a1a2188c4c6a/LyPus/

is there a file ''stm8105c6.json'' with memory maps, and bootloader info.

I will use files like this one to load memory_maps and some relevant things.

In bootloader mode I will get the bootloader info from mcu, and compare if exists in code any struct line with info like I have received from mcu...

Afther I will load the maps in ram, if mcu is suported...

Using files I think is a better way, bacause everybody can make a json file like that(take a look), using the mcu datasheet?!

for stlinkv1, well I have some code, but it will be a long journey, since I am preparing the back end of lypus flasher tool to accept several protocol with minimal work ;)

Its a standardized way to use several protocol function calls abstracting the protocol used..

but I will use json files to load mem_maps to lypus, because seems to be a better way, to add support to any stm8 microcontrller?!

What do you think about?

Can anny one give me some feed back or any Idea on this?

regards

tux