TIM2_ISR3

inline void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim) { // Body removed for brevity }

TIM2_ISR2

void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim) { // Body removed for brevity }

TIM2_ISR

void TIM2_IRQHandler(void) { /* USER CODE BEGIN TIM2_IRQn 0 */ HAL_GPIO_WritePin(TxTest_GPIO_Port, TxTest_Pin, GPIO_PIN_RESET); /* USER CODE END TIM2_IRQn 0 */ HAL_TIM_IRQHandler(&htim2); /* USER CODE BEGIN TIM2_IRQn 1 */ HAL_GPIO_WritePin(TxTest_GPIO_Port, TxTest_Pin, GPIO_PIN_SET); /* USER CODE END TIM2_IRQn 1 */ }

ESP32_uPython

esptool.py –chip esp32 –port /dev/ttyUSB0 write_flash -z 0x1000 esp32-20180511-v1.9.4.bin

Arm Assembly

void Flash_StartApplication(uint32_t startAddress) { // Set up stack pointer asm("LDR r1, [r0]"); asm("mov r13, r1"); // Jump to application reset vector asm("ADDS r0,r0,#0x04 "); asm("LDR r0, [r0]"); asm("BX r0"); }