Skip to main content
Associate
October 23, 2023
Question

STM8S001J3 assembler

  • October 23, 2023
  • 4 replies
  • 2401 views

Hi. I'm writing assembler code for the STM8S001j3. The data sheet recommends setting ports E5 & F4 to lo for power useage & EMC reasons. However the .asm & .inc files called up do not define ports E or F. The same goes for the peripheral enable  registers PCKENR1 & PCKENR2. This is using STVD 4.3.12.

What am I missing ? (apart from not using C). 

    This topic has been closed for replies.

    4 replies

    Tesla DeLorean
    Guru
    October 23, 2023

    Find a part appropriate INC file, or add the EQU in the form expect?

     

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    johnbeAuthor
    Associate
    October 24, 2023

    Thanks. I had assumed the files in the latest STVD would include the full data on their devices but apparently not. I've now edited a set of .asm & .inc files to cover those ports. The peripheral enable registers were in fact there but somewhere in the documentation I saw it refered to them as PCKENR and not CLK_PCKENR.

    Tesla DeLorean
    Guru
    October 24, 2023

    Unfortunately, as I've previously noted, the STM8 is pretty much a dead-end / abandoned architecture. Most engineering resources being focused on the ARM lines, where the revenue is. I don't know if there are better forums, or active github related to STM8 parts and issues.

    STVD 4.3.12 is from 2017

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    johnbeAuthor
    Associate
    October 25, 2023

    Thank for that insight and thanks for making me feel even older than I actually am !