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

Sample project #1

Open
Domonap opened this issue Oct 13, 2021 · 8 comments
Open

Sample project #1

Domonap opened this issue Oct 13, 2021 · 8 comments

Comments

@Domonap
Copy link

Domonap commented Oct 13, 2021

This project looks very interested would like to try it. I have GD32F103C8 MCU. I have tested three different platforms, SPL, Stm32Arduino, and GD32Platformio.
Is there a sample project for some IDE? Maybe PlatformIO or Clion. There are way too many Cmake files that need to be filed in. I have no knowledge of CMake.

@mean00
Copy link
Owner

mean00 commented Oct 14, 2021

Hi
I just added a very simple project in demoProjects/flatBlink
The files layout should be
CmakeList
hello.cpp
...
lnArduino <= the repository, or a symlink to it

Edit platformConfig to tell it what toolchain you are using.
By default, the selected MCU is a GD32F103
The project makes the led blink

There is no default IDE project as it is designed to use whatever env you prefer (eclipse, VS, netbeans, vi,...) as long as cmake is supported.

@Domonap
Copy link
Author

Domonap commented Oct 14, 2021

I Managed to make it work. Thank you wary much.
May I ask what IDE do you use, or do you build hardcore way in the terminal.

@mean00
Copy link
Owner

mean00 commented Oct 14, 2021

I use terminal + netbeans, but it's a matter of personal taste

@Domonap
Copy link
Author

Domonap commented Oct 14, 2021

Yes, it is. I'm a .Net programmer and have not dealt with the CMake projects that much.
Now I'm working on custom firmware for one of the devices that we use in our project. The RTU5024 has a GD32F103 Arm processor. On the way, I have learned a bit about the CMake and stuff. It is two different worlds.

@Domonap
Copy link
Author

Domonap commented Oct 14, 2021

How do I use Serial interrupts?

@Domonap
Copy link
Author

Domonap commented Oct 14, 2021

I mean there are no Dma/Interrupts demo examples. Sadly that is the hardest part.

@mean00
Copy link
Owner

mean00 commented Oct 14, 2021

Logger is using uart + dma
https://github.com/mean00/lnArduino/blob/master/src/lnDebug.cpp

Interrupts & dma are used all over the place

@Domonap
Copy link
Author

Domonap commented Oct 14, 2021

Yes, that I saved. But I didn't find an Rx-Receiver in lnSerial. I had in another framework hard to make it work stable, with buffers and the timing. Don't have enough knowledge.
For now, I use Arduino stream lib that is working great.
I would like to use the Serial DMA interrupt to just receive data from another device when there is data on serial RX, but just can make it work in SPL. Always something that doesn't work right.
Your library is well written. Maybe some more advanced Serial Dma examples would be great.
There are none on google that is wordy.

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

2 participants