Skip to main content
Sabas Sabas
Associate
January 24, 2018
Question

Import example CocoxIDE to SW4STM32

  • January 24, 2018
  • 17 replies
  • 3501 views
Posted on January 24, 2018 at 22:54

The original post was too long to process during our migration. Please click on the attachment to read the original post.
    This topic has been closed for replies.

    17 replies

    Andrew Neil
    Super User
    January 24, 2018
    Posted on January 24, 2018 at 23:07

    So a lot of '

    undefined reference' errors from the linker.

    So you need to find where they should have been defined, and see why they haven't.

    Are you sure all the source files were actually compiled OK?

    And are all the necessary libraries supplied?

    Does SW4STM32 claim to be able to import CooCox projects?

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    Andrew Neil
    Super User
    January 24, 2018
    Posted on January 24, 2018 at 23:19

    I guess this is your Ticket: 

    https://github.com/RAKWireless/RAK811_BreakBoard/issues/3

      ?

    Note that there already is a Keil Project there.

    http://www.rakwireless.com/

      and the documentation download page appear to be dead.

    Perhaps you might have more luck with the ST/muRata LoRa Discovery kit:

    http://www.st.com/en/evaluation-tools/b-l072z-lrwan1.html

     
    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    Clive1 (HNL)
    Explorer
    January 25, 2018
    Posted on January 25, 2018 at 02:32

    The site times out for me too. From the AliExpress site the module looks quite good. I tend to prefer eBay+PayPal as these have more bite when it comes to playing by the rules, and shipping in a timely and verifiable manner.

    I suspect the OP's interest relates to the functionality of this board, with the ability to use and charge a battery, along with the GPS and Gyro, etc.

    Tesla DeLorean
    Guru
    January 24, 2018
    Posted on January 24, 2018 at 23:29

    So issues where you have multiple source files providing the same function, pick one. Others where you are missing source or include files, check include paths. And others missing library code.

    Consider if the project is buildable under Eval version of Keil (32KB or less).

    Looks like an interesting board/project, unfortunately don't have one here.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Andrew Neil
    Super User
    January 24, 2018
    Posted on January 24, 2018 at 23:39

    Clive One wrote:

    So issues where you have multiple source files providing the same function, pick one. Others where you are missing source or include files, check include paths. And others missing library code.

    Possibly wrong or missing project defines could cause (some of) that.

    There does appear to be a Cortex-M0 version of the module - so code for that should be buildable with the free Keil for STM32F0/L0

    Do you have CoIDE to see how it should build ... ?

    (CooCox seems to have died, but there do seem to be some 3rd-party sites with downloads still available - if you trust them)

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    Tesla DeLorean
    Guru
    January 25, 2018
    Posted on January 25, 2018 at 00:00

    Didn't see your responses earlier, and oddly say the question was asked 43 mins ago, with the first answer 47!! OP must have edited.

    Interestingly RaK has an eBay store now, but S&H costs seem very high compared to other vendors in China

    https://www.ebay.com/sch/rakwireless/m.html

     

    The original RAK811 had an L151 looking at Google Images.

    I would port to the current LRWAN tree if I had samples.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Sabas Sabas
    Associate
    January 24, 2018
    Posted on January 25, 2018 at 00:49

    CoIDE build

    0690X00000609UAQAY.png0690X00000609UTQAY.png0690X00000609UYQAY.png
    Andrew Neil
    Super User
    January 25, 2018
    Posted on January 25, 2018 at 01:26

    Does it build successfully in CoIDE?

    If it does, then you just need to go through all the settings, and make sure that you have the same in SW4STM32

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    Sabas Sabas
    Associate
    January 25, 2018
    Posted on January 25, 2018 at 19:30

    The original post was too long to process during our migration. Please click on the provided URL to read the original post. https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I6uP&d=%2Fa%2F0X0000000bxn%2F1gV.rZOr_Y2i7YzCN9iarBNggqGi2k3UIjbXO1lNA98&asPdf=false
    Sabas Sabas
    Associate
    January 25, 2018
    Posted on January 25, 2018 at 19:56

    Compiled! with some warnings

    0690X00000609UoQAI.png
    Clive1 (HNL)
    Explorer
    January 26, 2018
    Posted on January 26, 2018 at 01:28

    Handful of warning in Keil too, bit tighter build even with optimization off

    Program Size: Code=62642 RO-data=1722 RW-data=420 ZI-data=5940

    FromELF: creating hex file...

    '.\Objects\classA.axf' - 0 Error(s), 3 Warning(s).

    Program Size: Code=30840 RO-data=788 RW-data=96 ZI-data=3512  

    FromELF: creating hex file...

    '.\Objects\ping-pong.axf' - 0 Error(s), 4 Warning(s).

    Build Time Elapsed:  00:00:30

    Carlos Soria
    Visitor II
    March 14, 2018
    Posted on March 14, 2018 at 14:17

    I have the same results

    Turvey.Clive

    ‌ on Keil 5.1 but i can't access to the coocox download page, i asume that would be a problems on this site.