follow up to #261

- fix button pullup
- flash using teensy_loader_cli
- update boards.md
This commit is contained in:
hathach
2020-01-09 22:04:11 +07:00
parent 03d14f4d83
commit 84bbe54e17
3 changed files with 7 additions and 4 deletions

View File

@@ -48,6 +48,7 @@ FREERTOS_PORT = ARM_CM7
JLINK_DEVICE = MIMXRT1062xxx6A
JLINK_IF = swd
# flash by copying bin file to DAP Mass Storage
flash: $(BUILD)/$(BOARD)-firmware.bin
cp $< /media/$(USER)/RT1060-EVK/
# flash by using teensy_loader_cli https://github.com/PaulStoffregen/teensy_loader_cli
# Make sure it is in your PATH
flash: $(BUILD)/$(BOARD)-firmware.hex
teensy_loader_cli --mcu=imxrt1062 -v -w $<

View File

@@ -78,7 +78,8 @@ void board_init(void)
// Button
IOMUXC_SetPinMux( BUTTON_PINMUX, 0U);
gpio_pin_config_t button_config = { kGPIO_DigitalInput, 0, kGPIO_IntRisingEdge, };
IOMUXC_SetPinConfig(BUTTON_PINMUX, 0x01B0A0U);
gpio_pin_config_t button_config = { kGPIO_DigitalInput, 0, kGPIO_NoIntmode };
GPIO_PinInit(BUTTON_PORT, BUTTON_PIN, &button_config);
// UART