Git Product home page Git Product logo

Comments (7)

sultanqasim avatar sultanqasim commented on September 26, 2024

The procedure you described sounds correct, so I’m not yet sure why it isn’t working for you. I’m away from my CC2651 board at the moment, but I have successfully tested it on the CC2651P3 (at least with SDK 5.40). I’ll make a build myself shortly and let you try it.

from sniffle.

sultanqasim avatar sultanqasim commented on September 26, 2024

Here's a build I made following largely the same steps you did. Unzip it, and flash it with Uniflash.
sniffle_cc2651p3.out.zip

By chance, did you forget to specify PLATFORM = CC2651P31 when you invoked make sniffle.out and/or make load?

from sniffle.

stevewillson avatar stevewillson commented on September 26, 2024

Thank you! I loaded the sniffle_cc2651p3.out.zip and ran the scanner.py tool. It immediately showed output and appears to work.

I noticed the file that you provided is 2.2MB in size while the file I built is 1.6MB.

I attempted to isolate the problem by removing all references to other platforms from the makefile, but still ended up with a sniffle.out file size of 1.6MB that did not work.

I reverted to the original makefile in the master branch in case I inadvertently messed something up, then followed the steps I mentioned in the earlier post to build the file. I specified the platform with $ export PLATFORM=CC2651P31 and made sure that it was set prior to running make syscfg, make sniffle.out, and make load, the sniffle.out file was still 1.6MB and did not work when loaded to the CC2651P3 board.

I'm interested in building Sniffle, are there other recommendations to check?

from sniffle.

sultanqasim avatar sultanqasim commented on September 26, 2024

How big is the firmware (.out ELF file) if you run make clean and then make CC2652R1F with an unmodified makefile? It should be around 2.2 MB as well. The hack around commenting out the sysconfig invocation (for bAcceptSyncInfo) is only needed for the CC2651 family.

The procedure I used to build for the CC2651P3 was:

  1. Start with an unmodified makefile, and run make clean
  2. Run make PLATFORM=CC2651P31 and watch the build proceed till it fails with the bAcceptSyncInfo error.
  3. Comment out line 172 of the makefile (https://github.com/nccgroup/Sniffle/blob/master/fw/makefile#L172) and remove the bAcceptSyncInfo line from ti_radio_config.c.
  4. Run make PLATFORM=CC2651P31 again

from sniffle.

stevewillson avatar stevewillson commented on September 26, 2024

When using $ make PLATFORM=CC2652R1F the sniffle.out firmware file is 1.6MB (as reported by ls -lh sniffle.out).

I will check that I set up the environment correctly.

Steps:
$ git checkout makefile
$ make clean
$ make PLATFORM=CC2652R1F
$ ls -lh sniffle.out

The sniffle.out file size is 1.6MB.

$ sha1sum sniffle.out (for the CC2652R1F platform)
9bfd562dda461cd1f5a316f83d3b7d99a7dd5bd5 sniffle.out

I'm unable to verify if the file works correctly because I only have a CC2651P3 Development Kit.

I'm building this on an Ubuntu 22.04 OS machine.

from sniffle.

sultanqasim avatar sultanqasim commented on September 26, 2024

Which compiler are you using? Use a compiler from this series: https://developer.arm.com/downloads/-/gnu-rm

(they're now deprecated, but I had issues with their replacement)

I've been using gcc-arm-none-eabi-9-2019-q4-major from there, but their last 10.3 release should also work.

from sniffle.

stevewillson avatar stevewillson commented on September 26, 2024

The gcc-arm-none-eabi-9-2019-q4-major compiler works, thank you!

I used the 9-2019-q4-major release.

I downloaded the compiler from: https://developer.arm.com/downloads/-/gnu-rm

The specific version I am using
gcc version 9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599] (GNU Tools for Arm Embedded Processors 9-2019-q4-major)

I also tried the 10.3 release, but it did not work for me. At first, I used the 11.2 release (which also didn't work).

Below are the versions I tried in the imports.mak file ($(HOME)/ti/simplelink_cc13xx_cc26xx_sdk_6_10_00_29/imports.mak)

GCC_ARMCOMPILER         ?= /home/user/arm_tools/gcc-arm-none-eabi-9-2019-q4-major # WORKS
#GCC_ARMCOMPILER        ?= /home/user/arm_tools/gcc-arm-11.2-2022.02-x86_64-arm-none-eabi # DOESN'T WORK
#GCC_ARMCOMPILER        ?= /home/user/arm_tools/gcc-arm-none-eabi-10.3-2021.10 # DOESN'T WORK

from sniffle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.