cancel
Showing results for 
Search instead for 
Did you mean: 

Looking for registermap database to generate headers for SDCC

martonmiklos
Senior
Posted on June 12, 2017 at 10:36

Hello all,

I would like to generate register map definition header files preferably for all STM8 MCUs to for the SDCC project.

Is there any database (XML, MDB, whatever) from what I could generate it without hurting any license?

Thanks in advance!

#sdcc

Note: this post was migrated and contained many threaded conversations, some content may be missing.
23 REPLIES 23
martonmiklos
Senior
Posted on June 14, 2017 at 14:51

Bump!

martonmiklos
Senior
Posted on June 22, 2017 at 10:04

Panecki.Szymon.002

VALCIN.Simon

Could you please comment on this one?

The IAR ships a bunch of sfr files where all the necessary information would be available for me but those files are copyrighted.

I cannot believe that they have 'handtyped' those files from the datasheets, the sources of these files must be derived from some databases coming from the ST.

Thank you in advance!

Posted on June 22, 2017 at 11:49

Hi Miklos,

There is a project on github, a guy adapted the standard peripheral libraries for SDCC:

https://github.com/onepixel0/stm8-sdcc-cmake

 
Posted on June 22, 2017 at 12:00

Thanks for the link, but there are many cases when it is easier to use the bitfields directly.

Posted on June 22, 2017 at 12:14

I agree and I support your original question.

Posted on June 22, 2017 at 13:37

https://community.st.com/0D50X00009XkgGcSAJ

Posted on June 22, 2017 at 14:37

I have checked those files but I have not found the bitfields definitions in them.

I doubt that any of that would have it because the STVD itself is unaware of that:

0690X00000607JCQAY.png
Posted on June 23, 2017 at 11:40

Then we can invent them :p

On Thu, Jun 22, 2017 at 3:38 PM, marton.miklos <

Posted on June 23, 2017 at 11:43

The sfr files shipped with IAR have all of these bitfield informations, but they are copyrighted and the SDCC could not include them legally.

This is why I have asked it from the ST with permissible license. But as you see they did not care about this.