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
Add SPRO-SPRACINGH7NANO.config #12575
Add SPRO-SPRACINGH7NANO.config #12575
Conversation
@theojalba you can test flash this build using cloud API by adding |
AUTOMERGE: (FAIL)
|
Not sure how. Using the latest Configurator from nightlies I cannot see the new H7NANO target. |
Yes sorry needs local testing until merged. |
@theojalba Can you test confirm locally as I only have the H7EXTREME |
This comment has been minimized.
This comment has been minimized.
@haslinghuis: I confirmed that I am looking into one issue with this |
Yes had same experience with H7EXTREME. Flashing, connects all is okay. After computer reboot found out the board is in DFU mode. Did not investigate further. @hydra should have a look at it. |
@hydra: I tracked down the issue to this commit: c1c1f95 Before this commit no DFU is triggered on USB disconnect, on and following this commit DFU is triggered. It seems the |
Opted for the simplest fix which is Not sure if this was the intended use in c1c1f95 |
I tested this branch locally by adding the options below into
|
This comment has been minimized.
This comment has been minimized.
Better use something like
or for testing and support use
|
Used the command line options as indicated. All good, everything passes. 🎉 |
@blckmn @haslinghuis @McGiverGim this is the catch-22 situation again where you can't fully create a new target and test cloud build end-to-end until a, potentially broken, target is published. How about letting the user enter a 'custom' target for the situation where the target has never been published? |
that is correct. Without the 'USE_FIRMWARE_PARTITION' the offsets for the flash chip's partitions will not match what the bootloader expects, so writing the config might overwrite the firmware on the flash chip causing the firmware to be corrupted. However, you'd only notice this after a power cycle because the firmware is held in RAM and the bootloader will boot from RAM if valid firmware is found - this speeds up boot times. if power is removed then the next boot up will cause the bootloader to try loading the now-corrupted firmware from flash, it will detect that it's corrupted and enter DFU mode. Also the flash chip on the NANO does not support memory mapped mode, only the flash chips on the H7RF and H7 EXTREME PX4 Edition support memory mapped flash. |
@hydra: As requested, here are the |
I jam packed as much as I could in this configuration, trying to match BF 4.3. A couple of issues:
Attached are the latest outputs for BF 4.5. bf 4.5 resources.txt Latest command line to match 4.3 features and pins is: |
This comment has been minimized.
This comment has been minimized.
Added TIMUPx_DMA_OPT entries to match H7EXTREME. |
Do you want to test this code? Here you have an automated build: |
* Add SPRO-SPRACINGH7NANO.config * Remove dupicate #define and add line return at end of file * Add #pragma once * Remove extra SDCARD pins * Remove unnecessary SPI and I2C #defines * Add USE_FIRMWARE_PARTITION_FLAG * Remove SDCARD flag * Add timer pin map * Add ADC voltage and current * Fix ADC_RSSI * Add DMA TIMUP * Enable serial on UART1 * Add TIMUP_DMA_OPT
Based on SPRACING H7EXTREME config with hardware settings from BF 4.3 H7NANO config.
Unified config:
betaflight/unified-targets#963