-
Notifications
You must be signed in to change notification settings - Fork 23
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
where is the upload.ino #27
Comments
Compiler/IDE used for building is shown as the last item in the driver overview lists. Some can also be built using PlatformIO. |
ok, i want to use it on a SKR V1.4 that is similar to the TURBO is a 1768 but... in this page you talk about compiling with Arduino IDE or ECLIPSE, no word about using VScode with platformio. I'm quite lost and i don't understand. |
Then you can find a pre-built binary here.
I do not use platformio myself, other users does and has added platformio.ini via pull requests for some of the drivers. The build environments I support are those listed in the driver overview. |
Sorry to resurrect this thread, but there does not seem to be any pre-built binaries for the SKR 1.4 in the listed location anymore. Can you advise how to build the firmware? I can see no valid arduino library being present despite the compiling guide saying otherwise. |
@SwarleyAUS The driver overview specifies MCUExpresso which is Eclipse based. So there is no .ino for this driver. |
ah ok thank you, can you recommend any guides... not familiar with that IDE and how to build a hex Edit: actually nevermind, ive been able to build the bin (I think). now to figure out why its not working... it loads the binary but no longer presents a serial port via USB cable! Where do UART pins get assigned? What does #define SERIAL_MOD 3 do in my board map? How do I define TRINAMIC_UART_ENABLE to be true so I can use UART with the drivers? Is there anything else I might need to change for the SKR 1.4 Turbo map to work with my SKR 1.4? Is there a manual covering all of this? Thanks |
FYI I do not get notified about edits to comments so better to create a new one if there is any significant changes.
Switches to UART 3 for the serial port.
You cannot, only soft UART mode is supported, not hardware UART. Soft UART mode is enabled by enabling the 2209 driver in my_machine.h by uncommenting this line.
No, basically only the comments in my_machine.h. However, plugins may have more details available in the readme file. |
Great, thankyou, that helps. However UART is still not working. pins 28 and 29 [see edit] are the USB UART pins I believe, so this is what I have: in my_machine.h: which should set SERIAL_MOD to 3 per this code in the SKR 1.4 turbo map: and that should set the active serial port to pins 28 and 29 per this code in serial.c: #if SERIAL_MOD == 3 correct? so do you have any idea why a serial port is not being presented? the binary is being converted to a .cur file by the board, and the uart port works because ive tested BTT's 'test' firmware - with that a serial port presents in device manager straight away. Edit: actually the USB pins are p0.29 and p0.30. ive tried changing serial.c with these numbers (29 & 30) but that hasn't fixed my issue. |
There is no such thing as USB UART for this driver. When USB_SERIAL_CDC is enabled the MCU itself provides the USB stack, not an external chip connected via an UART channel. |
ok so USB is what I want, I want it to present as a COM port in windows. Right now it doesn't and idk why. What I'm noticing in the IDE is that it thinks that SERIAL_MOD == 3 isn't true, because that block of code is greyed out(?). Why would that be?
Is this graphical note an issue or a red herring? Any ideas how I can get USB working? |
|
sorry in my_machine.h or in the board map header file? I've tried both and neither seem to rectify the issue though. Seeing as we've been talking at cross purposes, where can I check the USB pins are mapped correctly? |
in my_machine.h
I would guess somewhere in the NXP framework, and I believe there is only one set of pins that can be used. So you will have to dig into that and also consult the datasheet to see if more than one set can be used. However, when I have tested this board USB comms has been working for me without worrying about the pin mappings - so I assume they are ok. |
So I shouldn't need to change SERIAL_MOD from 3 to anything else? I just pulled a fresh copy of the repo and only uncommented the board definition in my_machine.h. Unfortunately still doesn't work. It's either something about this LPC1768 not being the 1769 ("Turbo") or my dev environment. Could it be something about the build parameters shown here or other IDE settings? I was really hoping to put this unused board to use. |
No, it has nothing to do with serial over USB. The UART port may be used for other purposes such as a MPG. If you flash with the SD card you have to build a bootloader version. You did that? |
amazing! that's done it. I didn't realise putting the binary on the card was considered "Smoothieboard DFU-bootloading". thank you so much for your help. |
For the ones like me that wants to use Arduino ide, where is the upload.ino file? i all repos that i downloaded there is no "example" folder containing this file....
The text was updated successfully, but these errors were encountered: