-
Notifications
You must be signed in to change notification settings - Fork 1k
Add BLACK 407ZET6 & ZGT6 Support #402
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
will try to test this stuff |
Handle Flash size Comment some ADC pins not listed as analog pins. Note, they could be added by adding them in digitalPin[] array and update NUM_ANALOG_INPUTS to 22 Fix some typo change Signed-off-by: Frederic.Pillon <[email protected]>
Fix to squash with previous commit (for BLACKF407 Zx support)
It would seem that at least 1 person is having no luck with this variant, I've asked for help with testing on the stm32duino.com forum. Fingers crossed until my boards ship - even if only to confirm that it is indeed non fucntional. |
@BennehBoy @fpistm just thinking about step back and compile with master/1.4.0 for test, 407VG should work with blink.ino for PF9/10 directly? |
Sure, why not. EDIT... hang on you mean test blink on a VG board, or compile as VG and load to ZE? The latter won't work I think. |
My bad, have flashed with dfu-util wrong file (hex) with bin everything works as expected.
In my opinion chips/boards names in menu need to be changed for black_f407xx a little (confusion), but this will check tomorrow. @fpistm how to use also another spi: SpiClass SPI2? |
Ah, excellent. You'll need to enable the pulldown resistor on K_UP to use it as a button:
I'll fix the LED refs later. |
Nice to see this is work. About KUP, it seems it is not Pull down per defaut. --> edit @BennehBoy was too fast for me :) |
@uzi18 please could you confirm which LED blinks when LED_BUILTIN is used, is it the one labelled D1 or D2 on the board? |
indeed WK_UP is connected to +3v3, so pulldown is needed LED_BUILTIN flashes with Led D2 on board. please rename BTN_K_UP -> BTN_WK_UP @BennehBoy something else to test? about menu above:
What do You think about @BennehBoy @fpistm ? |
Regarding the flash naming, the current solution is just a temp hackup until the ld preprocessor PR is merged - #404 After that it's much simpler. |
@BennehBoy something else need's to be tested? |
i2c if you are able @fpistm - any thoughts on a test suite? |
Hi guys, For the menu, when the ld preprocess will be available this will be the same question about it.
About test plan, this is the minimal set I perform:
And depending of the board, I test mems or peripheral available (HTS221, SDCard slot on SDIO, Ethernet,...) |
I think it might be useful to have some further details on some of those tests. For those that are not standard examples or tools for example:
Clearly this is non trivial if it's "in your head", but if you already have something to hand... |
This is only an example of which som I use as you request me. All listed above is on Arduino menu except:
The TFT library from Arduino even if retired using TFT shield from Arduino. Anyway not all have this shield. goal of this test is to ensure SPI works fine as it use 2 SPI component (TFT and SD).
I guess you talks about what do and expected result. As many sketches are Arduino standard this is often well documented. Anyway, using Analog example I connect the pin to ground then to Vcc and check those limits values are ok or using a potentiometer. |
OK, fair enough 👍 |
I could try to test timer (how?), i2c, and maybe analog. |
To test timer, I use Tone Melody sketch with a small beeper and also fading on a PWM pins. I will share in coming month test bench scenarii when my automatic tests bench will be deployed. |
@fpistm Are there any api examples for timers? |
Currently, timer usage is very limited to fit Arduino basic API. An HardwareTimer class is on the pipe to provide full Timer usage. |
@fpistm couple of questions... Has the PeripheralPins.c conflict arisen because 388 was merged? I have another variant I'd like to submit a PR for - but of course I was silly and made this PR against my master branch - what can I do, delete my fork, refork on base, create a branch, commit to it, and compare & pull? If so, will this commentary be lost? Is there a better option? |
nothing will be lost, you can always refer to this PR #402 just save link in bookmark |
@BennehBoy you need to pull from master, resolve conflicts and commit changes needed here. |
I see PeripherialPins.c did not change at all, just formatting of file. |
@BennehBoy try |
I think that only @fpistm can merge. I still need to figure out what to do with my fork, I really should have created a branch for this PR. |
@BennehBoy, hereafter a short notice of how I will handle your case: Then you could list the remote of your local git repo: Here result on my side, as you can see I have 3 remote. I guess you should have origin instead of ben here:
2 - Fetch it: Assuming you are checkout on you master branch of your repo (fork of stm32duino). 4 - Reset your local master branch on top of the remotes/stm32duino/master
Then you will have an issue on
Then you will have again an issue on next commit, so do the same after do the fix:
Well now your master is rebased on top of stm32duino/master. That all folks ;) Then I will merge this one so you will be no more annoyed with PR with master. |
@fpistm, thanks for the instructions - one day I may actually be able to drive this github thing 🤣 I'll make the changes tomorrow, it's late now and it's been a busy day. |
In my opinion it would be better to merge it by @fpistm |
This is only an example how to manage this. Creating a new PR is also possible then we will close this one. |
@fpistm, if you could merge this one now I think that would probably save us some time - I'm sure to mess up those instructions :) I'll then rebase my fork and add the FK407M1 variant as a new branch. Any required fixes on this variant can be dealt with in a new PR. |
thx @fpistm |
Fix #393 |
Add BLACK 407ZET6 & ZGT6 Support
Created without access to these 2 boards, will need testing.
Areas to check - Arduino pin assignments, ADC mappings
Test compiled successfully, and regression compilation/upload against BLACK 407VET6 is successful
I have kept the original 'physical layout view' intact within the Variant files, this means a slightly larger variant but it's done in the spirit of the original variant.
See Issue #393