Menu

mega 2560 pro ( Robodyn) supported?

2022-05-24
2022-06-05
  • Jose Morales

    Jose Morales - 2022-05-24

    Hi all, I'm new to Forth and to the forum. I have a couple of these boards laying around, I have flashed them with avrdude, but for what ever reason, I can't get any of them to give me a console, has anyone manage to get them sorted? Was looking into FlashForth with it's support for I2C as the main attraction to learn ( was on my bucket list) and develop some quick projects around the house.

    I'm on windows, but I could only flash the boards on a RPi running Linux as the Arduino IDE has issues ( well windows drivers issues) to properly get the boards connect with the 6.x version of AVRDUDE that it's running. If I run the current version, I can flash the cards, but in Windows, they miss behave and it looks like there is a reset after flashing and I get a avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x2104) time out message. I was able to load several hex files that I created with blinky on assembly I found on stockexchange, they all work...

    ;blinky.asm
    ;turns on LED which is connected to PB5 
    .equ    PORTB   = 0x05
    .equ    DDRB    = 0x04
    
        ldi r16,0b00100000
        out DDRB,r16
        out PORTB,r16
    Start:
        rjmp Start
    

    I'm not sure what is going on, but it's frustrating not knowing this platform as much as I do the ST or TI boards. Please advice.

    What do I see, I set TeraTerm ( I'ved tried every combination possible) but I've never had an issue trouble shooting HW serial connection. I see TX ( or I should say the RX on the board) give a receive signal but there is no response.

    Well, as I was typing this, unless someone has found a way to successfully use this board, I think I will give up on them... simple serial output seems to be a challenge with the CH340 chip... from all am reading.

    Anyhow, worth a shot, else please advice on some true and tried boards.

    Cheers from Spain!

     
  • Jose Morales

    Jose Morales - 2022-05-25

    Hey everyone, quick update, resolved my issue, been bitten by this twice now in into weeks, it was the programmer cable.

    Man, that took a while, recompiled the code several times... and then... could not believe that 3 for 3 the boards where bad... I moved over to a friends house, took the code with me and it worked first try... I took my laptop out reflashed and it failed, that is when I thought, wait, give me just your cable... and it worked.

    words
    p2+ pad pc@ @p ddrb portb hi unused d. ud. d> d< d= d0< d0= dinvert d2* d2/ d- d+ dabs ?dnegate dnegate s>d rdrop endit next for in, inline repeat while again until begin then else if zfl pfl xa> >xa x>r dump .s words >pr .id ms ticks r0 s0 latest state bl 2- ['] -@ ; :noname : ] [ does> postpone create cr [char] ihere ( char ' lit abort" ?abort ?abort? abort prompt quit true false .st inlined immediate shb interpret 'source >in tiu tib ti# number? >number ud/mod ud* sign? digit? find immed? (f) c>n n>c @+ c@+ place cmove word parse \ /string source user base hb hp task ulink rsave bin hex decimal . u.r u. sign #> #s # digit <# hold up min max ?negate tuck nip / u*/mod u/ * u/mod um/mod um* 'key? 'key 'emit p++ p+ pc! p! p@ r>p !p>r !p u> u< > < = 0< 0= <> within +! 2/ 2* >body 2+ 1- 1+ negate invert xor or and - m+ + abs dup r@ r> >r rot over swap drop allot ." ," s" (s" type accept 1 umax umin spaces space 2swap 2dup 2drop 2! 2@ cf, chars char+ cells cell+ aligned align cell c, , here dp ram eeprom flash >< rp@ sp! sp@ 2constant constant 2variable variable @ex execute key? key emit Fcy mtst scan skip n= rshift lshift mclr mset ic, i, operator iflush cwd wd- wd+ pause turnkey to is defer value fl+ fl- c! c@ @ x! x@ a> ! >a literal int! ;i di ei ver warm empty rx1? rx1 tx1 rx0? rx0 tx0 load- load+ busy idle exit
    marker  ok<#,ram>
    
     
  • Frans-Pieter Vonck

    You probably have already found 0033mer's channel, on youtube about using flashforth. Here is a demonstration of the use of the mega 2560 pro board
    https://www.youtube.com/watch?v=WYLUM_mbCvI

     
    • Jose Morales

      Jose Morales - 2022-06-05

      Hi, thank you for following up with me. As I mentioned, the issue was with
      my cables, it just so happened that I could flash anything ( using avrdude
      ) but it failed only when I was flashing FF5.0. When I tried to load a
      bootloader since I would not see anything on the board, I realised I could
      no longer flash it, which led me to take the board to a friend's house and
      we successfully flashed everything on it. When I used my AVRISP, it then
      failed, which led me to change the cable and solve the issue. Greatly
      appreciate your comments. I did post on his video, but I guess he did not
      like me questioning what param he used to flash his board as it was erased.

      On Sun, Jun 5, 2022 at 10:48 AM Frans-Pieter VOnck oberoid@users.sourceforge.net wrote:

      You probably have already found 0033mer's channel, on youtube about using
      flashforth. Here is a demonstration of the use of the mega 2560 pro board
      https://www.youtube.com/watch?v=WYLUM_mbCvI


      mega 2560 pro ( Robodyn) supported?
      https://sourceforge.net/p/flashforth/discussion/726813/thread/40d6b08197/?limit=25#f4c2


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/flashforth/discussion/726813/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.