Replies: 6 comments 9 replies
-
to be honest, after selection Curiosity Nano nEDBG programmer and uploading with it, it works - is this expected?? EDIT - ya, its noted in readme, sorry |
Beta Was this translation helpful? Give feedback.
-
another test - (now in vscode+arduino/ms) - I tried to select nEDBG programmer for CNANO AVR128DB48 but there are offered only SerialUPDI options, although in Arduino IDE its possible - for example with CNANO TINY1627 when I DONT select it as "Official Microchip Board" in vscode/arduino but manually, as above then there are ALL programmers listed, including nEDGB ... not sure where is the problem EDIT: placing "programmer": "DxCore:nedbg" into .vscode/arduino.json helps VSCODE+ARDUINOWELL, I understand that you dont know vscode yet, but I highly encourage you at least to TRY IT, quickly. This way with plain "ms arduino" extension its far easier than platformio (not much complex too) and can serve as introduction to vscode - I also dont/didnt like vscode much, as its nodejs based (new arudino ide20 also, though) and feels too "raw" but here this simple combo "clean vscode+arduino extension" may serve as start, even to platformio - and for me it was that... lets try to watch those short videos, this is deadly easy thing for few minutes of fresh relax only :-) (honestly I have immediately changed File/Preferences/ColorTheme to "Light+ (default)" as I dont like that nighly modes with reversed background context... ) Probably MOST important thing is that folder initialized with .vscode/arduino.json persist settings for ino, so makes "project" - its immediately possible to upload with defined params, good for testing many different boards with example code too. But FIRST thing is to to F1/Ctrl+Shift+P "settings" (Preferences: Open Settings (UI)) then inside settings search for "arduino", then scroll down to arduino path and enter here path to installation "c:\Program Files (x86)\Arduino" (only FIRST czech video mentions it !!!) Some videos are using linux, some are mostly about buttons, etc... but combination and trying helps to manage that. And I can say, I feel quite better in that vscode env now ......... start here with this: (its in czech, but WATCH whats happening, the install extension and SETTING PATH, !important) this one is also quite short and simple start too (here during vscode setup, !usefull to add vscode to shell context menu !!!) and just another 3 minutes repeat this video is with shitty music, but also good tips ("output": "build" in my case to persist output in folder) ... I originally thought to add this as separate discussion, feel free to do so ... cheers, |
Beta Was this translation helpful? Give feedback.
-
And one thing related to this ... I tried following sketch on 3 boards (Leonardo, XMC2Go (Infineon XMC1100 Cortex-M0+) and microchip Curiosity Nano Tiny1627 ... after some weirdness about LONG delay required after Serial.begin(), I managed to work this in both Arduino IDE and vscode+arduino (dont know if there wasnt some busy com port issues between both ides etc) but CNANO 1627 (megaTinyCore) reports that "Serial is undefined" to intellisense (and its question if its on your or theirs side....) Code builds and uploads and works, but there is reported problem - weird that on different board packages it doesnt happen... |
Beta Was this translation helpful? Give feedback.
-
VScode seems to have a lot of issues with detecting things that are and aren;'t defined and showing warnings like that for stuff that compiles fine. This isn''t the first. I'm sure the problem is that Serial is #defined as Serial0 (that could be overridden by variant or boards.txt entry) and it;'s not properly handling the preprocessor directives in it's warnings. |
Beta Was this translation helpful? Give feedback.
-
I cannot fathom why people seem so attached to the serial monitors that come bundled with IDEs. They all suck. Use a real full featured serial terminal, and you'll never want to use an IDE's serial monitor again. I use hTerm..... |
Beta Was this translation helpful? Give feedback.
-
Hm, how does one get Termite to display text in hex and ascii (both at the same time)? That for me is the killer feature of hterm. |
Beta Was this translation helpful? Give feedback.
-
I tried this board (no bootloader) but flashing crashed at some unparsed things
C:\Users\petra\AppData\Local\Arduino15\packages\megaTinyCore\tools\python3\3.7.2-post1/python3 -u C:\Users\petra\AppData\Local\Arduino15\packages\DxCore\hardware\megaavr\1.4.5/tools/prog.py -t uart -u COM17 -b 230400 -d avr128db48{upload.workaround} --fuses 2:{bootloader.OSCCFG} 6:0b00001100 8:{bootloader.BOOTEND} -fC:\Users\petra\AppData\Local\Temp\arduino_build_310431/CNANO_AVR128DB48_Blink.ino.hex -a write
Error: cannot parse fuse, 'invalid literal for int() with base 0: '{bootloader.OSCCFG}''
Error: cannot parse fuse, 'invalid literal for int() with base 0: '{bootloader.OSCCFG}''
Beta Was this translation helpful? Give feedback.
All reactions