Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to flash contiki-ng into Launchpad cc1312R1 #2724

Open
PatrykFonseca opened this issue Jun 11, 2024 · 0 comments
Open

How to flash contiki-ng into Launchpad cc1312R1 #2724

PatrykFonseca opened this issue Jun 11, 2024 · 0 comments

Comments

@PatrykFonseca
Copy link

PatrykFonseca commented Jun 11, 2024

Hello!
I'm trying to flash the contiki-ng into the launchpad cc1312R1 Rev:A, tried the hello-world example and also the base-demo
I've followed the steps in: https://docs.contiki-ng.org/en/master/doc/platforms/simplelink.html#
and I could build the project using code composer studio with v12, with the simplelink SDK installed and all necessary modules.

But there's actually two thing's going on:

  1. The output of the builder is a ".simplelink" file instead a .ELF file
  2. I'm able to use the ".simplelink" file to run the debug session, but the code stops inside a function trying to get the chip info inside the chipinfo.c file.

Here's the makefile for the hello-world example:

CONTIKI_PROJECT = hello-world

TARGET = simplelink
BOARD= launchpad/cc1312r1
DEBUG = 1
CFLAGS += -g

all: $(CONTIKI_PROJECT)

CONTIKI = ../..
include $(CONTIKI)/Makefile.include

Here's the output for the builder and linker:


"C:\\ti\\ccs1271\\ccs\\utils\\bin\\gmake" -k -j 4 hello-world -O 
 
  MKDIR     build/simplelink/launchpad/cc1312r1/obj/.deps
  MKDIR     build/simplelink/launchpad/cc1312r1/gen
  CC        hello-world.c
  CC        ../../arch/platform/simplelink/cc13xx-cc26xx/batmon-sensor.c
  ...
  ...
  ...
 CC        ../../os/net/routing/rpl-lite/rpl.c
  LD        build/simplelink/launchpad/cc1312r1/hello-world.simplelink

**** Build Finished ****

When debugging the code stops on the following function:


NOROM_ThisLibraryIsFor_CC13x2_CC26x2_HwRev20AndLater_HaltIfViolated() at chipinfo.c:208

Any ideas of what could be the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant