-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
When compiling and porting stm32H750 to micro python, an error is reported #11629
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
Comments
It looks like you have a custom board definition, and you have not configured it correctly. Please share your board configuration files to make progress here with debugging. |
#define MICROPY_OBJ_REPR (MICROPY_OBJ_REPR_C) #define MICROPY_FATFS_EXFAT (1) // Flash storage config #define MICROPY_BOARD_STARTUP REG_H7_board_startup #define MICROPY_BOARD_EARLY_INIT REG_H7_board_early_init #define MICROPY_BOARD_ENTER_BOOTLOADER(nargs, args) REG_H7_board_enter_bootloader() void REG_H7_board_low_power(int mode); void REG_H7_board_osc_enable(int enable); // PLL1 400MHz/50MHz for SDMMC and FDCAN // PLL2 200MHz for FMC and QSPI. // PLL3 160MHz for ADC and SPI123 // HSE in BYPASS mode. // Bus clock divider values // Peripheral clock sources // There is an external 32kHz oscillator #if (MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE == 0) // SPI flash #1, block device config // 4 wait states // UART config // UART config // I2C busses // SPI // USRSW is pulled low. Pressing the button makes the input go high. // LEDs // WiFi SDMMC // Bluetooth config // SDRAM // Timing configuration for 200MHz/2=100MHz (10ns) #define MICROPY_HW_SDRAM_ROW_BITS_NUM 13 #define MICROPY_HW_SDRAM_COLUMN_BITS_NUM 9 #define MICROPY_HW_SDRAM_AUTOREFRESH_NUM (8) // SDRAM configuration // Ethernet via RMII #define MICROPY_HW_USB_VID 0x2341 |
You can't use this object representation with double precision float (which the H750 has). I suggest just removing this line and using the default object representation A. (You'll also need to remove the 4 lines after it as well.) |
OK, let me try |
Hello, after deletion, it does work properly. But I would like to ask this object representation with double precision float (which the H750 has).What does it mean, and how can I avoid similar problems the next time I want to continue compiling the firmware. Will there be a description of the questions in the data sheet of the chip? |
Hello klora-sun, would you mind, if i ask you for your port for stm32h750 board? |
sorry, I’m too busy in this month. I would like to help you to solve some problems,but I don’t have too much time .But , if you have some ideas,we can discuss.thanks for your inviteing.
获取 Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
发件人: Coder311001 ***@***.***>
发送时间: Monday, August 26, 2024 8:30:56 PM
收件人: micropython/micropython ***@***.***>
抄送: klora sun ***@***.***>; Author ***@***.***>
主题: Re: [micropython/micropython] When compiling and porting stm32H750 to micro python, an error is reported (Issue #11629)
Hello klora-sun, would you mind, if i ask you for your port for stm32h750 board?
―
Reply to this email directly, view it on GitHub<#11629 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AP3VXYOVZWJUDIFBVGSI6K3ZTMNYBAVCNFSM6AAAAABND5K2ISVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJQGA4TKOBXGA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
The problem looks to have been resolved, will close this issue. |
make BOARD=REG_H750
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
CC system_stm32.c
In file included from ../../py/obj.h:32,
from ./pin.h:33,
from ./mphalport.h:3,
from ../../py/mphal.h:35,
from system_stm32.c:78:
../../py/obj.h: In function 'mp_obj_is_float':
../../py/misc.h:54:50: error: size of unnamed array is negative
54 | #define MP_STATIC_ASSERT(cond) ((void)sizeof(char[1 - 2 * !(cond)]))
| ^
../../py/obj.h:197:5: note: in expansion of macro 'MP_STATIC_ASSERT'
197 | MP_STATIC_ASSERT(sizeof(mp_float_t) <= sizeof(mp_obj_t));
| ^~~~~~~~~~~~~~~~
-e See https://github.com/micropython/micropython/wiki/Build-Troubleshooting
make: *** [../../py/mkrules.mk:83:build-REG_H750/system_stm32.o] 错误 1
When compiling and porting stm32H750 to micro python, an error is reported,Please tell me what is wrong and how it should be changed
The text was updated successfully, but these errors were encountered: