-
Notifications
You must be signed in to change notification settings - Fork 75
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
STM32 Port #68
Comments
Tried this one as well: https://github.com/stm32duino/Arduino_Core_STM32 |
I was able to port RunCPM to the STM32F4DISCOVERY board. 1 - Install Arduino STM32 core from https://github.com/stm32duino/Arduino_Core_STM32 via the package manager. RunCPM should show the greeting. At this point I am not 100% sure of the correct operation of the file system, so be aware that file corruption can occur. |
Further investigation leads me to think there's a memory leak on the SD card handling. So far I was not able to replicate. |
STM32 board back to the drawer for now. Maybe I will revisit in the future if there's free time. |
Port complete. |
Any tips for compiling for the STM32F411 Nucleo? I have followed the instructions for setting up the discovery board (above)
Is this setup missing a pin definition file? Thanks |
Hi Nigel,
I am not sure how the Nucleo-64 is laid out.
Port PD13 is what I had defined for the board I have, which might be
different on yours.
Take a look at the schematic of your board, check for which one is the LED
port.
A quick look at one schematic I have found on ST's website seems to
indicate that it can be either PA5 or PB13. (configured by jumpers maybe)
Indeed the processor doesn't seem to have a port D.
Also, I am not sure which pin will be used for the SD card's CS signal. You
will need to test a demo design first, to make sure you have access to the
data in the SD card, then try the same pin and initialization code for
RunCPM.
As I do not have one of these boards, I can't say for sure.
It was also not clear to me how much RAM memory it has. You need more than
64K or ram, as RunCPM allocates 64K already for the CP/M operating system,
and more for extra variables and stuff.
The Arduino DUE has 96K on it, so if your board has at least that you
should be fine.
Let me know how it goes for you.
Cheers,
Marcelo.
…On Sun, Jun 23, 2019 at 7:33 AM Nigel Kendrick ***@***.***> wrote:
Any tips for compiling for the STM32F411 Nucleo?
I have followed the instructions for setting up the discovery board (above)
and found/confirmed every settings change, but when I compile with 'Board
Nucleo-64' and 'part number Nucleo F411RE', the compilation fails at "PD13
was not declared in this scope"..
#if defined _STM32_DEF_ // STM32 boards
SdFatSoftSpiEX<PC8, PD2, PC12> SD; // MISO, MOSI, SCK
#define SDINIT PC11 // CS
#define LED PD13 <<<<<<
Is this setup missing a pin definition file?
Thanks
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#68?email_source=notifications&email_token=AD74NC3EAC5EP47MWLP6RGTP35NRTA5CNFSM4GDIZYJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYK4KNY#issuecomment-504743223>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AD74NC27N3MYQNYGHCSFWNDP35NRTANCNFSM4GDIZYJQ>
.
|
Thanks for the reply.
Got it...if the board has that port/pin, the support libs would have
defined it.
I think I've found the pin for the LED - I'll start with a blinky program!
Board has 128K RAM, so let's see if I can improve my programming skills
and get this going...
|
Working on the STM32F411 Nucleo! STM code section below. Once running, the tty comes through the embedded ST-Link interface apparently fine and I can see the console in the Arduino IDE or using minicom.
|
Hi All,
I have pulled my STM32 board from the drawer and gave it a try on the Arduino.
It seems to work fine with code from this project: https://www.stm32duino.com/
Source code here: https://github.com/rogerclarkmelbourne/Arduino_STM32
SD Library here: https://github.com/stm32duino/STM32SD (I have not tested this yet)
There's a good chance this will work for running RunCPM.
I have tried compiling RunCPM for it but got some errors, also, the code needs defines to use different settings when building for this board. Not sure when I will be able to port it, but if anyone wants to give it a try, check pages the above.
I am not using the guy's STM32duino boot loader, as I feel it is not needed, you can program the STM board from Arduino using the on-board st-link. Needs to install the ST-Link driver btw.
I was able to load a led-blink program onto it, which is already some progress.
Cheers,
Mockba.
The text was updated successfully, but these errors were encountered: