![]() ![]() I do a lot of embedded programming though, so describing my workflow may be helpful.Īll of my coding is done in ST2 with a few key packages: You'd be better off starting with a traditional IDE and using that as a template (investigate how it compiles and uploads) and migrate it to SublimeText, or operate a hybrid environment where you do the editing in SublimeText but use the IDE to compile and upload the code.Īs others have said, Sublime is an editor (a very powerful one), not an IDE so using Sublime for debugging is cumbersome, though not impossible (see footnote at bottom). So unless you can find a resource online where someone has actually done just what you want to do, for the same target chip or chip family as you are using, then it's going to be a lot of work to get going. Do you use a hardware programmer? Does your target chip have a bootloader installed? For either of those, what tools are available that are scripting friendly that you can use to add functionality to SublibeText? When it comes to uploading the code, though, that all depends on how you do the uploading. In general the compiler will be GCC, which is freely available for all the main operating systems, so if you know the correct flags to use when compiling source for your specific target then scripting the compilation shouldn't be too much of a problem. How you would do that is somewhat dependant on your host OS and what scripting tools you have available for doing the tasks. Uploading the compiled firmware into the chip.Compiling the source into target binary files (usually ELF files).A traditional IDE provides far more than just editing facilities, so you would have to either implement, or find someone on the internet who has already implemented, the functions you require for working with ARM. The tricky part comes when you want to do more than just edit. I'm not aware offhand if there's a way to execute single ad-hoc C# files using dotnet outside of that context.Yes, you can use SublimeText to edit source code, and not just for ARM, but for anything and many people do. In that case you could move the command for the most common item (say the Run variant) to the top level instead, so that running the program is the default.Īs a last note, for the build sysytem to work the presumption is that you're working in a folder where you've use the appropriate dotnet command to create an empty project. Terminus only supports cmd and I prefer to use shell_cmd, so the top level build needs to have no implicit command.Īn alternative to this would be to either ditch the Terminus variant or convert all of the others to use cmd instead. In this case that's because of the last variant that uses the Terminus package to allow for running interactive programs. ![]() If you don't choose a variant when you build, the command will fail because the top level build doesn't contain any command to build anything. This sets up a build system with several variants, allowing you to choose to build clean or run the program. The build system that I personally use for this sort of thing is: ", ![]() NET 4 or what have you, assuming such a thing exists). To use those commands you would need to install something like Mono instead (or an official MacOS version of. ![]() NET uses things like msbuild to run builds and uses csc as the underlying compiler. NET (the nomenclature and weird namings of these things gives me a bit of a headache).Īs a gross oversimplification, dotnet core uses a command named dotnet to do compilations and runs of your project, while. If you're using dotnet core (as it appears from your question), you need to use dotnet to execute code and not csc that's the compiler for. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |