Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added arduino support #17

Open
wants to merge 15 commits into
base: develop
Choose a base branch
from
Open

Conversation

jacobjuneau6
Copy link

Added Arduino support to the v2 sdk

@tcpipchip
Copy link

tcpipchip commented Nov 6, 2024

hi @jacobjuneau6
I compiled your SDK (with git checkout to update) , but is not creating the COMM port to Arduino, only USBNCM
image
image

@tcpipchip
Copy link

tcpipchip commented Nov 6, 2024

After solve that COMM "issue", we have this "issue" too

hi @jacobjuneau6
We see that Serial3 and Serial2 are the same serial...can you modify the img to us ?
#define PIN_UART2_TX (6)
#define PIN_UART2_RX (7)
#define PIN_UART3_TX (6)
#define PIN_UART3_RX (7)

If i modify to
#define PIN_UART2_TX (6)
#define PIN_UART2_RX (7)
#define PIN_UART3_TX (4)
#define PIN_UART3_RX (5)

No difference to UART3...i tested with this code...

void setup() {
// put your setup code here, to run once:
Serial3.begin(57600);
}

void loop() {
// put your main code here, to run repeatedly:
Serial3.println("Data from UART3");
delay(5000);
}

But no output on pin 4 of the DUO 256

Can you fix the problem ?

@jacobjuneau6
Copy link
Author

I have fixed the problem with it not running the COM script. Pull the latest changes and check. I will look into the pin numbering issue later as I do not have my board with me.

@jacobjuneau6
Copy link
Author

Can you verify where the burnd file is on the filesystem?

@tcpipchip
Copy link

tcpipchip commented Nov 7, 2024

I have fixed the problem with it not running the COM script. Pull the latest changes and check. I will look into the pin numbering issue later as I do not have my board with me.

Hi @jacobjuneau6
i will do that tomorrow! Now i am in the classroom!
thank you :)

@tcpipchip
Copy link

Can you verify where the burnd file is on the filesystem?

what do you mean ?

@tcpipchip
Copy link

tcpipchip commented Nov 7, 2024

Btw, look our project to DUO 256 programming :)
Only drag components to programming :)
image

Thank you again to see the Arduino UART2/UART3

@tcpipchip
Copy link

tcpipchip commented Nov 7, 2024

Hi @jacobjuneau6
I am back :)
I burnt the Branch!

Good news:
Now i can see the COMx
5

Bad news:
I can't upload more the Arduino Code, no communication
7

After your fix that, i have other issue, that happens if you use your Arduino SDK IMG with Duo USB&Ethernet IOB
https://milkv.io/docs/duo/io-board/usb-ethernet-iob
4

Thank you!

Btw, i have time to make the tests :)

@jacobjuneau6
Copy link
Author

Can you verify where the burnd file is on the filesystem?

what do you mean ?
Can you check where the file burnd is when the system is on.

@jacobjuneau6
Copy link
Author

Try sshing into the board and running the burnd program manually, then try arduino.

@tcpipchip
Copy link

image
Success :)
image

@tcpipchip
Copy link

to the Duo non 256 version, the 4 and 5 are correct...but not tested here (variant)

@tcpipchip
Copy link

Solved the UART issue
milkv-duo/duo-arduino#20 (comment)

@shiptux
Copy link

shiptux commented Nov 14, 2024

@carbonfix Some changes may not be suitable for normal images, should we move this to a new branch(like v1 SDK, Arduino branch)

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think using burnd source code is better than a binary file.

@tcpipchip
Copy link

where is exactly the Burnd source code ?

@shiptux
Copy link

shiptux commented Nov 14, 2024

where is exactly the Burnd source code ?

I am not sure how jacobjuneau6 compiles it.

@jacobjuneau6
Copy link
Author

The burnd file is precompiled I pulled it from the v1 SDK.

@jacobjuneau6
Copy link
Author

It is pre-compiled in the v1 sdk.

@tcpipchip
Copy link

Then there is no open-source code to it ?

@jacobjuneau6
Copy link
Author

No. In the v1 sdk it is a binary.

@tcpipchip
Copy link

tcpipchip commented Nov 14, 2024

after 40 days tryng, got success
image
image
image
image

@tcpipchip
Copy link

Hi,
New updated VISUINO with UART FIX to MILK-V Duo256
https://www.visuino.com/installs/Visuino_Pro_8_0_0_129_Beta2.zip

@tcpipchip
Copy link

Hi, can you add this to the MILK-V doc ?
https://github.com/tcpipchip/milkv.io/blob/main/docs/duo/getting-started/VISUINO.md
And the link to ?

@carbonfix
Copy link
Contributor

@jacobjuneau6 @tcpipchip Thank you very much for your work! Due to some other issues we are currently dealing with in the SDK, this submission has not been verified and used in Visuino in time. We will address these issues as soon as possible. Thanks again for your work, it is excellent!

@tcpipchip
Copy link

tcpipchip commented Dec 9, 2024

@carbonfix @jacobjuneau6
We have to thanks you to publish the issue. Visuino will help a lot the MILK-V DUO and MILK-V DUO 256, and when ported the Arduino SDK to MILK-V Duo S. The users can do a lot of complex stuff with VISUINO easy easy :) Access to thousand of libraries. When have time, fell free to test.
@jacobjuneau6 see when we can have the Arduino SDK to DuoS running :)
Thanks too the my friend Boian Mitov too, i presented him about Milk-v and he ported to VISUINO :)

@ClayStan404
Copy link

Failed to build by the latest commit(4f4e7e8) with this PR.

@jacobjuneau6
Copy link
Author

@ClayStan404 What is the build error?

@jacobjuneau6
Copy link
Author

On an Ubuntu 24.10 system following the build instructions in the docs, all builds complete with an ubuntu 24.04 docker container with the following packages installed

pkg-config build-essential ninja-build automake autoconf libtool wget curl git gcc libssl-dev bc squashfs-tools android-sdk-libsparse-utils jq scons parallel tree python3-dev python3-pip device-tree-compiler ssh cpio fakeroot libncurses5 flex bison libncurses5-dev genext2fs rsync unzip dosfstools mtools tcl openssh-client cmake expect python-is-python3 xxd libpcre3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants