Skip to main content
Visitor II
October 23, 2023
Question

STM8S001J3 assembler

  • October 23, 2023
  • 3 replies
  • 1369 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.

    3 replies

    Graduate II
    October 23, 2023

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

     

    johnbeAuthor
    Visitor II
    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.

    Graduate II
    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

    johnbeAuthor
    Visitor II
    October 25, 2023

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