Skip to main content
Visitor II
July 1, 2020
Question

code generated by SDCC 3.8.0 not working properly for STM8L162M8

  • July 1, 2020
  • 2 replies
  • 857 views

Hi. I'm using an STM8L162 MCU. my application code size is more than 32KB . I am using SDCC 3.8.0 .To resolve memory issue I have switched from SDCC 3.5.0(as It uses 16 bit pointer) to SDCC 3.8.0 .

Still facing the issue - Code is compiled successfully but not working.

can someone suggest a way.

Thanks.

    This topic has been closed for replies.

    2 replies

    Visitor II
    July 2, 2020

    I thought ST has a deal with IAR for free IAR Workbench for STM8 (upto 32K?). then why playing with SDCC?

    Free stuff is usually expensive, especially free tools.

    Visitor II
    March 25, 2021

    The (non-free but freeware) IAR workbench is limited to a code size of 4 KB (used to be 8 KB a few years ago).

    Visitor II
    July 14, 2020

    Why switch to SDCC 3.8.0, when the current SDCC release is 4.0.0?

    I'd suggest to try SDCC 4.0.0 and check if that one works for you, then report back.

    Of course "not working" is not very verbose, so if the problem is still there with SDCC 4.0.0 more information would be helpful (a small compileable example showing the problem would be perfect).