Author Topic: :-\ codeblocks - STM8L build noobstuck  (Read 4089 times)

0 Members and 1 Guest are viewing this topic.

Offline 3roomlabTopic starter

  • Frequent Contributor
  • **
  • Posts: 824
  • Country: 00
:-\ codeblocks - STM8L build noobstuck
« on: November 24, 2016, 12:19:44 pm »
i finally got around to trying some more STM8L thingy

i got stuck trying to put SDCC and codeblocks together according to this website
http://blog.podstuff.de/setup-codeblocks-for-stm8s-discovery/, for STM8L152.

basically, edit settings in codeblocks --> copy inc / src folders --> add in adaptations --> build. but due to lack of 8L152 adaptations, it does'nt build?

i can see some difference in the STM8S modified version, and the missing SDCC referal, which makes codeblock not building it.

stm8l15x.h --> have no SDCC part referal inside

Code: [Select]
#if defined(SDCC)
#include <stdint.h>
#else
/*!< Signed integer types  */
typedef   signed char     int8_t;
typedef   signed short    int16_t;
typedef   signed long     int32_t;

/*!< Unsigned integer types  */
typedef unsigned char     uint8_t;
typedef unsigned short    uint16_t;
typedef unsigned long     uint32_t;
#endif

missing stm8l15x_conf.h --> this looks like a "*.h capabilities" pointer?

does anyone have any experience in the above? or have an alternative or working file(s) i could look at?
« Last Edit: November 24, 2016, 12:22:09 pm by 3roomlab »
 

Offline Brutte

  • Frequent Contributor
  • **
  • Posts: 614
Re: :-\ codeblocks - STM8L build noobstuck
« Reply #1 on: December 02, 2016, 07:35:11 am »
I do not have the SDCC experience with STM8 but I think that if only header file is a problem then just tweak a header from some other toolchain (raisonance cosmic iar).
Or start from a commercial demo version IDE and with that experience go to SDCC.

Mind that afaik there are no unlimited/free/open-soruce stm8 debuggers available and besides you cannot debug STM8 SDCC at all.
 
The following users thanked this post: 3roomlab

Offline 3roomlabTopic starter

  • Frequent Contributor
  • **
  • Posts: 824
  • Country: 00
Re: :-\ codeblocks - STM8L build noobstuck
« Reply #2 on: December 08, 2016, 03:25:24 am »
has anyone been able to get STM8 xxx thingies to work w/o IAR/COSMIC, just STVD alone?
 

Offline Bruce Abbott

  • Frequent Contributor
  • **
  • Posts: 627
  • Country: nz
    • Bruce Abbott's R/C Models and Electronics
Re: :-\ codeblocks - STM8L build noobstuck
« Reply #3 on: December 08, 2016, 02:33:34 pm »
 
The following users thanked this post: 3roomlab


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf