Search found 25 matches

by qheinal
Wed May 15, 2024 9:49 pm
Forum: General Discussion
Topic: Defective chip or broken software?
Replies: 0
Views: 709

Defective chip or broken software?

i have 3 wemos s2 mini boards and all of them can scan for wifi networks but only 1 can connect to wifi in the three. I have tested the resistors and capacitors around the chip of the good one and measured the others and they all are the same. Is the chip just defective? because it seems like abit w...
by qheinal
Mon Apr 01, 2024 6:22 pm
Forum: General Discussion
Topic: L32R instruction with xtensa-esp32-elf-as assembler
Replies: 2
Views: 1013

L32R instruction with xtensa-esp32-elf-as assembler

Im using xtensa-esp32-elf-as compiler to compile asm code but if i use the L32R instruction it compiles to 0x410000. Which means the address i specified isnt actual included in the instruction. If i use L32I it works as expected. Am i missing something? in the code im just doing this [code]L32R a4, ...
by qheinal
Mon Apr 01, 2024 2:19 am
Forum: General Discussion
Topic: USB on esp32-s3 wroom
Replies: 2
Views: 1105

Re: USB on esp32-s3 wroom

Since USB Signaling is indeed 3.3v then It makes sense that it wouldn't need level shifting. Also it makes sense why if VBus shorts to data pins it can damage the usb controllers on electronics. Its kinda funny how I've written host/device drivers for baremetal but i didnt know usb signaling was act...
by qheinal
Sun Mar 31, 2024 5:04 pm
Forum: General Discussion
Topic: USB on esp32-s3 wroom
Replies: 2
Views: 1105

USB on esp32-s3 wroom

I have some esp32-s3-wroom-1u modules and was wondering if its okay to connect esp32s usb data (dp and dm) pins directly to hosts data pins. Since esp32 is 3.3v device while host pc is a 5v device doesnt esp32 need a level shifter? I have seen online that others have just connected them directly to ...
by qheinal
Tue Mar 19, 2024 1:49 am
Forum: General Discussion
Topic: Help with function pointers and xTaskCreate & xTaskCreatePinnedToCore
Replies: 3
Views: 1064

Re: Help with function pointers and xTaskCreate & xTaskCreatePinnedToCore

It doesn't return its a loop. Apparently if i change the priority from 1 to 2 it works.
by qheinal
Sun Mar 17, 2024 2:24 am
Forum: General Discussion
Topic: Help with function pointers and xTaskCreate & xTaskCreatePinnedToCore
Replies: 3
Views: 1064

Help with function pointers and xTaskCreate & xTaskCreatePinnedToCore

I want to run a task on a specific core. The code is loaded from external source. The external code just does some register moves and then an ILL instruction which causes the Illegal Instruction Exception as i intended it to. Code is loaded in IRAM btw. This works but it dispaches it to wrong core b...
by qheinal
Sun Mar 17, 2024 1:53 am
Forum: General Discussion
Topic: How to set up Exception handler for Syscall
Replies: 9
Views: 1762

Re: How to set up Exception handler for Syscall

Yeh its really hard to find stuff for xtensa architecture. btw I solved the issue of restarting on illegal exception by changing the pc register. So syscalls via the ILL instruction works now. Right now it checks the value of certain registers to determine if its done by the ILL instruction intentio...
by qheinal
Sat Mar 16, 2024 6:16 pm
Forum: General Discussion
Topic: How to set up Exception handler for Syscall
Replies: 9
Views: 1762

Re: How to set up Exception handler for Syscall

If its in use then oh well but is it possible to use software interrupt. On x86 you can define a software interrupt then just use int [irq number] to trigger it. Idk if thats possible on esp32. Theres an instruction ILL which always generates exception, i used that but it reboots esp32 after process...
by qheinal
Fri Mar 15, 2024 6:54 pm
Forum: General Discussion
Topic: How to set up Exception handler for Syscall
Replies: 9
Views: 1762

Re: How to set up Exception handler for Syscall

I dont need a interpreter. My code runs natively on esp32 ,no translation layer. My question wasnt about Running code its about setting up an exception handler for syscall. Syscall generates an exception interrupt by design like esp32s illegal instruction or loadstoreerr cpu exceptions. I just want ...
by qheinal
Fri Mar 15, 2024 11:58 am
Forum: General Discussion
Topic: How to set up Exception handler for Syscall
Replies: 9
Views: 1762

Re: How to set up Exception handler for Syscall

its an external app which gets loaded later on and is compiled on its own( Not from arduino ide but directly from assembler). I believe the syscall instruction was made for that purpose. Basically its an app calling functions from main "kernel". Think of it like how any operating system loads an exe...