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"); }

C2000 Assembly

void Flash_StartApplication(uint32_t startAddress) { asm (" C28OBJ"); //Select C28x object mode asm (" C28ADDR") ; //Select C27x/C28x addressing asm (" SETC INTM"); asm (" ZAPA"); asm (" MOV @SP,#0"); asm (" PUSH ACC"); asm (" PUSH AL"); asm (" MOV AL, #0x0a08"); asm (" PUSH AL"); asm (" MOVL XAR7, #0x003F3FFE"); asm (" PUSH XAR7"); … Continue reading C2000 Assembly

ISRExample

void Uart0_ISR(void) { HAL_UART_Transmit(&huart2, (uint8_t *)aRxBuffer, 1, 0xFFFF); CBUF_Push(RxDataBuffer, aRxBuffer[0]); HAL_UART_Receive_IT(&huart2, (uint8_t *)aRxBuffer, 1); }