vxWorks FTP boot error 0x8800dd - networking

While trying to update the firmware on a device, I bricked it. Now I am trying to boot it via FTP from the vxWorks boot rom.
It successfully connects and downloads the firmware image file from the FTP server but then fails with the following error:
Loading... 3
Error loading file: errno = 0x8800dd.
vxWorks is not my area so, any help is greatfully appreciated.

Resolved: It turned out that the firmware image which I was trying to load was the problem. I don't know if it was damaged or just the wrong one.
Using another firmware image file, the system downloaded the file and booted properly.

Related

Arduino IDE not compiling Digispark

I am attempting to upload a script onto my Digispark ATTINY85. I have installed all the correct packages on Arduino IDE. However when I try upload the script, I get this error:
Compilation error: fork/exec /Users/me/Library/Arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-g++: bad CPU type in executable
I am running on macOS Monterey 12.2.1 with Apple M1.
I have tried following this stack question, however then I am left with the following error:
bin/avr-g++: No such file or directory
I encountered the same problem and was able to fix it like this:
Delete / uninstall all previous Digispark boards
In the Arduino IDE under Preferences > Additional boards manager URLs replace the original digistump URL with https://raw.githubusercontent.com/ArminJo/DigistumpArduino/master/package_digistump_index.json
Reinstall the Digistump AVR Boards via Tools > Boards Manager. At this point I was able to compile the sketch, but not to upload it.
I had to downgrade to 1.7.2. Download the files from here.
Open ~/Library/Arduino15/packages/digistump/hardware/avr delete the content and insert the unpacked files from digistump-avr-1.7.1.zip
Go to ~/Library/Arduino15/packages/digistump/tools/micronucleus and create a folder with the name 2.5 if it does not exist yet. Delete everything else.
Go to the files that you downloaded and unpack /tools/micronucleus-cli-2.5-x86_64-apple-darwin.tar.gz it should create a new folder micronucleus

Error when uploading code to an wifi lora board

When I try to upload code to my board, I get this error:
exec: "python": executable file not found in $PATH
Error compiling for board WiFi LoRa 32.
How do I fix this? (I'm on mac 12.4.)
This Error means That python is Ethier, not installed, or is not in The PATH variable, to fix this try installing python if you are using a Linux machine then follow the instructions on the python website.

How to cross compile Arduino code for esp8266?

I have a Raspberry Pi at a remote location. I have attempted to run the Arduino IDE on that system but it doesn't have enough memory. I would like to compile some code on my Ubuntu desktop, copy the executable file to the Pi and use some utility to load it to an ESP8266 running the OTA software. What I need is to know where the executable is after an IDE compile step and what utility might be used to transfer the file from the Pi to the ESP8266 over the lan.
Any ideas?
Thanks,
Jim.
in arduino ide,
go to, File-> Preferences. Tick mark the boxes for compilation “Show verbose output during: ☑ compilation"
Now You will get the location of all the files generated in arduino console.
See answer by Kinaly Jain. If you upload your code to a local esp, verbose mode will also show you the commands it used to do the upload. You can gather these commands into a script or a makefile to run on the remote Pi.
Thanks to both of the responders. I wanted to try to describe a possible scenario to satisfy my needs. I found out from another post that the "Sketch/Export compiled binary" menu selection will produce a bin file that can be uploaded using a script similar to the one in this page https://github.com/esp8266/Arduino/issues/3553
The script finds the available OTA ports in the network and then uses espota.py to upload the .bin file to the port that you select. I suggest slight update to that script. On my system, espota is in ~/.arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/espota.py and it is now a python3 script. It is executable so you don't need to explicity execute python.
/home/$USER/.arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/espota.py -i $ip -p 8266 --auth="$password" -f "$path" 2> /dev/null && echo -e "Success:\t$ip" || echo -e "Fail: \t$ip" &
I've not tested it yet but I think it'll work with maybe some small tweaks. The avahi-browse utility is in the avahi-utils package on the Raspberry Pi OS. It was not installed by default on RPi OS but it appears to have been on Linux Mint.
To summarize I will run the Arduino IDE on my desktop using the "Export ..." menu, then I'll find the .bin file in the sketch directory and copy it to the Pi. Then I'll use the script mentioned before to hopefully write the bin file to the esp8266 via OTA. I hope this will help someone else with a similar problem.
Thanks again,
Jim.

How to run GUI via remort server

I'm using Qtcreator to make GUI.
Ideally, I build the project in my local pc (CentOS virtual terminal),
and move it to remort server(CentOS).
Finally, I want to run it in windows system via X server(VcXsrv i use).
As operation verification, I create a new file and build as it is.
At first, it generates many errors in remort server, such as "./test: /lib64/libc.so.6: version GLIBC_2.14 not found (required by /users/my/Qt/5.9.1/gcc_64/lib/libQt5Gui.so.5)".
I don't have root permission and can't update /lib64/, so download latest lib64 to my directory, and add to LD_LIBRARY_PATH.
Previous error is solved but the error message "segmentation fault (core dumped)" comes to appear.
Why this problem occur even though it is a raw project?
Can anyone help me to solve the problem?
so download latest lib64 to my directory, and add to LD_LIBRARY_PATH. Previous error is solved but the error message "segmentation fault (core dumped)" comes to appear.
That will never work. This answer explains what you should do instead.

How to burn .hex intel format file on cc2530 EB

Hello there I am a newbie working on the SMARTRF-05EB - Evaluation Board, I have installed SDCC and Contiki-2.6 in the Linux Virtual Machine. I am able to build all the examples present in this directory contiki-2.6/contiki/examples/cc2530dk , but I am clueless as to how to flash the final .hex image file on EB.
Is there a way to burn it from Linux directly using some command or do I have to switch back to Windows and use TI's Flash Programmer to burn the application image. When I try to flash the application using the Flash Programmer I get this message highlighted in RED : "Flash Image overlaps with the bootloader"
Can someone please let me know about how to correctly place the application code on a particular address so that I can save the bootloader from being corrupted by my application .hex file.
I would like to flash say for example the simple "hello world" .hex file.
Thanks
Hello there I had to figure it out by going through the documentation..so the commmand that I used in getting a successful output on the hardware was this
1) root#ubuntu:/home/contiki/contiki-2.6/examples/cc2530dk# make TARGET=cc2530dk clean
2) root#ubuntu:/home/contiki/contiki-2.6/examples/cc2530dk# make TARGET=cc2530dk
also in the previous directory, cd to hello-world and execute the 2 commands as below:
1) root#ubuntu:/home/contiki/contiki-2.6/examples/hello-world# make TARGET=cc2530dk clean
2) root#ubuntu:/home/contiki/contiki-2.6/examples/hello-world# make TARGET=cc2530dk
These 2 commands help in building the .hex for the SMART05-EB and then use the TI's SMARTRF STUDIO software or TI's Flash Programmer for burning the hex image on the SoC. Open up TeraTerm or anyother Serial Communication software and then choose the port with settings 115200 8-N-1 and you should be able to get the output on screen. I have issues in building the other examples in other directory - for eg ping-ipv6, so would be posting a new question regarding such examples.
Thanks
After compiling the code for the example you are working with it 'll create a platform specific file Ex. for sky (hello-world.sky) in you case it 'll be hello-world.cc2538dk. Just use the following command to convert it to ihex file
msp430-objcopy udp-multicast.exp2420 -O ihex udp-multicast.ihex
You can now rename the ihex file to hex file and upload the hex file to your mote using TI flash program (http://processors.wiki.ti.com/index.php/MSP430_Flasher_-_Command_Line_Programmer). From windows use the following command to upload the file.
MSP430Flasher.exe -n "MSP430F5438A" -m SBW4 -w your_hex_file.hex -i COMxx [VCC]

Resources