|
![]() MCU User Forum
![]() Can not perform In-system Debugging on product PCBA
|
| next newest topic | next oldest topic |
| Author | Topic: Can not perform In-system Debugging on product PCBA |
|
genching New Member |
Here F411 is used on our product, and our products are called optical transceiver, which is used in optical fiber communications. The issue I meet is as the title. Debug will stop while setting XBR1. Does anyone know the reason? BTW, the software is keil uv3. As bellows: void Port_IO_Init() { P2MDIN = 0xF8; //P2.0,P2.1,P2.2 Analog input P2SKIP = 0x07; P2 = 0xFF; P1MDIN = 0xF7;//P1.3 Analog input P1SKIP = 0x08; P1MDOUT = 0xC0; P0MDOUT = 0x00; P0 = 0xFF; P0SKIP = 0x83; XBR0 = 0x04; XBR1 = 0x40; } IP: Logged |
|
Tsuneo Member |
I don't see any problem on this code. The problem lies outside of this code. Watchdog? Tsuneo IP: Logged |
|
Tsuneo Member |
Ah, this possibility still remains. On your code,
If P1.7 or P1.6 accidentally short to GND, or if these ports conflict with output of other component, Tsuneo IP: Logged |
|
genching New Member |
Hi Tsuneo, Tks for your reply. 1.6 and 1.7 are used to driver digital risistor (pin DN and UP of Max5128ELA). Attach the whole configuration: void PCA_Init() { PCA0CN = 0x40; PCA0MD &= ~0x40; PCA0MD = 0x04; //TimeBase is Timer0 Overflow PCA0CPL5 = 0x0E; } void Timer_Init() void SMBus_Init() void ADC_Init() void DAC_Init() } void Voltage_Reference_Init() void Port_IO_Init() // P1.0 - Skipped, Open-Drain, Digital // P2.0 - Skipped, Open-Drain, Digital P2MDIN = 0xF8; //P2.0,P2.1,P2.2 Analog input } void Oscillator_Init() void Interrupts_Init() } void Init_Device(void) IP: Logged |
|
genching New Member |
And F411 can run in our products very well after loading the program, just cannot run in debug mode on the product. IP: Logged |
All times are CT (US) | next newest topic | next oldest topic |
![]() |
|
Have you seen our MCU Knowledge Base?