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

CMPE 250 Linux Setup #26

Open
catarial opened this issue Sep 30, 2023 · 3 comments
Open

CMPE 250 Linux Setup #26

catarial opened this issue Sep 30, 2023 · 3 comments

Comments

@catarial
Copy link

catarial commented Sep 30, 2023

Lab assignments are done exclusively in the Keil MDK-ARM IDE which is only able to run on Windows. It can be run under a VM or through wine, but you won't be able to interface with any hardware this way.
I'm thinking of including instructions for using gcc to compile lab assignments, though I need to test if it behaves the same as the compiler used in Keil.
During lab hours you should use Keil though so you can get help from your TAs and also submit the results shown with the Keil debugger.

@catarial
Copy link
Author

catarial commented Oct 6, 2023

I tested plugging the NXP KL05Z on my laptop, and it seems like everything works out of the box regarding the usb drivers.

If your on an integrated desktop like KDE or GNOME it should ask to mount the flash file system. You can load binaries onto this which will be flashed onto the board to be run. I was able to flash a simple program that blinks the LED every 10 seconds.

@catarial
Copy link
Author

catarial commented Oct 6, 2023

Regarding compiling programs, a program compiled by gcc should do the same things as a program compiled by Keil. The only difference should be the size and efficiency of the binary produced.
Programs can be compiled using the GNU Arm Embedded Toolchain https://launchpad.net/gcc-arm-embedded
The package in Void Linux is called cross-arm-none-eabi-gcc

I still need to figure out if it is possible for gcc to generate a map and listing file.

@catarial
Copy link
Author

catarial commented Oct 9, 2023

This has proved to be harder than I thought it would be

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

No branches or pull requests

1 participant