Open tongjinlv opened 4 years ago
Is this issue related to the bootloader only? Does the sound generation mechanism in the arcade editor also play a part?
When running the utf2 file, it fails when playing audio and when opening the menu to adjust the volume.
It’s okay if you don’t play the audio. If you play the audio, it makes a little sound and then it crashes.
I am also having the same issue. Just wondering what is the root cause.
@yuanyanhui could you post your bootloader config?
@tongjinlv @yuanyanhui which version of arcade are you using? could you share the program you're using to test?
PINS_PORT_SIZE = PA_16 PIN_RX = PA10 PIN_TX = PA09 PIN_ACCELEROMETER_INT = PA08 PIN_ACCELEROMETER_SCL = PB06 PIN_ACCELEROMETER_SDA = PB07 PIN_BTN_A = PB05 PIN_BTN_B = PB04 PIN_BTN_DOWN = PB03 PIN_BTN_LEFT = PB01 PIN_BTN_MENU = 0x110000 PIN_BTN_RIGHT = PA15 PIN_BTN_UP = PA06 PIN_DISPLAY_BL = PA03 PIN_DISPLAY_CS = PB12 PIN_DISPLAY_DC = PA04 PIN_DISPLAY_MOSI = PA07 PIN_DISPLAY_RST = PA01 PIN_DISPLAY_SCK = PA05 PIN_LED = PC13 PIN_SPEAKER_AMP = PB00 ACCELEROMETER_TYPE = LIS3DH_ALT BOOTLOADER_BOARD_ID = 0xc2d0b1e4 BOOTLOADER_PROTECTION = 0 CPU_MHZ = 96 DISPLAY_CFG0 = 0xc0 DISPLAY_CFG1 = 0x603 DISPLAY_CFG2 = 0x16 DISPLAY_HEIGHT = 240 DISPLAY_TYPE = ILI9341 DISPLAY_WIDTH = 320 FLASH_BYTES = 0x80000 POWER_DEEPSLEEP_TIMEOUT = 120 RAM_BYTES = 0x20000 UF2_FAMILY = STM32F401
I use the online editor. arcade version: 1.2.10 Microsoft MakeCode version: 6.2.23
@yuanyanhui could you post your bootloader config?
@tongjinlv @yuanyanhui which version of arcade are you using? could you share the program you're using to test?
please help me. this is my source https://github.com/tongjinlv/uf2-stm32f
Hello, our problem has not been solved. The chip used is STM32F411CEU6
When I use stm32f411ce to install the simulator and run arcade uF2 firmware, the sound will be stuck when playing, and adjusting the volume will also be stuck. My definition is as follows
ifndef BOARD_H
define BOARD_H
define OSC_FREQ 25
define USBDEVICESTRING "Arcade F411"
define USBMFGSTRING "Contoso Ltd."
define BOARD_FLASH_SECTORS 8
define BOARD_FLASH_SIZE (512 * 1024)
ifdef DEFINE_CONFIGDATA
attribute((section(".config"))) attribute((used)) // const uint32_t configData[] = { / CF2 START / 513675505, 539130489, // magic 29, 100, // used entries, total entries 4, 0x0f, // PIN_BTN_A = PA15 5, 0x14, // PIN_BTN_B = PB04 13, 0x2d, // PIN_LED = PC13 32, 0x05, // PIN_DISPLAY_SCK = PA05 33, 0x06, // PIN_DISPLAY_MISO = PA06 34, 0x07, // PIN_DISPLAY_MOSI = PA07 35, 0x1c, // PIN_DISPLAY_CS = PB12 36, 0x04, // PIN_DISPLAY_DC = PA04 43, 0x01, // PIN_DISPLAY_RST = PA01 44, 0x11, // PIN_DISPLAY_BL = PB01 49, 0x03, // PIN_BTN_LEFT = PA03 50, 0x18, // PIN_BTN_RIGHT = PB08 47, 0x16, // PIN_BTN_UP = PB06 48, 0x19, // PIN_BTN_DOWN = PB9 51, 0x110000, // PIN_BTN_MENU = PA0 64, 0x1f,// PIN_JACK_PWREN = PB15 65, 0x8, // PIN_JACK_SND = PA08//speak 59, 128, // SPEAKER_VOLUME = 128 26, 0x10, // PIN_SPEAKER_AMP = PB00 // //////////////// For ST7735(160x128) // 37, 0xa0, // DISPLAY_WIDTH = 160 // 38, 0x80, // DISPLAY_HEIGHT = 128 // 39, 0x020180, // DISPLAY_CFG0 = 0x80 ST7735(160x128 GreenTAB) // 40, 0x603, // DISPLAY_CFG1 = 0x603 // 41, 0x16, // DISPLAY_CFG2 = 0x16 /////////////// For ILI9341(320x240) 37, 320, // DISPLAY_WIDTH = 320 38, 240, // DISPLAY_HEIGHT = 240 39, 0x08, // DISPLAY_CFG0 = 0x08 40, 0x0010ff, // DISPLAY_CFG1 = 0x10ff 41, 50, // DISPLAY_CFG2 = 0x50 78, 9341, // DISPLAY_TYPE = ILI9341 /////////////////////////////////// 204, 0x80000, // FLASH_BYTES = 0x80000 205, 0x18000, // RAM_BYTES = 0x18000 208, 0x1f884ff3, // BOOTLOADER_BOARD_ID = 0x1f884ff3 209, 0x57755a57, // UF2_FAMILY = STM32F401 210, 0x10, // PINS_PORT_SIZE = PA_16 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, / CF2 END / };
endif
endif / BOARD_H /