Comments (19)
Please re-test with the latest development branch of dev platform (has not been released yet). Try dev version:
pio platform uninstall atmelavr
pio platform install https://github.com/platformio/platform-atmelavr.git
Does it work for you?
from platform-atmelavr.
Unfortunately not. I tried with the most simple example program:
`#include <BOB3.h>
void setup() {
bob3.setLed(EYE_1, WHITE);
}`
Here is the error on build:
`
Bob3-Test
lib
src
BOB3-test.cpp
.gitignore
.travis.yml
platformio.ini
BOB3-test.cpp
1
1
2
3
4
5
6
7
8
9
10
11
/**¬
·*¬
·*¬
·¬
·/¬
·#include <BOB3.h>¬
¬
·void setup() {¬
···bob3.setLed(EYE_1, WHITE);¬
·}¬
1.3 s
platformio run
Compiling .pioenvs/bob3/lib/BOB3/bob3/analog.o
Compiling .pioenvs/bob3/lib/BOB3/bob3/ircom.o
Compiling .pioenvs/bob3/lib/BOB3/bob3/leds.o
Compiling .pioenvs/bob3/lib/BOB3/bob3/main.o
Archiving .pioenvs/bob3/libFrameworkArduino.a
Compiling .pioenvs/bob3/lib/BOB3/bob3/time.o
Indexing .pioenvs/bob3/libFrameworkArduino.a
/home/joachim/.platformio/packages/framework-arduinoavr/libraries/cores/nicai/BOB3/src/bob3/time.c: In function 'delay_tick
s':
/home/joachim/.platformio/packages/framework-arduinoavr/libraries/cores/nicai/BOB3/src/bob3/time.c:40:5: warning: implicit
declaration of function 'yield' [-Wimplicit-function-declaration]
yield();
^
Archiving .pioenvs/bob3/lib/libBOB3.a
Indexing .pioenvs/bob3/lib/libBOB3.a
Linking .pioenvs/bob3/firmware.elf
/tmp/ccT0BUti.ltrans0.ltrans.o: In function main': ccT0BUti.ltrans0.o:(.text.startup+0x4e): undefined reference to
loop'
collect2: error: ld returned 1 exit status
*** [.pioenvs/bob3/firmware.elf] Error 1
========================== [ERROR] Took 0.99 seconds ==========================
PIO Buildsrc/BOB3-test.cpp00010:3(5, 67)
LFUTF-8C++
`
from platform-atmelavr.
Hi @texjoachim !
Looks like your code doesn't contain a mandatory loop
function. Here is a simple blink sketch for your board:
#include <Arduino.h>
#include <BOB3.h>
void setup()
{
// initialize LED digital pin as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
void loop()
{
// turn the LED on (HIGH is the voltage level)
digitalWrite(LED_BUILTIN, HIGH);
// wait for a second
delay(1000);
// turn the LED off by making the voltage LOW
digitalWrite(LED_BUILTIN, LOW);
// wait for a second
delay(1000);
}
Does it work?
from platform-atmelavr.
Ok, this one compiles perfectly, thanks!
However, I get an error message when I try to upload the sketch:
platformio run --target upload
[Tue May 2 20:42:50 2017] Processing bob3 (platform: atmelavr, board: bob3, framework: arduino)
--------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
Collected 31 compatible libraries
Looking for dependencies...
Library Dependency Graph
|-- <BOB3> v1.0.0
Looking for upload port...
Uploading .pioenvs/bob3/firmware.hex
avrdude: ser_open(): can't open device "com1": No such file or directory
avrdude done. Thank you.
*** [upload] Error 1
Dmesg on my system says:
[ 613.508105] usb 3-3: new full-speed USB device number 5 using xhci_hcd
[ 613.637875] usb 3-3: New USB device found, idVendor=16c0, idProduct=0933
[ 613.637877] usb 3-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 613.637878] usb 3-3: Product: ProgBob BOB3-programmer
[ 613.637879] usb 3-3: Manufacturer: nicai-systems
[ 613.637881] usb 3-3: SerialNumber: 00000
[ 613.638254] cdc_acm 3-3:1.0: ttyACM0: USB ACM device
I've updated the platformio.ini to:
[env:bob3]
platform = atmelavr
board = bob3
framework = arduino
upload_port = /dev/ttyACM0
But it still complains about COM1 which, being a Linux system, doesn't exist.
from platform-atmelavr.
Please
pio update
- Remove
upload_port
from your platformio.ini. PIO should detect port automatically. - Try uploading again.
from platform-atmelavr.
This is an improvement as it now finds the correct port.
Looking for upload port...
Auto-detected: /dev/ttyACM0
*** [upload] could not open port /dev/ttyACM0: [Errno 16] Device or resource busy: '/dev/ttyACM0'
However, now it can't open it. Here are the details on the port:
crw-rw---- 1 root dialout 166, 0 3. Mai 20:32 /dev/ttyACM0
Needless to say I'm in group dialout so the permissions should be alright.
from platform-atmelavr.
Could you try to reconnect this board?
from platform-atmelavr.
I did that.
No change. :(
from platform-atmelavr.
Could you program this board with Arduino IDE?
from platform-atmelavr.
No, it is only possible to program this board with some website.
That's one of the reasons I wanted to use Atom which I use for my UNOs, too.
from platform-atmelavr.
OK, does it work wit that site? Maybe, that site via Google Chrome's Serial uses your board
- Reboot your machine
- Don't open Chrome.
- Try PIO
from platform-atmelavr.
The problem with that site (https://www.progbob.org/) is that it uses a special connector program (dude.bob3.org) which you have to compile yourself (which fails on openSUSE). It does not use Chrome (which I don't even have installed.)
from platform-atmelavr.
Could we close this issue?
from platform-atmelavr.
If there is no hope left to get it to work, of course.
from platform-atmelavr.
You should decide which software to use. That is not our requirements. If your serial device is occupied by another program, we can not use it anymore while that program will release it.
If you would like to sue PIO, then don't run that "special connector program ".
from platform-atmelavr.
I don't run that program as I didn't even compile it. As far as I know, no program is using a serial device.
from platform-atmelavr.
So I would really like to use PIO.
from platform-atmelavr.
Please sorry, I've not got you. Let's forget about PIO.
Could you try this command in system terminal?
screen /dev/ttyACM0
Do you see any error?
from platform-atmelavr.
I get ...
[screen is terminating]
and sometimes I get nothing, that is the cursor is away and the terminal window just stays blank.
from platform-atmelavr.
Related Issues (20)
- Update all MCUdude Arduino cores to the latest version HOT 5
- Update MCUdude cores (yet again, sorry) HOT 1
- tool-micronucleus package (Digispark support) needs update to fix "flash erase error" -71, -32, etc. on Linux
- [Feature Request] HOT 1
- Updated PIO, build now fails with "KeyError: 'tool-avrdude," but I'm not even using avrdude HOT 2
- relocation truncated to fit: R_AVR_13_PCREL against `no symbol'
- Update MCUdude cores the the latest version HOT 1
- debugging with simavr: avr-gdb depends on libncurses.so.5 and libtinfo.so.5 HOT 1
- avr-gdb in toolchain atmelavr is obsolete and depends on libncurses5 HOT 1
- framework-arduino-avr package incredibly outdated HOT 7
- DOCS: Invalid Parameters. HOT 1
- Addding a custom board to your boards list (CRODUINO_ATMEGA328P_LoRA) HOT 1
- PlatformIO passes the wrong -mmcu flag for the assembler (ATmega328PB) HOT 4
- Upload to attiny85 using optiboot (serial)
- Support for Urboot and Mighty/Mini/Mega/MajorCore v3.0.0 HOT 2
- error: 'fabs' was not declared in this scope HOT 2
- Add support for ATX2 HOT 3
- toolchain-atmelavr source code and build scripts? HOT 12
- Custom board pull request. (STF Labs B107AA)
- please consider to add upload.mcu HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from platform-atmelavr.