theFork / uMIDI

MIDI application development toolkit
5 stars 1 forks source link

Firmware update via USB #53

Closed theFork closed 8 years ago

theFork commented 8 years ago

Observations

Firmwareupdate via USB does not always work. See the terminal output below:

[simon@obelix:switcher]$ sudo make fwupdate 

*** Uploading new firmware...
echo -n "fwupdate `du -b main.bin | sed 's/\s.*//'`\r" > /dev/umidi
sleep 2
cat main.bin > /dev/umidi & cat /dev/umidi
Unrecognized escape sequence!

*z

  E
   Unrecognized escape sequence!

Unknown command: [      
                                                                                                      ��
                                                                ��]
^A

^CMakefile:252: recipe for target 'fwupdate' failed
make: *** [fwupdate] Interrupt
Unknown command: [~]
Type `help` for help.

fwupdate 19026
Erasing temporary application flash section...
Error erasing temporary application section: 1 

Further information

Properties of the VCP device:

[simon@obelix:switcher]$ stty -F /dev/umidi 
speed 115200 baud; line = 0;
min = 1; time = 5;
ignbrk -brkint -icrnl -imaxbel
-opost -onlcr
-isig -icanon -iexten -echo -echoe -echok -echoctl -echoke

OS/Kernel:

[simon@obelix:switcher]$ uname -a
Linux obelix 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u3 (2016-01-17) x86_64 GNU/Linux
theFork commented 8 years ago

BTW: I'm not using my potentially flash-corrupting USB hub ;)

ghost commented 8 years ago

Error erasing temporary application section: 1

According to the Xboot API documentation the error code 1 means that there is something wrong with the Xboot API functions:

define XB_ERR_NO_API 1

[...] XB_ERR_NO_API is returned when the loader cannot find the API calls in xboot (either the APIs are disabled, xboot is not installed, or the loader is not looking at the right address)

theFork commented 8 years ago

Ahhh, ok apparently there was no bootloader installed on the board. Re-Installing it fixed this issue. Closed.