cancel
Showing results for 
Search instead for 
Did you mean: 

Question on STM32 USB libraries

bassetteporn11
Associate II

So I notice this uncomfortable feeling of not knowing WTF is going on when I single step through ALL the config, trying to make sense of all this BS stepping to setup the registers. Since most of this stuff I soon wont care about exept their 1 or 2 functions, but the USB I need to study a bit, yet when it gets to this peripheral, it sets it up in a Handler, and I cant see the relationship going between setup page and SFR's, wich I like to do.

How do people know where to check for Handlers. Now theres a handler but its lost somewhere...

I wanna see where this Interrupt is enabled for the USB clock in the first place, I know that as soon as the CLK bit is set it trips, but thats because its enabled.

I wanna practice and watch over the INTERRUPT ENABLE registers for such and such peripherals, is there there a "tree like" diagram for all the possible interrupt names and their peripherals for each family??

BTW, I dont see why people complain about this IDE its quite fast and stable with hardware reset and setup with "connect on reset". using ST-link V3

4 REPLIES 4
bassetteporn11
Associate II

Anybody how I can watch my event handlers on STM32CUBEIDE ??

From this blogpost I cant understand.

http://blog.atollic.com/what-you-need-to-know-about-debugging-interrupts-and-exceptions-on-cortex-m-devices

bassetteporn11
Associate II

So in the breakpoints view, by clicking on the little inverted triangle on the right corner...

https://community.nxp.com/thread/389027

Well it seems like in my case I cant configure it to stop on a write or read.

Perhaps I am in this category?

Watchpoints can be configured to halt on a Read (or Load), Write (or Store), or both. Since watchpoints 'watch' accesses to memory, they are suitable for tracking accesses to global or static variables, and any data accesses to memory including those to memory mapped peripherals.

Note: Due to the way watchpoints are implemented, any monitored access will be performed by the CPU before a halts occurs (unlike instruction breakpoints - which halt the CPU before the underlying instruction executes). When a watchpoint is hit you will see some 'skid' beyond the instruction that performed the watched data access. If the instruction after the data access changes program flow (e.g. a branch or function return), then the IDE may not show the instruction or statement that caused the CPU to halt.

bassetteporn11
Associate II

0690X00000BwYY7QAN.jpgCan anybody share insight onto how people usually debug IRQ's from complicated libraries that elude them?

Cant seem to follow along 100% of the way, am trying hard to setup a Hardware breakpoint somewhere, but where?

bassetteporn11
Associate II

hello?