Hello when i try to compile any program i get: /usr/bin/udooneo-m4uploader: line 78: 14684 Bus error $up "$FW_CLEAN" 2>&1 warning: uploading clean firmware failed How to solve this problem?
I'm getting these from time to time Code: /usr/bin/udooneo-m4uploader Blink/Blink.cpp.bin /usr/bin/udooneo-m4uploader: line 78: 1923 Bus error $up "$INPUT" 2>&1 Only solution for now is to power toggle the board
Now I have: Code: /usr/bin/udooneo-m4uploader: line 78: 3134 Bus error $up "$INPUT" 2>&1 flash: uploading input firmware failed
In this case the first suggestion is to reboot the board. After rebooting does it still give you problems?
Yes after reboot is ok, but when i use SerialPort in arduino sketch it shows again. I have another problem which is connected with previous problem. I have example program: Spoiler Code: int ledPin = 13; void setup() { //Create Serial Object Serial.begin(9600); pinMode(ledPin, OUTPUT); } void loop() { //Have the arduino wait to receive input while (Serial.available() == 0); //Read the Input int val = Serial.read() - '0'; if (val == 1) { Serial.println("Led is On"); digitalWrite(ledPin, HIGH); } else if (val == 0) { Serial.println("Led is Off"); digitalWrite(ledPin, LOW); } else { Serial.println("Invalid!"); } Serial.flush(); } When i write something in Serial Monitor nothing happen. Then when i upload next sketch, SerialMonitor once reads the value which i wrote. I dont know what i am doing wrong.
@klakier2121 Do you mind telling us what was wrong? I have the same problem and I can't see what is wrong in my code.
I compiled this example program : Spoiler Code: // the setup function runs once when you press reset or power the board int led = 13; int l; void setup() { // initialize digital pin 13 as an output. pinMode(led, OUTPUT); Serial.begin(115200); } // the loop function runs over and over again forever void loop() { if(Serial.available() > 0) { l = Serial.read() - '0'; if(l == 1) digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level) if(l == 0) digitalWrite(led, LOW); // turn the LED off by making the voltage LOW } } and then I run command Code: minicom -D /dev/ttyMCC when you will wrire 1 or 0, led will flash or not
Hi, I'm still having this problem, the reboot do not help. I'm trying to compile my code directly to the M4 core (using the NXP's FreeRTOS BSP). I have a simple led blinking example which uses the GPIO_105 (GPIO4_09) and I don't use any serial port. Does anyone know where should I look for the problem? Code: udooer@udooneo:~/vd1209/m4$ udooneo-m4uploader -v blinking_imx_demo_epit_imx6sx_ai_m4.bin FILENAME = /boot/m4clean.fw; loadaddr = 0x847c0000 start - end (0x84780000 - 0x84800000) FILENAME = blinking_imx_demo_epit_imx6sx_ai_m4.bin; loadaddr = 0x1fff0000 start - end (0x1ff80000 - 0x20000000) /usr/bin/udooneo-m4uploader: line 86: 1538 Bus error $up "$INPUT" 2>&1 flash: uploading input firmware failed