I'm unsure if the HardFault is because of my "hack" to get the program working, but the important bit seems to be the first two lines: = Reboot count(=12) reached maximum, system will halt after rebooting =ˇ = System will be rebooted due to a fatal error = I followed the connections on the guide you provided, which correspond to the arduino uno digital interface side pins, that the NUCLEO board also emulates.Īd7606: device id mismatch, expected 0x01, got 0x00Įrror Status: 0x80FF013D Code: 317 Module: 255 I managed to compile the program and put into the NUCLEO board. "Error: Redefinition of enumerator 'IRQ_ERROR' in "app/no-OS/include/irq.h", Line: 63, Col: 2" Ok after hack-fixing a weird compile error that I'm not sure ruined the firmware or not. I'm unsure if I'm missing something here, but that's the only pin that produces a response to a clock on the AD7606C SPI interface. The two 16 bit clock frames in magenta (CH2) are the command (0x006F = 0x0040 | 0x2F) and clocking out the reply.Īnd what's more, it suffers from this long decay while idling, in between communications: On the Eval Board, there is no output in pin DB9 (on the Eval board), but rather in pin DB8 (on the Eval Board) (DoutB on the ADC). And that's where the weird things start happenning: I'm using 8 bit SPI mode 1,1 (idle high, positive edge sampling).Īlso according to the AD7606C-18 datasheet, the serial output from the ADC should happen at the DoutA pin, which is stated to be pin DB9. I also have verified that the SPI commands are correct (for example I'm trying to read address 0x2F, the device ID register), therefore I send 0b00000000 01101111 (MSB and little endian as per the STM32 memory organization), which comes out of SPI MOSI line as 01101111 00000000, ie Write Enabled, Read operation, address 0x2F, no data, as per the AD7606C-18 datasheet serial register read specifications. I am using the EVAL-AD7606CFMCZ board with an STM32 NUCLEO-F767ZI board as the SPI controller/master.ĭuring setup I checked and set all the eval board's jumpers so that they're configured properly for serial communication and external power supply, according to the board's user documentation. I've been figuring out how the AD7606C-18 works to use in a product, but I'm encountering some dificulties with things as simple as reading the internal configuration registers of the device.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |