I can't program my uC. Avrdude throws error which I don't understand - atmega

I used to programing my uCu before but now I have very weird error. It seems to be problem with programmer but I'm not sure. Avrdude throws this error:
C:\Users\Adam>avrdude -p m328p -c avrispmkII
avrdude: ser_open(): can't open device "\.\com1": The system cannot find the file specified.
and atmel studio this
Failed to enter programming mode. ispEnterProgMode: Error status received: Got 0xc0, expected 0x00 (Command has failed to execute on the tool)
Unable to enter programming mode. Verify device selection, interface settings, target power, security bit, and connections to the target device
I have tried use different ports but it didn't help. Device Menager said I already have good driver. Please help me find the solution.
This is a picture of my circuit

Related

HCI_UART on NRF52840, attaching the device on a Yocto based Linux SBC errors out saying "Can't init device hci0: Cannot assign requested address (99)"

I am trying to Interface a BLE module based on Nordic's nrf52840 to a Yocto based SBC, to which all the BlueZ related packages have been added.
I have flashed Zephyr's sample hci_uart program onto the module. The module seems to run perfectly on my Linux PC (BlueZ version 5.48), whereas on the SBC(BlueZ version 5.54) it fails to get inited. Here's the error that comes when I use
root#rb-imx6:~# hciconfig hci0 up
root#rb-imx6:~# Can't init device hci0: Cannot assign requested address (99)
Can anyone please help me out on this?
Thanks in advance.
The error of assigning an address is caused by missing Linux kernel configuration options:
CONFIG_CRYPTO_USER
CONFIG_CRYPTO_USER_API
CONFIG_CRYPTO_USER_API_AEAD
CONFIG_CRYPTO_USER_API_HASH
CONFIG_CRYPTO_AES
CONFIG_CRYPTO_CCM
CONFIG_CRYPTO_AEAD
CONFIG_CRYPTO_CMAC
This is likely to happen with a self-built Buildroot or Yocto Embedded Linux system. If you run into this error, you should enable above options and recompile the kernel.
See the BlueZ requirements here: https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/README#n64
To see detailed debug output from BlueZ, run it with -d option:
bluetoothd -d

Teensy LC I2S example assembly error

I'm trying to use I2S (not I2C) with the Teensy LC and a SPH0645 digital microphone. The audio library that is included with the Teensyduino (v1.6.7 and ArduinoIDE 1.8.5) code is sufficient for my needs, but I get the following assembler error when I try to compile the Recorder example from the audio library:
/var/folders/4y/x458y3013g5d1xsgl7grxgwr0000gn/T//ccvznZoL.s: Assembler messages:
/var/folders/4y/x458y3013g5d1xsgl7grxgwr0000gn/T//ccvznZoL.s:231: Error: selected processor does not support `smull r0,ip,r3,r5' in Thumb mode
/var/folders/4y/x458y3013g5d1xsgl7grxgwr0000gn/T//ccvznZoL.s:232: Error: shifts in CMP/MOV instructions are only supported in unified syntax -- `mov ip,ip,asl r6'
/var/folders/4y/x458y3013g5d1xsgl7grxgwr0000gn/T//ccvznZoL.s:233: Error: unshifted register required -- `orr r0,ip,r0,lsr r7'
My problem apart from the error is that the message doesn't indicate which file is the culprit. So I was hoping someone maybe has some more experience with this kind of problem ;)

Arduino Clone CH340G 'Error Compiling for Board Arduino/Genuino Uno

I brought a cheap Arduino board from AilExpress and after searching around the forum rooms ,installed the drivers for CH340G board. For some reason I am still unable to compile and run the code on the board.
The IDE keeps stating 'Error compiling for board Arduino/Genuino Uno.
Any help would be most welcome.
I have checked my COM port its COM6 and does state (CH430G) next to it.
Kind regards.
Not sure how it happened but the answer was in the error message which was " Show verbose output during compilation" option enabled in File -> Preferences."
so I went into File --> Preferences and selected the following
"Show verbose output during [x] compilation [x] upload" both are tick
"Check for updates on startup" tick
Enable code folding tick
I then moved my sketch file from Onedrive to G:\Documents\Arduino\Wifi-Test
compile and upload , "bob's your uncle" it works
ensure you have selected in your board manager "Arduino / Genuino Uno"

Can't Flash Code to Particle Photon

I have a Particle Photon which I'm trying to setup. I've tried flashing code both from the web IDE, and locally and it always times out. The device is connecting as it can be seen in these pictures:
The web IDE does not give me much information. It only says "Request Timed Out". This is what I get when I try to flash an .ino code
MacBook-Pro:Desktop User$ particle flash ABCDEFGH123456789 sketch_jun09a/
Including:
sketch_jun09a/sketch_jun09a.ino
attempting to flash firmware to your device ABCDEFGH123456789
Flash device failed.
Request Timed Out
And when I try to flash a firmware.bin file this is what I get:
MacBook-Pro:Downloads Usesr$ particle flash --usb firmware.bin
Found DFU device 2b04:d006
spawning dfu-util -d 2b04:d006 -a 0 -i 0 -s 0x080A0000:leave -D firmware.bin
dfu-util 0.9
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
dfu-util: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
Opening DFU capable USB device...
ID 2b04:d006
Run-time device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 4096
DfuSe interface name: "Internal Flash "
Downloading to address = 0x080a0000, size = 5224
Download [=========================] 100% 5224 bytes
Download done.
File downloaded successfully
dfu-util: Error during download get_status
Error writing firmware...dfu-util: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
dfu-util: Error during download get_status
I've seen online that the firmware.bin file seems to be compiled for the Particle Core, and not the Photon, so the device does not allow the code to be flashed. How should I compile the code for it to work? Is there any other solution to this problem? Thank you in advance.
You won't be able to flash a Core firmware to a Photon (they have different architecture and firmware layout). To compile the code for photon you can also use the CLI:
$ particle compile photon sketch_jun09a/
the resulting binary can be flashed using the CLI the same way you did.
To figure out the failed over the air flash I would recommend contacting the support.

Quartus II Error (18994): configuration scheme "passive serial" is not valid for the device

I'm trying to synthesize a System Verilog RTL design to a Stratix 10 device using quartus II v.17 but keep getting the following error.
Info (12627): Pin ~ALTERA_MSEL0~ is reserved at location AY8
Info (12627): Pin ~ALTERA_MSEL1~ is reserved at location AY13
Info (12627): Pin ~ALTERA_MSEL2~ is reserved at location AR14
Error (18994): configuration scheme "passive serial" is not valid for the device
All my top-level ports have been assigned VIRTUAL_PIN ON as this is just a small part of a larger design and I just want to see if it synthesizes. The error occurs for all Stratix 10 devices. The MSEL# pin locations vary per device.
What is causing the error and how do I fix it? How do I tell Quartus II not to use "Passive Serial"?
Thank you.
The following solution was received on the Altera Forums.
go to Asigments-> Device -> Device and Pin options -> Configuration to change configuration mode. Also you can try to play with settings in Asigments-> Device -> Device and Pin options -> Dual-Purpose Pins section
The tcl commands are
set_global_assignment -name STRATIXV_CONFIGURATION_SCHEME "ACTIVE SERIAL X1"
It fixed the problem.

Resources