Troubles getting started STM32H7B3I-DK
Hello, guys.
I recently bought STM32H7B3I-DK and started playing with it. There are a few questions/issues I have:
1) It seems that the board is recognized by the host PC only when it is directly connected to the PC's USB port. If I connect it through USB hub, the board is not visible and, consequently, not accessible. Do you have any idea why is that?
2) I would like to perform printf style debugging of the code from STM32CubeIDE tool. I enabled SWV in Debug settings, opened SWV ITM Data Console, enabled port 0 and started trace. However, no printf messages are printed on the cosole. I am not sure how to set ITM block active. Would this be enough for transferring printf message to ITM block FIFO?
#define DEMCR *((volatile uint32_t*) 0xE000EDFCU )
/* ITM register addresses */
#define ITM_STIMULUS_PORT0 *((volatile uint32_t*) 0xE0000000 )
#define ITM_TRACE_EN *((volatile uint32_t*) 0xE0000E00 )
void ITM_SendChar(uint8_t ch)
{
//Enable TRCENA
DEMCR |= ( 1 << 24);
//enable stimulus port 0
ITM_TRACE_EN |= ( 1 << 0);
// read FIFO status in bit [0]:
while(!(ITM_STIMULUS_PORT0 & 1));
//Write to ITM stimulus port0
ITM_STIMULUS_PORT0 = ch;
}3) Where can I find source codes for the examples you provided in the form of .hex/.bat files?
Thanks in advance for your time and efforts.
Looking forward to reading from you.
Sincerely,
Bojan.
