Code Monkey home page Code Monkey logo

arduino-board-package's People

Contributors

ekirei avatar ektor5 avatar udooboard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arduino-board-package's Issues

pgm_read_ptr(addr) macro bug

Hello,

I'm new here, and also not totally sure I'm understanding the error I'm getting. But I think I found a bug in the Udoo arduino-board-package.

The macro at line 105 in
https://github.com/UDOOboard/arduino-board-package/blob/boardmanager/udoo/sam/cores/arduino/avr/pgmspace.h
seems to have something wrong with it. It's causing Paul Stoffgren's Time library to not compile.

I found another bug report here
adafruit/Adafruit_nRF52_Arduino#502
that gave me a better idea of what the error output means.

Below is the error I'm getting when I try to compile a sketch when I include <TimeLib.h>

In file included from /home/davidian/.arduino15/packages/UDOO/hardware/sam/1.6.7/cores/arduino/Arduino.h:31:0,
from /home/davidian/Arduino/libraries/Time/DateStrings.cpp:12:
/home/davidian/Arduino/libraries/Time/DateStrings.cpp: In function 'char* monthStr(uint8_t)':
/home/davidian/.arduino15/packages/UDOO/hardware/sam/1.6.7/cores/arduino/avr/pgmspace.h:105:49: error: 'const void*' is not a pointer-to-object type
#define pgm_read_ptr(addr) ((const void )(addr))
^
/home/davidian/.arduino15/packages/UDOO/hardware/sam/1.6.7/cores/arduino/avr/pgmspace.h:63:45: note: in definition of macro 'strcpy_P'
#define strcpy_P(dest, src) strcpy((dest), (src))
^
/home/davidian/Arduino/libraries/Time/DateStrings.cpp:72:29: note: in expansion of macro 'pgm_read_ptr'
strcpy_P(buffer, (PGM_P)pgm_read_ptr(&(monthNames_P[month])));
^
/home/davidian/Arduino/libraries/Time/DateStrings.cpp: In function 'char
dayStr(uint8_t)':
/home/davidian/.arduino15/packages/UDOO/hardware/sam/1.6.7/cores/arduino/avr/pgmspace.h:105:49: error: 'const void
' is not a pointer-to-object type
#define pgm_read_ptr(addr) (*(const void *)(addr))
^
/home/davidian/.arduino15/packages/UDOO/hardware/sam/1.6.7/cores/arduino/avr/pgmspace.h:63:45: note: in definition of macro 'strcpy_P'
#define strcpy_P(dest, src) strcpy((dest), (src))
^
/home/davidian/Arduino/libraries/Time/DateStrings.cpp:86:28: note: in expansion of macro 'pgm_read_ptr'
strcpy_P(buffer, (PGM_P)pgm_read_ptr(&(dayNames_P[day])));
^
exit status 1
Error compiling for board UDOO QDL (Arduino Due).

CAN not working with scketch on M4

Like describe here when we want to use CAN on A9 side if there is a scketch on M4 , CAN is not working ... This needs to disable M4 processor ... Suppose need to disable ECSPI5 by default in M4 core.

SPI outdated

Is there a workaround to use SPI in its up to date version? Apparently the interface changed and so all depending libraries will not work with the older outdated SPI interface.

If I compile a previously working sketch from a few years ago, the updated libraries will not work anymore because the interface changed.

Do I need to downgrade all used libraries or is there any update available?

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.