the "hack the planet" port on the Reform motherboard came in handy today. i can get a direct serial port from the system controller which helps me debug SPI communication with the A311D. i only had to set `LPC_IOCON->PIO0_19 = 0x01;` to enable transmitting on the pin in the LPC firmware.
Conversation
Notices
-
minute (mntmn@mastodon.social)'s status on Saturday, 22-Jul-2023 02:46:03 JST minute -
minute (mntmn@mastodon.social)'s status on Saturday, 22-Jul-2023 02:52:31 JST minute the issue is that instead of the byte 0xb5 which the cpu sends, the lpc receives 0x5a. in binary we can see that a bit is missing :0
-
minute (mntmn@mastodon.social)'s status on Saturday, 22-Jul-2023 03:08:19 JST minute put some more debugging in and it works :(
-
minute (mntmn@mastodon.social)'s status on Saturday, 22-Jul-2023 03:14:52 JST minute increased some delays and it works :((
-
minute (mntmn@mastodon.social)'s status on Saturday, 22-Jul-2023 03:23:25 JST minute i think "time to empty" is overly optimistic, but otherwise...
-
minute (mntmn@mastodon.social)'s status on Saturday, 22-Jul-2023 05:07:58 JST minute @FabianLaasch i have a scope, which showed me that MISO needed a pullup on the A311D side
-
Fabian Laasch ⚡️🔋 (fabianlaasch@mastodon.green)'s status on Saturday, 22-Jul-2023 05:07:59 JST Fabian Laasch ⚡️🔋 @mntmn do you have access to a logic analyzer? One for 19$ should be enough to visualize what’s going on on the SPI signals… much easier to debug
-
minute (mntmn@mastodon.social)'s status on Saturday, 22-Jul-2023 06:24:53 JST minute @dok nope, that wasn't it
-
dok (dok@rivals.space)'s status on Saturday, 22-Jul-2023 06:24:54 JST dok @mntmn could this be caused by the clock polarity missmatch ?
-
minute (mntmn@mastodon.social)'s status on Sunday, 23-Jul-2023 09:03:26 JST minute @nanocodebug oh hi!! it's still lpc11u24, and it's exactly your code i'm working with! the difference is that i swapped the som with a311d (instead of imx8m), and the way it's wired i can only use linux's spi-gpio instead of a real hw spi
-
Nano (nanocodebug@plush.city)'s status on Sunday, 23-Jul-2023 09:03:28 JST Nano @mntmn
the new lpc controller is an rp2040 right?
maybe an SPI mode or speed issue? I remember hitting something similar when I was writing the Reforms battery driver.
-