-
Notifications
You must be signed in to change notification settings - Fork 1k
Add DIYMROE_STM32F407VGT support #376
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
Conversation
How do I download the modified core to test it? |
Best way would be to use git. |
Yes, I’d like to use git, but don’t know how.
Yes, I used the 1.4.0 version, downloaded using the Arduino Boards Manager.
I guess at some point the update will appear in the next Boards Manager version?
In the meantime I can test it by manually reintegrating it, but I am going to be away for the next week or so, so it will take while.
Thanks for your help with this.
Andy
… On 20 Nov 2018, at 17:33, Frederic Pillon ***@***.***> wrote:
Best way would be to use git.
Anyway, here the zip of modified file.
Note that boards.txt is the last version (on top of the master branch) and differs from yours (which I guess is the 1.4.0 version)
PR376-DIYMROE.zip <https://github.com/stm32duino/Arduino_Core_STM32/files/2600883/PR376-DIYMROE.zip>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#376 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AOIh5CiqDFYkrOn9DSdx0Ve1fqYhFAF7ks5uxDzQgaJpZM4YquAv>.
|
To use the git repo with the core: Then to pull the PR, add in your .gitconfig:
then you can do: |
Thanks!
A
… On 23 Nov 2018, at 08:44, Frederic Pillon ***@***.***> wrote:
To use the git repo with the core:
https://github.com/stm32duino/wiki/wiki/Using-git-repository <https://github.com/stm32duino/wiki/wiki/Using-git-repository>
Then to pull the PR, add in your .gitconfig:
[Alias]
pr = "!f() { git fetch -fu ${2-origin} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f"
then you can do:
git pr 376
This will pull the PR in your git repo in a branch PR/376.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#376 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AOIh5EMQlGNtMOeye4dnHzIKcASBr_hrks5ux6d2gaJpZM4YquAv>.
|
Hi @AndySymons |
Frederic,
I tested my own version as far as making a blink test. I do not know how to test your version as I am not familiar enough with Github to get hold of it.
Andy
… On 7 Dec 2018, at 09:05, Frederic Pillon ***@***.***> wrote:
Hi @AndySymons <https://github.com/AndySymons>
Did you made some tests?
Is it ok to merge?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#376 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AOIh5KlARqT8Yf9DVRZwtEv1JPABe8aUks5u2i9BgaJpZM4YquAv>.
|
I tested this today, I can get a simple blink sketch to work just fine. I also tested using something more complex, SPI1 & Usarts are functional. Main comment is the naming, the manufacturer is called DIYMORE & not DIYMROE (another manufacturer has identical board named CJMCU-407). Although ironically they also misprint the name on some of their boards. I merged this into the CDC PR but could not get a functional USB Serial - perhaps I missed some changes. (I used the USB config from the Black407VE PinNamesVar.h & Peripheralpins.c PS I did add a 1.5k pullup resistor between vcc & PA12 as per this page -> http://dubstylee.net/v/diy-more-stm32f407vgt6/ (translate to english with google). |
@BennehBoy About USB, the |
@AndySymons let me know what you think about the renaming? |
Yes I saw that and copied the appropriate sections from the black407VE variant (also checked against Disco 407VG) PS, I just tried the device with Roger's core and CDC works although exhibits the same bug with the device params from PR #388. I know this is OT for this PR, just for info. |
Thanks @BennehBoy |
Yes it's a bit strange, even in the link you posted the board has diymroe on the upper side, and diymore on the lower 🤣 |
Right, ;) did not see that before. anyway this is only a name but I would not use a brand name if this is not the right one. And for this it seems this is not the right one as not referenced on official DIYMORE site. |
👍 |
Ok then I will rebase it and update PinNamesVar.h and PeripheralPins.c to add USB info then merge it. |
Hmm, I did try this already and it did not work.... Hopefully your attempt will be more successful. |
Rebased and pinmap update with USB. |
I noticed that you replaced the '0' with 'GPIO_AF_NONE'
This fails to compile on my system:
Where is this defined? |
NM I just saw the commit on master. |
I've retested USB CDC FS multiple times now, reconstructing my core each time from a fresh master clone, + pr 388, + manual merge in of the DIYMROE last commit (your force push) + the Bdevice changes. With or without the TIM changes for 388 I do not get a working USB device (unrecognized) Using the exact same hardware I get a working USB Serial device using either STM32GENERIC, or Roger's core. I've tested this on both Windows 10 & Ubuntu 18.04.1 LTS However, pinpointing the issue is beyond my knowledge/skill level. |
I will update USB PR with all input next week and do several tests on my side. I've got an USB shield to test across all series. Hum, one things I did not check on this PR is the clock config to ensure USB get a 48MHz clock. |
Ben,
I am glad you got the SPI and UARTS working as I did not!
The board in question is a Chinese clone that uses the name DIYMROE. You are probably right that this suppose to be a rip-off of the company name DIYMORE. However that company is as far as we know not involved and does not currently make a board like this one. We do not even know if they ever did. We therefore named the board / variant to match the name printed on the board.
Kind regards,
Andy
… On 4 Jan 2019, at 14:08, Ben Anderson ***@***.***> wrote:
I tested this today, I can get a simple blink sketch to work just fine.
I also tested using something more complex, SPI1 & Usarts are functional.
Main comment is the naming, the manufacturer is called DIYMORE & not DIYMROE
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#376 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AOIh5E12AgrE21Owgvs3qVz-rZ-hIRwkks5u_1JmgaJpZM4YquAv>.
|
@AndySymons yeah with hindsight I think the naming makes sense - I searched diymore.cc and they don't offer this product. @fpistm, looking instm32f4xx_hal_conf.h I can see some differences compared to the black407VE: there is no typing of most of the defines.. eg BLACK407VET: and DIYMROE: The only other difference (other than where items appear in order), is TICK_INT_PRIORITY, For BLACK407VET it is: ((uint32_t)0U) and DIYMROE: 0x0FU Although this matches the DISCO407VG config. PS - although I'm probably looking in the wrong place 🤣 |
OK, I've resolved this.... In Variants.cpp
Needs to be
|
Right, this is what I though. In fact HSE oscillator is a 8MHz right ? while I thought it was a 25 MHz. |
Yes it's 8mhz. I added a PR for this to your DIYMROE branch. |
I saw it and merge it, so it is now part of this PR. You will be a new contributor ;) |
One other small change, this board has 1024KB flash, boards.txt configures only 512KB. |
Signed-off-by: AndySymons <andrew.w.symons@gmail.com>
Right PR updated with 1024Kb |
Add DIYMROE_STM32F407VGT support
PR linked to #374 thanks @AndySymons
Reviewed by @fpistm