web analytics

Firmware from 28.08.2015 and library example Display – Drawing Text

Home Forums Troubleshooting Firmware from 28.08.2015 and library example Display – Drawing Text

This topic contains 20 replies, has 3 voices, and was last updated by  peggyuk16 May 25, 2017 at 6:45 am.

Viewing 6 posts - 16 through 21 (of 21 total)
  • Author
    Posts
  • #647 Reply

    Hartmut Geissbauer

    Programmed it via ISP

    /usr/bin/avrdude -C /etc/avrdude.conf -p m2560 -P /dev/ttyACM0 -c stk500v1 -b 19200 -e -U flash:w:/home/hardy/temp/serial_repeat.hex:a

    avrdude: AVR device initialized and ready to accept instructions

    Reading | ################################################## | 100% 0.05s

    avrdude: Device signature = 0x1e9801
    avrdude: erasing chip
    avrdude: reading input file "/home/hardy/temp/serial_repeat.hex"
    avrdude: input file /home/hardy/temp/serial_repeat.hex auto detected as Intel Hex
    avrdude: writing flash (5922 bytes):

    Writing | ################################################## | 100% 6.19s

    avrdude: 5922 bytes of flash written
    avrdude: verifying flash memory against /home/hardy/temp/serial_repeat.hex:
    avrdude: load data flash data from input file /home/hardy/temp/serial_repeat.hex:
    avrdude: input file /home/hardy/temp/serial_repeat.hex auto detected as Intel Hex
    avrdude: input file /home/hardy/temp/serial_repeat.hex contains 5922 bytes
    avrdude: reading on-chip flash data:

    Reading | ################################################## | 100% 3.87s

    avrdude: verifying ...
    avrdude: 5922 bytes of flash verified

    avrdude: safemode: Fuses OK (H:FD, E:D8, L:FF)

    avrdude done. Thank you.

    All I get is a white blank screen and no response in the serial monitor.

    #648 Reply

    Phoenard-Team
    Keymaster

    I just noticed something: Fuses OK (H:FD, E:D8, L:FF)

    This is in the boards configuration of Arduino:
    mega.menu.cpu.atmega2560.bootloader.high_fuses=0xD8
    mega.menu.cpu.atmega2560.bootloader.extended_fuses=0xFD
    (and low is 0xFF)

    The high and extended fuses appear swapped in you case. Can you execute the following command? Set the phoenboot path to where your phoenboot.hex firmware file is located.

    /usr/bin/avrdude -C /etc/avrdude.conf -p m2560 -P /dev/ttyACM0 -c stk500v1 -b 19200 -e -U efuse:w:0xFD:m -U hfuse:w:0xD8:m -U flash:w:/path/to/phoenboot.hex:i

    -edit-

    Wait, looks like that is a bug in AVRDude I forgot about that. I get the same values reported here, so I assume it is alright. I re-compiled the serial sketch, this time initializing the screen properly before use. (since there is no bootloader, it didnt work)

    https://dl.dropboxusercontent.com/u/3681706/serial_repeat_v2.zip

    Btw if you’d like, you can join http://phoenard.com/irc and I can help you live.

    #651 Reply

    Hartmut Geissbauer

    This is a known bug of avrdude on linux.
    It’s only the output on the console, that is swapped.
    Nevertheless I flashed the firmware with the extended command line.
    Now I’m back to the phoenard environment with the known “Hello, Vorld!” bug.

    I played a little with the onboard serial sketch with 115200 and the serial monitor of the arduino ide.

    With the following text:
    (EnBW) auf der Internationalen Automobilausstellung (IAA) ab dem 17. September in Frankfurt zeigen. Die Technik werde bereits in einigen Gemeinden in Deutschland getestet,teilt das Unternehmen mit.

    After approx. 100 characters, there’s rubbish on the phoenard screen (phoenard #1 and #2).
    But this may be caused by a buffer, thats too small .

    #724 Reply

    hardy
    Participant

    Just to close the thread.
    Thanks to the support of phoenard, the solution is to use the “F macro” of the arduino ide with display.print statement.

    So the sketch in question looks now:

    
    #include "Phoenard.h"
    
    void setup() {
    // put your setup code here, to run once:
    Serial.begin(9600);
    display.setTextSize(4); // Use size 4x
    display.setTextColor(WHITE); // Draw in white
    display.setCursor(10, 90); // Set to (x=10, y=90)
    display.print(F("Hello, World!")); // Draw text
    }
    
    void loop() {
    // put your main code here, to run repeatedly:
    Serial.println("Alive");
    delay(1000);
    }
    #988 Reply

    isabellehj1

    Chit my new contract
    http://shemale.twiclub.in/?leaf.meredith
    erotic fairs sexy pictures erotic photo hunt erotic chinese massage free sex movies

    #989 Reply

    peggyuk16

    Late-model project
    http://vanessa.blog.porndairy.in/?entry.donna
    go fish dating app latest dating website dating site for spiritual singles herpes dating iste australia dating site russian

Viewing 6 posts - 16 through 21 (of 21 total)
Reply To: Firmware from 28.08.2015 and library example Display – Drawing Text
Your information:




29 − 21 =