cancel
Showing results for 
Search instead for 
Did you mean: 

STM8AL318A peripheral registers include file

Johan Nylund
Associate II
Posted on February 02, 2017 at 12:01

Hi

I am using a STM8AL318AT. What is the correct peripheral resisters include file to use? The stm8s.h includ file from the standard peripgeral library does not support any AL device. Can I use the stm8l15x.h file and uncomment the HD device?

Regards

/Johan

5 REPLIES 5
Oliver Beirne
Senior
Posted on February 02, 2017 at 13:56

Hello Johan

I have moved your question to the 

https://community.st.com/community/automotive-mcus-community/spc5-automotive-mcus

 forum where someone should be able to assist you.

Thanks

Oli

Posted on February 06, 2017 at 10:21

Hello Johan ,

Even if it could be an automotive MCUs, STM8A is relative to the arm core not PPC (SPC5 Family)

i have put your question in STM8 Part

      Best regards

               Erwan

Posted on February 06, 2017 at 11:51

Hello, let me bring a little precision here. The STM8 is not based on ARM core. This is a proprietary core developed by ST. If the STMAL318AT is not described properly  (Something I will check and ask for correction), the STM8L15x will do.

In fact we have extended the qualification and fault coverage of the standard STM8L in order to get the devices aligned with the AEC-Q100.

Patrice 

Max
ST Employee
Posted on February 09, 2017 at 12:30

To answer to the original question, the correct library package is

http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm8-embedded-software/stsw-stm8016.html

The header file is stm8l15x.h

and the correct macro to define in the project is:

#define STM8AL31_L_MD 

Max

Posted on February 09, 2017 at 13:00

Ok, thanks Max

It sounds obvious and correct! I guess the stm8l15x.h file I got when I downloaded some LIN (STSW-STM8073/74) example did not have this macro, it was an older version.

Regards

/Johan