rm5248 commented on PR #6815: URL: https://github.com/apache/incubator-nuttx/pull/6815#issuecomment-1211802399
@davids5 Using DEVCFG0 to disable JTAG is only available on the 1XX and 2XX series of PIC32MX, hence why I'm trying to disable JTAG on the 3XX/4XX/5XX/6XX/7XX series of chips. The datasheet and pic32mx_head.S agree with this, since what you linked to is the DEVCFG0 for the 1XX/2XX series - the DEVCFG0 for everything else doesn't have the `DEVCFG0_JTAGEN | \ ` line of code. By default, JTAG is enabled on the PIC32MX unless it is explicitly disabled via DEVCFG0 on the 1XX and 2XX series, or via the DDPCON register at runtime on the 3XX/4XX/5XX/6XX/7XX series which is why I originally set this to enable JTAG by default(it should be a no-op). The problem that I am seeing is that when JTAG is enabled, the JTAG pins can't be used for normal GPIO at a minimum(e.g. the LEDs connected to those pins do not turn on). I don't know if other chips use a peripheral pin select to change their settings(I am using a PIC32MX795F512L). I'm therefore _extremely_ confused as to what exactly you think this should be. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
